/install claw-use-mihomo
claw-use-mihomo
Manage mihomo proxy: install, configure from subscriptions, monitor health, auto-switch nodes.
When to use
- User asks to set up a proxy/VPN on their machine
- User provides a subscription URL, vmess://, ss://, trojan://, or vless:// link
- Proxy stops working and needs diagnosis/fix
- User wants to switch proxy nodes or check status
Prerequisites
- Node.js >= 18
- Network access to download mihomo binary
Setup
npx mihomod install
Commands
Install mihomo
npx mihomod install
Configure from subscription
npx mihomod config "https://example.com/subscribe?token=xxx"
Config is validated (YAML parse + structure check) before writing. Old config is backed up to .bak.
Add single node
npx mihomod add "vmess://eyJ..."
npx mihomod add "ss://..."
npx mihomod add "trojan://..."
npx mihomod add "vless://..."
Start/stop mihomo
npx mihomod start
npx mihomod stop
Check status
npx mihomod status --json
Returns: {"running":true,"node":"...","delay":150,"alive":42,"total":50}
List nodes
npx mihomod nodes --json
Switch node
npx mihomod switch # auto-select best
npx mihomod switch "node-name" # specific node
Start watchdog
npx mihomod watch
Monitors endpoints, auto-switches on failure. Outputs JSON events to stdout. Handles SIGTERM/SIGINT gracefully.
Config
Located at ~/.config/mihomod/config.json. Created automatically on first run.
Edit to set mihomo API URL, watchdog endpoints, node priorities, etc.
Safety
- Config writes are atomic: write to
.tmp→ validate YAML + structure → rename (old config backed up to.bak) - Subscription content is validated before writing — malformed YAML is rejected
- All network calls have timeouts (API: 5s, subscriptions: 30s, downloads: 120s)
- Subscription downloads capped at 10MB
All output is JSON
All commands output structured JSON (human-readable on TTY). Exit codes: 0=success, 1=error, 2=config error, 3=network error.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install claw-use-mihomo - After installation, invoke the skill by name or use
/claw-use-mihomo - Provide required inputs per the skill's parameter spec and get structured output
What is mihomo Proxy Manager?
Manage mihomo proxy - install, configure from subscriptions, monitor health, auto-switch nodes. Supports vmess/ss/trojan/vless protocols. It is an AI Agent Skill for Claude Code / OpenClaw, with 115 downloads so far.
How do I install mihomo Proxy Manager?
Run "/install claw-use-mihomo" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is mihomo Proxy Manager free?
Yes, mihomo Proxy Manager is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does mihomo Proxy Manager support?
mihomo Proxy Manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created mihomo Proxy Manager?
It is built and maintained by 傅洋 (@4ier); the current version is v0.2.0.