ubuntu安装HermesAgent接入Nous平台小米大模型和微信通道配置

张开发
2026/5/5 9:53:23 15 分钟阅读
ubuntu安装HermesAgent接入Nous平台小米大模型和微信通道配置
由于小米Xiaomi MiMo接入Hermes Agent并限免两周 4 月 8 日 - 4 月 22 日 24:00这里先简单试用尝尝鲜。HermesAgent相比与之前的OpenClaw小龙虾优化了记忆系统和“自我进化”的闭环学习Learning Loop不排除小龙虾后续也会朝这个方向优化。官网 https://hermes-agent.nousresearch.com/ 网站打开非常卡一、安装过程1.安装命令安装命令如下curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash如果网络报错设置代理#设置PROXY 当前终端有效 export ALL_PROXYsocks5://192.168.88.1:7890 export HTTP_PROXYsocks5://192.168.88.1:7890 export HTTPS_PROXYsocks5://192.168.88.1:7890设置界面2.设置API供应商这里用Nous通道的小米模型目前免费使用当然你也可以选择其他通道的 智谱 千问模型Select provider: → Nous Portal (Nous Research subscription) #提示 To continue: 1. Open: https://portal.nousresearch.com/device/verify?user_codeMEQW-AEGQ 2. If prompted, enter code: MEQW-AEGQ Waiting for approval (polling every 1s)... 可用邮箱注册也可以用github gmail登陆 Subscription选择Free $0/mo 免费套餐 订阅需要使用strip支付通道验证 可以用visa 银联 AE卡 Approve Hermes Agent Login Enter the code shown in your CLI, then approve or deny the login request. User Code 这里usercode 和上面2的控制台一致即可 Waiting for approval (polling every 1s)... Login successful! Auth state: /home/hello/.hermes/auth.json Showing 1 curated models — use Enter custom model name for others. Select default model: In Out Cache /Mtok anthropic/claude-opus-4.6 $5.00 $25.00 $0.50 anthropic/claude-sonnet-4.6 $3.00 $15.00 $0.30 anthropic/claude-sonnet-4.5 $3.00 $15.00 $0.30 anthropic/claude-haiku-4.5 $1.00 $5.00 $0.10 openai/gpt-5.4 $2.50 $15.00 $0.25 openai/gpt-5.4-mini $0.75 $4.50 $0.07 openai/gpt-5.3-codex $1.75 $14.00 $0.17 google/gemini-3-pro-preview google/gemini-3-flash-preview $0.50 $3.00 $0.05 google/gemini-3.1-pro-preview $2.00 $12.00 $0.20 google/gemini-3.1-flash-lite-preview $0.25 $1.50 $0.02 qwen/qwen3.5-plus-02-15 $0.26 $1.56 qwen/qwen3.5-35b-a3b $0.16 $1.30 stepfun/step-3.5-flash $0.10 $0.30 minimax/minimax-m2.7 $0.30 $1.20 $0.06 minimax/minimax-m2.5 $0.12 $0.99 $0.06 z-ai/glm-5.1 $0.95 $3.15 $0.47 z-ai/glm-5-turbo $1.20 $4.00 $0.24 moonshotai/kimi-k2.5 $0.38 $1.72 $0.19 x-ai/grok-4.20-beta nvidia/nemotron-3-super-120b-a12b $0.10 $0.50 $0.10 arcee-ai/trinity-large-thinking $0.22 $0.85 openai/gpt-5.4-pro $30.00 $180.00 openai/gpt-5.4-nano $0.20 $1.25 $0.02 ── Upgrade at https://portal.nousresearch.com for paid models ── Available free models: - xiaomi/mimo-v2-pro free free free Enter custom model name Skip (keep current) #这里默认会显示小米的免费模型 回车即可3.设置消息通道#下一步设置消息通道 Connect a messaging platform? (Telegram, Discord, etc.) → Set up messaging now (recommended) Skip — set up later with hermes setup gateway #现在默认可选的通道 ◆ Messaging Platforms Connect to messaging platforms to chat with Hermes from anywhere. Toggle with Space, confirm with Enter. Select platforms to configure: Toggle by number, Enter to confirm. [ ] 1. Telegram [ ] 2. Discord [ ] 3. Slack [ ] 4. Matrix [ ] 5. Mattermost [ ] 6. WhatsApp [ ] 7. Weixin (WeChat) [ ] 8. BlueBubbles (iMessage) [ ] 9. Webhooks (GitHub, GitLab, etc.) ─── Weixin / WeChat Setup ─── 1. Hermes will open Tencent iLink QR login in this terminal. 2. Use WeChat to scan and confirm the QR code. 3. Hermes will store the returned account_id/token in ~/.hermes/.env. 4. This adapter supports native text, image, video, and document delivery. Start QR login now? [Y/n]: y 请使用微信扫描以下二维码 https://liteapp.weixin.qq.com/q/7GiQu1?qrcodefd0d4e6ba3320166a66a0adf9f62a391bot_type3 终端二维码渲染失败请直接打开上面的二维码链接 会生成二维码链接打开扫描即可 How should direct messages be authorized? → Use DM pairing approval (recommended) Allow all direct messages Only allow listed user IDs Disable direct messages 回车 How should group chats be handled? → Disable group chats (recommended) Allow all group chats Only allow listed group chat IDs 回车后续设置一路回车即可直到出现 Ready to go! hermes Start chatting hermes gateway Start messaging gateway hermes doctor Check for issues说明安装成功4.应用环境变量这部必做要不后续识别不到hermes命令source ~/.bashrc5.getaway开机自启注意 hermes的gateway默认不是开启自启的设置一下开机自启hermes gateway install hermes gateway start如果微信发消息没有回复可以尝试# 查看配对请求 hermes pairing list # 批准配对请求 hermes pairing approve weixin DLD2Z4DX或者查看gateway日志hermes logs gateway如果出现WARNING gateway.run: No user allowlists configured. All unauthorized users will be denied. Set GATEWAY_ALLOW_ALL_USERStrue in ~/.hermes/.env to allow open access, or configure platform allowlists (e.g., TELEGRAM_ALLOWED_USERSyour_id). WARNING gateway.run: Unauthorized user: o9cq80yj2Ad_3UPXjjYoA7wGSBIQim.wechat (o9cq80yj2Ad_3UPXjjYoA7wGSBIQim.wechat) on weixin WARNING gateway.run: Unauthorized user: o9cq80yj2Ad_3UPXjjYoA7wGSBIQim.wechat (o9cq80yj2Ad_3UPXjjYoA7wGSBIQim.wechat) on weixin可以编辑~/.hermes/.env在最后加WEIXIN_ALLOWED_USERSo9cq80yj2Ad_3UPXjjYoA7wGSBIQ之后 微信可以正常发消息使用hermesagent了6.web页配置目前的hermes-webui不支持Nous Portal配置的模型这里仅供参考。安装hermes-webuigit clone https://github.com/nesquena/hermes-webui.git hermes-webui cd hermes-webui python3 bootstrap.py启动后会占用http://127.0.0.1:8787局域网访问caddy脚本vi setup-caddy-hermes-agent.sh内容如下#!/bin/bash # 配置 LOCAL_PORT8787 # 本地要代理的端口 PROXY_PORT80 # 对外暴露的端口HTTP # 安全停止 caddy echo 停止 Caddy 服务... systemctl stop caddy 2/dev/null sleep 1 # 判断是否安装 Caddy if ! command -v caddy /dev/null; then echo 开始安装 Caddy... apt update -y apt install -y debian-keyring debian-archive-keyring apt-transport-https curl curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/gpg.key | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt | tee /etc/apt/sources.list.d/caddy-stable.list apt update -y apt install -y caddy fi # 写入纯HTTP配置无证书 echo ⚙️ 生成 Caddy 配置... tee /etc/caddy/Caddyfile /dev/null EOF :${PROXY_PORT} { reverse_proxy http://127.0.0.1:${LOCAL_PORT} { header_up X-Forwarded-Proto http header_up X-Forward-Host {host} header_up X-Real-IP {remote_host} } header Access-Control-Allow-Origin * } EOF # 启动 echo 启动 Caddy... systemctl daemon-reload systemctl enable --now caddy systemctl restart caddy echo echo ✅ 安装配置完成 echo 访问http://本机IP echo 运行脚本chmod x setup-caddy-hermes-agent.sh sudo ./setup-caddy-hermes-agent.sh此时局域网其他点可用http://ip 访问hermes-webui首次进入页面会强制弹出向导页设置按步骤设置即可二、和龙虾openclaw对比1.风险权限批准对于有风险的操作Hermes agent会先弹出权限请求提示批准后才能操作2.技能市场Hermes agent没有技能市场。

更多文章