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

ubuntu安装HermesAgent接入Nous平台小米大模型和微信通道配置p 由于小米 Xiaomi MiMo 接入 Hermes Agent 并限免两周 4 月 8 日 4 月 22 日 24 00 这里先简单试用尝尝鲜 p HermesAgent 相比与之前的 OpenClaw 小龙虾优化了记忆系统和 自我进化 的闭环学习

大家好,我是讯享网,很高兴认识大家。这里提供最前沿的Ai技术和互联网信息。



 

由于小米Xiaomi MiMo接入Hermes Agent,并限免两周 (4 月 8 日 - 4 月 22 日 24:00),这里先简单试用尝尝鲜。

HermesAgent相比与之前的OpenClaw小龙虾优化了记忆系统和“自我进化”的闭环学习(Learning Loop),不排除小龙虾后续也会朝这个方向优化。

官网 https://hermes-agent.nousresearch.com/ 网站打开非常卡

安装命令如下

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

如果网络报错设置代理

#设置PROXY 当前终端有效 export ALL_PROXY=socks5://192.168.88.1:7890 export HTTP_PROXY=socks5://192.168.88.1:7890 export HTTPS_PROXY=socks5://192.168.88.1:7890

设置界面

这里用Nous通道的小米模型(目前免费使用),当然你也可以选择其他通道的 智谱 千问模型

Select provider: → Nous Portal (Nous Research subscription) #提示 To continue: 1. Open: https://portal.nousresearch.com/device/verify?user_code=MEQW-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) #这里默认会显示小米的免费模型 回车即可
 #下一步设置消息通道 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..com/q/7GiQu1?qrcode=fd0d4e6baa66a0adf9f62a391&bot_type=3 (终端二维码渲染失败,请直接打开上面的二维码链接) 会生成二维码链接,打开扫描即可 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

说明安装成功

这部必做,要不后续识别不到hermes命令

source ~/.bashrc

注意 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_USERS=true in ~/.hermes/.env to allow open access, or configure platform allowlists (e.g., TELEGRAM_ALLOWED_USERS=your_id). WARNING gateway.run: Unauthorized user:  () on weixin WARNING gateway.run: Unauthorized user:  () on weixin

可以编辑~/.hermes/.env

在最后加

WEIXIN_ALLOWED_USERS=o9cq80yj2Ad_3UPXjjYoA7wGSBIQ

之后 微信可以正常发消息使用hermesagent了

目前的hermes-webui不支持Nous Portal配置的模型,这里仅供参考。

安装hermes-webui

git 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_PORT="8787" # 本地要代理的端口 PROXY_PORT="80" # 对外暴露的端口(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 < 
  
    
    

运行脚本

chmod +x setup-caddy-hermes-agent.sh sudo ./setup-caddy-hermes-agent.sh

此时局域网其他点可用http://ip 访问hermes-webui

首次进入页面会强制弹出向导页设置,按步骤设置即可

1.风险权限批准

对于有风险的操作,Hermes agent会先弹出权限请求提示,批准后才能操作

2.技能市场

Hermes agent没有技能市场。

小讯
上一篇 2026-04-14 17:43
下一篇 2026-04-14 17:41

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/260594.html