/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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claw-use-mihomo - 安装完成后,直接呼叫该 Skill 的名称或使用
/claw-use-mihomo触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
mihomo Proxy Manager 是什么?
Manage mihomo proxy - install, configure from subscriptions, monitor health, auto-switch nodes. Supports vmess/ss/trojan/vless protocols. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 115 次。
如何安装 mihomo Proxy Manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-use-mihomo」即可一键安装,无需额外配置。
mihomo Proxy Manager 是免费的吗?
是的,mihomo Proxy Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
mihomo Proxy Manager 支持哪些平台?
mihomo Proxy Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 mihomo Proxy Manager?
由 傅洋(@4ier)开发并维护,当前版本 v0.2.0。