返回顶部
m

mihomo-cliMihomo命令行

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
179
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

mihomo-cli

技能名称: mihomo-cli
详细描述:
使用捆绑脚本执行可重复的Mihomo操作,无需每次重新发现路径和API认证信息。

快速开始

运行:

bash
scripts/mihomo-cli.sh status

该脚本通过检查以下路径自动检测常见的Mihomo安装:

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

它会提取:

  • - external-controller
  • secret

常用命令

bash
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

切换分组时

  1. 1. 首先列出分组:

bash
scripts/mihomo-cli.sh groups

  1. 2. 将选择器/分组切换到目标代理:

bash
scripts/mihomo-cli.sh switch GLOBAL 🇭🇰 E0 香港核心

请使用精确的分组和代理名称。

关于延迟/节点质量问题

默认使用:

bash
scripts/mihomo-cli.sh proxies

这将显示Mihomo历史记录中最新记录的延迟。

如果用户希望对单个节点进行实时测试,请运行:

bash
scripts/mihomo-cli.sh test <代理名称>

谨慎对待0ms:它可能表示测量缺失/失败,而非真正完美的路由。

深入API工作

当需要原始端点详情、请求格式或调用辅助脚本未封装的端点时,请阅读references/api.md。

实用提示

  • - 在修改状态前,优先使用只读命令(status、proxies、groups、connections)。
  • 在执行switch或restart前,请确认更改活动路由确实是用户所需。
  • 如果API请求返回Unauthorized,请从检测到的配置中重新检查secret。
  • 如果脚本无法自动找到配置,请检查运行中的进程,查找mihomo、clash、verge或clashmac,然后从进程参数中定位活动配置路径。
  • 在macOS上使用ClashMac时,实际核心可能以mihomo身份运行于~/Library/Application Support/clashmac/core/目录下,而GUI则作为ClashMac.app运行。

有用的后备检测方法

当自动检测失败时,使用:

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

然后从进程命令行中检查配置路径。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mihomo-cli-1776068703 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mihomo-cli-1776068703 技能

通过命令行安装

skillhub install mihomo-cli-1776068703

下载

⬇ 下载 mihomo-cli v1.0.0(免费)

文件大小: 6.06 KB | 发布时间: 2026-4-15 13:25

v1.0.0 最新 2026-4-15 13:25
Smart discovery and control for Mihomo/Clash proxy instances

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部