TL;DR
mihomo-tray 是 Windows 端极简 Mihomo 托盘工具,无 GUI 配置 + 纯 config.yaml 驱动。适合:高级用户 + CLI 党 + 不想 Electron / Tauri 占资源。对比:完整 GUI 用 Mihomo Party / Clash Verge Rev;要 Web Dashboard 配合 Zashboard。
mihomo-tray 是 Mihomo 用户的极简选择。本文按定位、安装、配置、Web Dashboard 配合四块讲清楚。
mihomo-tray 在 Mihomo 客户端中的位置
| 客户端 | 类型 | GUI | 内存 | 适合 |
|---|---|---|---|---|
| mihomo-tray | 托盘 | ❌ | 极小 | CLI 党 |
| Mihomo Party | Electron GUI | ✅ 现代 | 较大 | UI 党 |
| Clash Verge Rev | Tauri GUI | ✅ 完整 | 中等 | 主流 |
| Clash Verge Legacy | Tauri GUI | ✅ | 中等 | 老用户 |
| v2rayN + Mihomo 内核 | WinForms GUI | ✅ | 小 | Windows 原生 |
mihomo-tray 占资源最少,但配置门槛最高。
下载 Mihomo 内核
mihomo-tray 通常基于 Mihomo 主仓库的二进制。下载:
github.com/MetaCubeX/mihomo/releases
Windows:
mihomo-windows-amd64-v*.zip(标准 64 位)mihomo-windows-arm64-v*.zip(Surface Pro X 等)
GitHub 慢看本页顶部「加速下载」区块。
社区也有现成的 mihomo-tray 打包版本,如 zhongfly/mihomo-tray,集成了托盘 UI。
第一次配置
1. 解压
解压到 D:\mihomo\:
mihomo-windows-amd64.exe
config.yaml (需要自己创建)
2. 准备 config.yaml
最简配置:
port: 7890
socks-port: 7891
mixed-port: 7892
allow-lan: false
mode: rule
log-level: info
external-controller: 127.0.0.1:9090
proxy-providers:
airport:
type: http
url: https://your-airport.com/api/v1/client/subscribe?token=xxx
interval: 21600
path: ./airport.yaml
health-check:
enable: true
interval: 600
url: http://www.gstatic.com/generate_204
proxy-groups:
- name: Proxy
type: select
use:
- airport
proxies:
- DIRECT
rules:
- GEOIP,CN,DIRECT
- MATCH,Proxy
3. 启动
双击 mihomo-windows-amd64.exe(或重命名为 mihomo-tray.exe):
mihomo-windows-amd64.exe -d .
托盘出现绿色图标(如果用社区打包版有 UI)。命令行版会在控制台输出日志。
4. 设置系统代理
Windows 设置 → 网络 → 代理 → 手动 → 127.0.0.1:7892。
系统代理自动设置
通过 PowerShell 脚本自动开关:
# 开启
$proxy = "127.0.0.1:7892"
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer -Value $proxy
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -Value 1
# 关闭
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -Value 0
TUN 模式(接管全流量)
config.yaml 加:
tun:
enable: true
stack: system
auto-route: true
auto-detect-interface: true
dns-hijack:
- any:53
需要管理员权限运行 + Wintun 驱动(首次自动下载)。
配合 Web Dashboard
启动 mihomo-tray 后,可用浏览器或 GUI Dashboard 远程管理:
Zashboard(推荐)
访问 board.zash.run.place 或自托管:
- API 地址:
http://127.0.0.1:9090 - 自动加载所有节点 / 规则 / 流量
YACD-meta
老牌 Web UI,yacd.metacubex.one。
Razord-meta
经典 Web UI fork。
系统启动跟随
方法 1:启动文件夹
把 mihomo-tray 快捷方式放到:
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\
登录后自动启动。
方法 2:nssm 服务(推荐)
# 下载 nssm
nssm install mihomo "D:\mihomo\mihomo.exe" "-d" "D:\mihomo"
nssm start mihomo
开机最早自启,无需登录。
方法 3:任务计划程序
任务计划程序 → 创建任务:
- 触发器:系统启动时
- 操作:启动程序 mihomo.exe
- 选项:以管理员权限运行
常见报错
启动报错 “configuration error”
- config.yaml 语法错(用 yamllint.com 检查)
- 引号 / 缩进问题
TUN 模式启动失败
- Wintun 驱动未装:先以管理员启动一次
- 其它 VPN 占用:关闭其它 VPN
节点全部超时
- proxy-providers URL 失效(机场订阅过期)
- 检查代理组配置
来源与最后核对
- Mihomo 内核:github.com/MetaCubeX/mihomo → 详见 /clients/mihomo/
- 社区打包版(之一):github.com/zhongfly/mihomo-tray
- 对比 Mihomo Party / Clash Verge Rev / v2rayN
本文最后实际验证日期:2026-05-20。