中文(zh-cn) | English
- Shadowsocks
- http
- socks
- VMess
- Trojan
- Hysteria
- ShadowsocksR
- VLESS
VLESShad been abandoned. Consider useTrojaninstead. See detail - TUIC
sing-boxnot supporttuicyet - ShadowTLS
Clash.Metanot supportShadow-tlsyet
Generate minimal sing-box profile from clash profile (local path or url)
./ctos -s "http://<...>" gen > config.json
# or
./ctos -s "./config.yaml" gen > config.jsonThis will generate minimal avaliable sing-box format profile from exist clash config.
Parse clash config
./ctos -s "./config.yaml" show
# show proxies name list by adding `-t`
./ctos -s "./config.yaml" show -t This will get converted proxies list from clash profile,
and tag names (if --tags added).
You could manualy append it into sing-box config.
Append to existed config
./ctos -s "./config.yaml" append --dst ./config.json demo: https://ctos.magicb.uk
git clone https://github.com/oluceps/clash2sing-box.git
cd clash2sing-box/web
trunk serve --open> ./ctos --help
Usage: ctos [OPTIONS] <COMMAND>
Commands:
show Show sing-box proxies info from clash profile
gen Generate sing-box profile from clash format
append Append new clash proxies to existed sing-box profile [WIP]
help Print this message or the help of the given subcommand(s)
Options:
-s, --source <SOURCE> clash config path (url)
-h, --help Print help
-V, --version Print versionTry run application directly on machine with nix installed:
nix run github:oluceps/clash2sing-box -- -s "<subscribe link>" show --tags
# or any other actions-
Clash rule converting
-
Subcommand
append, to extend new content into config -
Simple and easy-to-use web app
-
Auto update with systemd service, with NixOS module
