mihomo-cli

Inspect and operate a local Mihomo/Clash.Meta/Clash Verge/ClashMac instance through its REST API. Use when the user asks to check proxy status, list nodes, read delay/latency history, switch proxy groups, inspect active connections, flush DNS/FakeIP cache, restart Mihomo, or discover where Mihomo is installed/running on the machine.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mihomo-cli" with this command: npx skills add parkgogogo/mihomo-cli

Use the bundled script for repeatable Mihomo operations instead of re-discovering paths and API auth each time.

Quick start

Run:

scripts/mihomo-cli.sh status

The script auto-detects common Mihomo installs by checking:

  • ~/Library/Application Support/clashmac/work/config.yaml
  • ~/.config/mihomo/config.yaml
  • ~/.config/clash/config.yaml

It extracts:

  • external-controller
  • secret

Common commands

scripts/mihomo-cli.sh status
scripts/mihomo-cli.sh proxies
scripts/mihomo-cli.sh groups
scripts/mihomo-cli.sh test
scripts/mihomo-cli.sh test "🇭🇰 E0 香港核心"
scripts/mihomo-cli.sh connections
scripts/mihomo-cli.sh flush dns
scripts/mihomo-cli.sh flush fakeip
scripts/mihomo-cli.sh restart
scripts/mihomo-cli.sh config

When switching a group

  1. List groups first:
scripts/mihomo-cli.sh groups
  1. Switch the selector/group to a target proxy:
scripts/mihomo-cli.sh switch GLOBAL "🇭🇰 E0 香港核心"

Use exact group and proxy names.

For latency / node quality questions

Default to:

scripts/mihomo-cli.sh proxies

This shows the latest recorded delay from Mihomo's history.

If the user wants a live test for one node, run:

scripts/mihomo-cli.sh test "<proxy-name>"

Treat 0ms with caution: it may indicate missing/failed measurement rather than a truly perfect route.

For deeper API work

Read references/api.md when you need raw endpoint details, request shapes, or want to call an endpoint not wrapped by the helper script.

Practical notes

  • Prefer read-only commands first (status, proxies, groups, connections) before mutating state.
  • Before switch or restart, be sure that changing the active route is actually what the user wants.
  • If API requests return Unauthorized, re-check secret from the detected config.
  • If the script cannot find config automatically, inspect running processes for mihomo, clash, verge, or clashmac, then locate the active config path from process args.
  • On macOS with ClashMac, the real core may run as mihomo under ~/Library/Application Support/clashmac/core/ while the GUI runs as ClashMac.app.

Useful fallback detection

When auto-detect fails, use:

ps aux | grep -iE "clash|mihomo|verge" | grep -v grep

Then inspect the config path from the process command line.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Port Process

通过端口查找和管理系统进程。支持查找占用端口的进程、杀掉占用端口的进程、查看端口使用情况等操作。适用于 macOS 和 Linux 系统。使用场景:(1) "谁占用了 8080 端口",(2) "杀掉占用 3000 端口的进程",(3) "查看当前端口使用情况"。

Registry SourceRecently Updated
710Profile unavailable
General

Weather Push

每日天气推送 - 定时发送深圳天气+mihomo服务状态到飞书

Registry SourceRecently Updated
1640Profile unavailable
General

V2ray Proxy

V2Ray代理管理 - 自动开关代理、根据网络状况自动配置系统代理。使用场景:OpenClaw需要访问外网时自动开启代理、不需要时关闭。

Registry SourceRecently Updated
3221Profile unavailable
General

Anyone Procotol Proxy

This skill enables IP address masking and accessing hidden services on the Anyone Network. Route requests through the Anyone Protocol VPN network using a local SOCKS5 proxy.

Registry SourceRecently Updated
2.3K0Profile unavailable