clash-proxy-api
Clash Proxy API
Operate a running Clash / mihomo proxy from natural-language requests — "what's my
current node?", "switch to the JP node", "am I in global or rule mode?", "turn on
TUN", "reload my config", "the proxy isn't working", "there's no system-proxy
toggle on my Ubuntu box" — without re-discovering controller details or
hand-writing curl.
The reliable core is the external-controller REST API. Bundled scripts wrap it, bounded routing observation and the OS system proxy. On a managed router, read its project contract before choosing a command.
Invocations below are relative to this skill's directory. Run
python3 scripts/clash_api.py …from here, or use the absolute path your agent resolves for the skill.clash_api.pyis stdlib-only — nouv, no pip installs.