Нет описания

yosoyhendrix bfadf2738c Actualizar 'docker-compose.yml' 2 недель назад
.idea a61ba462eb refactor: update IDE configuration files for python SDK and project settings 6 месяцев назад
.gitignore 6ac5df59cd Add clash-meta & sing-box binaries to .gitignore; ignore IDE chat history explicitly 6 месяцев назад
LICENSE 2af50f5c64 Add MIT License file 6 месяцев назад
README.md 0ec302e6e2 Initial commit: working v2ray subscription to Clash Meta & Singbox config generator with docs, templates, and robust CLI script 6 месяцев назад
docker-compose.yml bfadf2738c Actualizar 'docker-compose.yml' 2 недель назад
requirements.txt 0ec302e6e2 Initial commit: working v2ray subscription to Clash Meta & Singbox config generator with docs, templates, and robust CLI script 6 месяцев назад
singbox.json b4eb86c934 feat: Robustify sing-box and clash configs and subscription parsing for Iran, China, future-proofing 6 месяцев назад
sub2clash_singbox.py b4eb86c934 feat: Robustify sing-box and clash configs and subscription parsing for Iran, China, future-proofing 6 месяцев назад

README.md

v2ray Subscription to Clash Meta & Singbox Config Generator

This Python project converts a v2rayNG-style subscription link (vmess/vless/ss/trojan/socks) directly to two config formats:

  • A Clash Meta YAML config (config.yaml style)
  • A Singbox JSON config (signbox.json style)

Both outputs retain advanced template features (DNS, rules, anti-DNS-hijack, groups) as provided in your base configs.

Features

  • Parses all links in a v2ray subscription (vmess, vless, trojan, ss, socks)
  • Injects nodes into both configs per your template structure
  • Preserves all routing, geoip, dns, and proxy group tricks (Iran/anti-hijack optimized)
  • Outputs ready-to-use configs for both Clash Meta and Singbox

Requirements

Setup and usage is simple:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

python sub2clash_singbox.py <subs_url> config.yaml singbox.json result_clash.yaml result_singbox.json

Where:

Notes

  • All existing template proxies are replaced; proxy groups, rules, and DNS remain as in your base config.
  • If your template has hardcoded outbounds (e.g. "warp", "us") they will appear in Singbox unless removed from the template.
  • Fully robust to mix of protocols or large sub lists (tested on 100+ node links).

License

MIT