π¦ ClawHub
clash-verge-auto-switch
by @tankeito
Use when the user wants Codex to speed test Clash Verge Rev or Mihomo proxies, auto-detect currently used Clash groups from the live controller, switch a sel...
π‘ Examples
Run the main script:
/usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py
By default it auto-discovers the current active selector chain from the live Clash controller. To inspect what it found:
/usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py --list-groups
Target explicit groups:
/usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py \
--group 'Proxy' \
--group 'ChatGPT'
Dry-run without changing selections:
/usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py --dry-run
π Tips & Best Practices
--launch-if-needed.TERMINAL
clawhub install clash-verge-auto-switch