三个好消息一次性到位:
之前 Hermes Agent 只有 CLI(命令行)。现在有了 Web UI:
`hermes dashboard`
启动后浏览器打开 http://localhost:9119,界面包含:
与 CLI 的区别:
维度
CLI
UI
输入方式
命令行
浏览器
工具进度
文字滚动
可视化卡片
技能查看
/skills
命令
点击按钮
会话恢复
hermes --continue
UI 内切换
适合人群
开发者
所有人
Google 最新开源模型,特点:
`curl -fsSL https://ollama.com/install.sh | sh`
`# 26B 版本(需 ~16GB VRAM)
ollama pull gemma4:26b
# 或 31B 版本(需 ~20GB VRAM)
ollama pull gemma4:31b`
`ollama run gemma4:26b --ctx-size 131072`
Hermes Agent 要求模型至少 64K 上下文,Gemma 4 支持 128K,完全满足。
`hermes model`
选择:
http://127.0.0.1:11434/v1gemma4:26b根据 Hermes 官方测试:
任务
Gemma 4 26B
Claude Sonnet
GPT-4o
代码生成
85%
92%
90%
文档问答
88%
95%
93%
终端操作
82%
90%
88%
技能生成
78%
85%
83%
结论:Gemma 4 本地运行,性能接近主流付费模型,成本为零。
腾讯 2026 年开放了 iLink Bot API,这是首次官方支持个人微信账号的 Bot 接口。
与以往方案的区别:
方案
性质
封号风险
iPad 协议逆向
灰色
高
PC 客户端 Hook
灰色
高 iLink Bot API官方合法零
hermes gateway setup → 扫码 → 确认 → 完成`pip install aiohttp cryptography
pip install hermes-agent[messaging]`
`hermes gateway setup`
选择 Weixin,向导会:
~/.hermes/weixin/accounts/成功提示:微信连接成功,account_id=your-account-id
`# ~/.hermes/.env
WEIXIN_ACCOUNT_ID=your-account-id
# 可选:访问控制
WEIXIN_DM_POLICY=open
WEIXIN_ALLOWED_USERS=user_id_1,user_id_2`
`hermes gateway`
Adapter 恢复凭证,连接 iLink API,开始长轮询接收消息。
私聊策略(WEIXIN_DM_POLICY):
值
行为
open
任何人可私聊(默认)
allowlist
仅白名单用户可私聊
disabled
忽略所有私聊
pairing
配对模式(首次设置)
群聊策略(WEIXIN_GROUP_POLICY):
值
行为
open
所有群都响应
allowlist
仅白名单群响应
disabled
忽略所有群消息(默认)
默认群聊禁用原因:个人微信可能在很多群,避免误触发。
接收( inbound ):
类型
处理方式
图片
AES 解密 → JPEG 缓存
视频
AES 解密 → MP4 缓存
文件
AES 解密 → 原文件名保留
语音
提取文本(如有)或 SILK 音频
发送( outbound ):
方法
发送内容
send
文本 + Markdown 格式
send_image
图片(CDN 上传)
send_document
文件附件
微信媒体通过加密 CDN 传输。Hermes 自动处理:
无需手动配置,依赖 cryptography 包。
`# 1. 安装 Hermes Agent
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
# 2. 安装 Ollama + Gemma 4
curl -fsSL https://ollama.com/install.sh | sh
ollama pull gemma4:26b
ollama run gemma4:26b --ctx-size 131072
# 3. 配置 Hermes 使用本地模型
hermes model
# Provider: Custom endpoint
# Base URL: http://127.0.0.1:11434/v1
# API Key: 留空
# Model: gemma4:26b
# 4. 配置微信
pip install aiohttp cryptography hermes-agent[messaging]
hermes gateway setup
# 选择 Weixin → 扫码 → 确认
# 5. 启动 UI + Gateway
hermes ui &
hermes gateway`
~/.hermes/config.yaml)`# 模型配置
provider: custom
base_url: http://127.0.0.1:11434/v1
model: gemma4:26b
# Gateway 配置
platforms:
weixin:
account_id: your-account-id
dm_policy: open
group_policy: disabled
# UI 配置
ui:
host: localhost
port: 8080`
社区项目 HermesClaw 实现了更高级玩法:同一个微信账号同时运行 Hermes Agent 和 OpenClaw。
`# 需要先安装 Hermes 微信 Gateway 或 OpenClaw clawbot
git clone https://github.com/AaronWong1999/hermesclaw
cd hermesclaw
pip install -r requirements.txt
python hermesclaw.py setup`
错误:Context window too small
解决:
`ollama run gemma4:26b --ctx-size 131072`
原因:终端不支持 QR 渲染
解决:
`pip install hermes-agent[messaging]
hermes gateway setup
# 向导会提供 URL,浏览器打开扫码`
检查:
WEIXIN_ACCOUNT_ID
是否正确hermes doctor
诊断连接`hermes ui --port 9090 [#换端口]()`
维度
Hermes Agent
OpenClaw (QQBot)
微信类型
个人微信
企业微信(QQBot)
连接方式
iLink Bot API
企业微信 API
Token 要求 免费无需 Token 需企业微信配置
公网要求 不需要 需要 Webhook
群聊默认
禁用(个人微信多群)
开放
学习循环
✓
✗
Hermes Agent 这次更新三件事:
零成本 + 官方合法 + 可视化界面。这是目前最优雅的个人 AI 代理方案。
参考资源: Hermes Agent 官网:https://hermes-agent.nousresearch.com 微信集成文档:https://hermes-agent.nousresearch.com/docs/user-guide/messaging/weixin Gemma 4 模型:https://ollama.com/library/gemma4 HermesClaw:https://github.com/AaronWong1999/hermesclaw
本文转载自微信公众号,如有侵权请联系删除。