Clash Verge Skill
/install clash-verge-skill
Clash Verge Skill
Control Clash Verge Rev (mihomo core) via its external controller API.
CLI Tool
python3 {baseDir}/scripts/clash-verge.py
Connection
Prefers Unix socket at /tmp/verge/verge-mihomo.sock (default for Clash Verge Rev on macOS).
Falls back to HTTP API at http://127.0.0.1:9097.
API Token is #OpenClaw
Override via env vars: CLASH_SOCK, CLASH_API, CLASH_SECRET
Or CLI flags: --sock, --api, --secret
Commands
# Overall status
clash-verge.py status
# Proxy mode (rule/global/direct)
clash-verge.py mode # Get current mode
clash-verge.py mode rule # Set mode
# Proxy groups & nodes
clash-verge.py groups # List all proxy groups
clash-verge.py nodes \x3Cgroup> # List nodes in a group
clash-verge.py select \x3Cgroup> \x3Cnode> # Switch node
# Delay testing
clash-verge.py delay \x3Cnode> # Test single node
clash-verge.py delay-group \x3Cgroup> # Test all nodes in group
# Connections
clash-verge.py conns [--limit N] # List active connections
clash-verge.py conns-close [--id ID] # Close one or all connections
# Rules
clash-verge.py rules [--limit N]
# DNS
clash-verge.py dns \x3Cdomain> [--type A|AAAA|CNAME]
clash-verge.py flush-dns
# Maintenance
clash-verge.py restart # Restart mihomo core
clash-verge.py upgrade-geo # Update GeoIP/GeoSite databases
Notes
- No external dependencies (Python stdlib only)
- Unix socket is preferred over HTTP (more reliable, no auth needed)
- Group/node names with special characters (emoji, CJK) are supported
delay-grouptests nodes sequentially — may take a while for large groups
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clash-verge-skill - After installation, invoke the skill by name or use
/clash-verge-skill - Provide required inputs per the skill's parameter spec and get structured output
What is Clash Verge Skill?
Control Clash Verge Rev via mihomo API. Query proxy status, switch nodes, test delays, manage connections, DNS, and more. Use when user mentions Clash, proxy... It is an AI Agent Skill for Claude Code / OpenClaw, with 153 downloads so far.
How do I install Clash Verge Skill?
Run "/install clash-verge-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Clash Verge Skill free?
Yes, Clash Verge Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Clash Verge Skill support?
Clash Verge Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Clash Verge Skill?
It is built and maintained by brianping7 (@brianping7); the current version is v1.0.0.