Skip to content

clashGen

Mahdi Heidari edited this page Feb 8, 2023 · 1 revision

Convert vmess, vless, trojan, shadowsocks,... proxy to Clash Config

usage: clashGen [-h] [-f FILE] [--url URL] [--stdin] [--free] [--dns] [--rule] [--premium] [-v] [-vv]
                [-o OUTPUT]

Simple Clash Config Generator

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  file contain proxies
  --url URL             get proxy from url
  --stdin               get proxy from stdin
  --free                get free proxy
  --dns                 use DNS servers
  --rule                use rules
  --premium             use Clash Premium Features
  -v, --verbose         increase output verbosity
  -vv, --debug          debug log
  -o OUTPUT, --output OUTPUT
                        output file (default: clashConfig.yaml)
  • example :

     clashGen -vv --dns --premium -f ./servers.txt -o clashConfig.yaml

    servers.txt :

     ss://YWVzLTI1Ni1nY206ZzVNZUQ2RnQzQ1dsSklkQDE5OC41Ny4yNy4yMTg6NTAwNA==#test_ss
     ssr://MjAuMjM5LjQ5LjQ0OjU5ODE0Om9yaWdpbjpub25lOnBsYWluOk0yUm1OVGN5TnpZdE1ETmxaaTAwTldObUxXSmtaRFF0TkdWa1lqWmtabUZoTUdWbS8/Z3JvdXA9YUhSMGNITTZMeTkyTW5KaGVYTmxMbU52YlE9PSZyZW1hcmtzPWRHVnpkRjl6YzNJPQ==
     vmess://eyJhZGQiOiIxNTQuMjMuMTkwLjE2MiIsInYiOjIsInBzIjoidGVzdF92bWVzcyIsInBvcnQiOjQ0MywiaWQiOiJiOTk4NDY3NC1mNzcxLTRlNjctYTE5OC1jN2U2MDcyMGJhMmMiLCJhaWQiOiIwIiwic2N5IjoiYXV0byIsIm5ldCI6IndzIiwidHlwZSI6IiIsInRscyI6IiIsInBhdGgiOiIvIn0=
     vless://abc-def-ghi-fge-zsx@1.2.3.4:7777?type=tcp&encryption=none&security=tls&path=%2f#test_vless
     trojan://bc7593fe-0604-4fbe-a70bYWVzLTI1Ni1nY206Q1VuZFNabllzUEtjdTaclWNFc1RmRBNk5NQU5KSnga3fa58ac5a3ef0-b4ab-11eb-b65e-1239d0255272@ca-trojan.bonds.id:443#test_trojan
     http://username:password@124.15.12.24:251
     socks5://124.15.12.24:2312
     hysteria://1.2.3.4:12854?protocol=udp&auth=pekopeko&peer=wechat.com&insecure=1&upmbps=50&downmbps=250&alpn=h3#test_Hys
Clone this wiki locally