← Back to Skills Marketplace
4ier

mihomo Proxy Manager

by 傅洋 · GitHub ↗ · v0.2.0 · MIT-0
cross-platform ⚠ suspicious
115
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install claw-use-mihomo
Description
Manage mihomo proxy - install, configure from subscriptions, monitor health, auto-switch nodes. Supports vmess/ss/trojan/vless protocols.
README (SKILL.md)

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.

Usage Guidance
This skill appears to do what it says: it downloads the mihomo release from GitHub, writes config files under your home config directory, and can install a systemd/launchd service (it may prompt for sudo). Consider these before installing: (1) installing will place and execute a downloaded binary — verify the upstream project/release and checksum if possible; (2) the installer may attempt to write a system service and request sudo, and the service unit requests network capabilities (CAP_NET_ADMIN/CAP_NET_RAW) which are powerful; (3) run the installer in a controlled environment (VM/container) or inspect the downloaded asset first if you distrust the upstream binary; (4) SKILL.md does not mention the sudo/systemd actions explicitly, so expect privilege escalation during installation. If you want minimal risk, use the skill only to generate config files (config/add) and avoid running the install/start commands that install/execute the mihomo binary.
Capability Analysis
Type: OpenClaw Skill Name: claw-use-mihomo Version: 0.2.0 The skill manages the Mihomo proxy and includes high-risk capabilities such as downloading and executing binaries from GitHub (src/install.js) and installing system-level persistence via systemd or launchd (src/install.js, src/service.js). While these actions are aligned with the stated purpose of a proxy manager and the code includes safety measures like atomic configuration writes and YAML validation (src/configure.js), the automated execution of remote payloads and requests for elevated privileges (sudo) are inherently risky. No evidence of intentional malice, data exfiltration, or obfuscation was found.
Capability Assessment
Purpose & Capability
Name/description match implementation: code implements installing mihomo, parsing subscriptions (vmess/ss/trojan/vless), generating YAML configs, starting/stopping the daemon and running a watchdog. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md instructions accurately reflect runtime behavior (install, config, add, start/stop, watch). One omission: SKILL.md does not explicitly say that installing may require sudo or will create system services/launch agents; the code attempts to write systemd unit files (via sudo tee) and/or user launch agents.
Install Mechanism
No OpenClaw install spec, but the package code downloads binaries from GitHub releases (https://api.github.com/repos/MetaCubeX/mihomo/releases/latest) and extracts them locally — GitHub releases is a standard host, but this involves extracting and placing executables on disk and running shell tools (gunzip/unzip/mv).
Credentials
The skill requests no special environment variables or secrets. It uses standard OS config paths (XDG_CONFIG_HOME/APPDATA) and home directory. It does reference process.env values for locating config dirs but does not require unrelated credentials.
Persistence & Privilege
The skill does not force permanent inclusion (always:false). However, the installer can create system-level services (writes to /etc/systemd/system via sudo) or user launch agents and may set service capabilities (AmbientCapabilities in the unit). Installing as a service or extracting an executable requires elevated actions and is therefore privileged in effect.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install claw-use-mihomo
  3. After installation, invoke the skill by name or use /claw-use-mihomo
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.2.0
v0.2.0: Hardening release — atomic config writes, YAML validation, timeouts, shell injection fixes, graceful shutdown. 15 issues fixed.
v0.1.0
Initial release of claw-use-mihomo. - Install and configure mihomo proxy from subscription or single node links. - Supports vmess, ss, trojan, and vless protocols. - Start, stop, and monitor mihomo proxy status with JSON output. - Automatic node switching with watchdog for improved reliability. - All commands provide structured JSON responses and clear exit codes.
Metadata
Slug claw-use-mihomo
Version 0.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

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.

💬 Comments