Install
openclaw skills install clash-verge-auto-switchUse 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 selector group to the fastest working node, diagnose controller connectivity, or install a macOS launchd job with a user-chosen interval.
openclaw skills install clash-verge-auto-switchThis skill gives Codex a reliable workflow for Clash Verge Rev and Mihomo proxy switching on macOS. It is meant for users who want a concrete node selected from a selector group, not just a passive health check.
Use this skill when the user asks to:
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
/proxies tree and auto-discover groups from the current active selection chain.url-test, fallback, and load-balance groups into leaf proxies, but do not rewrite nested selector groups unless the user explicitly targets them.--group-scope current, which follows the currently selected chain from the live Clash proxy tree.--group-scope top-level when you want all top-level selector groups discovered from the current controller session.--group-scope all when you want every selector group in the current Clash instance.--group flags when the user wants exact control.For a true custom-minute schedule on macOS, use the bundled launchd installer instead of Codex automations because Codex recurring schedules only support hourly intervals.
Install:
~/.codex/skills/clash-verge-auto-switch/scripts/install_launch_agent.sh \
--interval-minutes 30 \
--group-scope current
Remove:
~/.codex/skills/clash-verge-auto-switch/scripts/uninstall_launch_agent.sh
--launch-if-needed.