Install
openclaw skills install claw-use-mihomoManage mihomo proxy - install, configure from subscriptions, monitor health, auto-switch nodes. Supports vmess/ss/trojan/vless protocols.
openclaw skills install claw-use-mihomoManage mihomo proxy: install, configure from subscriptions, monitor health, auto-switch nodes.
npx mihomod install
npx mihomod install
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.
npx mihomod add "vmess://eyJ..."
npx mihomod add "ss://..."
npx mihomod add "trojan://..."
npx mihomod add "vless://..."
npx mihomod start
npx mihomod stop
npx mihomod status --json
Returns: {"running":true,"node":"...","delay":150,"alive":42,"total":50}
npx mihomod nodes --json
npx mihomod switch # auto-select best
npx mihomod switch "node-name" # specific node
npx mihomod watch
Monitors endpoints, auto-switches on failure. Outputs JSON events to stdout. Handles SIGTERM/SIGINT gracefully.
Located at ~/.config/mihomod/config.json. Created automatically on first run.
Edit to set mihomo API URL, watchdog endpoints, node priorities, etc.
.tmp → validate YAML + structure → rename (old config backed up to .bak)All commands output structured JSON (human-readable on TTY). Exit codes: 0=success, 1=error, 2=config error, 3=network error.