中文 | English
- Shadowsocks
- http
- socks
- VMess
- Trojan
- Hysteria
- VLESS
VLESS
已被弃用并且可能被移除。请考虑使用 Trojan 作为替代品。见详情 - ShadowsocksR
- TUIC
sing-box
暂不支持tuic
- ShadowTLS
Clash.Meta
暂不支持Shadow-tls
从 Clash 配置生成 sing-box 配置文件:
./ctos -s "http://<...>" gen > config.json
# 或者
./ctos -s "./config.yaml" gen > config.json
这将从现有的 Clash 配置生成简洁的 sing-box
格式配置文件。
解析 Clash 配置:
./ctos -s "./config.yaml" show
# 通过添加 `-t` 来显示代理名称列表
./ctos -s "./config.yaml" show -t
这将从 Clash 配置获取转换后的代理列表,并显示标签名称(如果添加了 --tags)。您可以手动将其附加到 sing-box
配置中。
解析clash
配置文件 并输出sing-box
节点信息至控制台
git clone https://github.com/oluceps/clash2sing-box.git
cd clash2sing-box/web
trunk serve --open
在已安装 Nix 的计算机上可以直接运行应用程序:
nix run github:oluceps/clash2sing-box -- -s "<订阅链接>" show --tags
# 或执行其他操作
> ./ctos --help
用法:ctos [OPTIONS] <COMMAND>
命令:
show 从 Clash 配置显示 sing-box 代理信息
gen 从 Clash 配置生成 sing-box 配置
append 将新的 Clash 代理追加到现有的 sing-box 配置中 [WIP]
help 打印此消息或给定子命令的帮助
选项:
-s, --source <SOURCE> Clash 配置路径(URL)
-h, --help 打印帮助
-V, --version 打印版本
- Dreamacro/Clash
- MetaCubeX/Clash.Meta
- SagerNet/sing-box
- jmfiaschi/json_value_merge
- thedodd/trunk
- caddyserver/caddy
- yewstack/yew
Do You Hear The People Sing?