TOOLS标准模板: 新增第21章 Hermes Agent (Ubuntu2)
This commit is contained in:
@@ -874,3 +874,62 @@ memory_forget(memoryId="<找到的ID>") # 再删除
|
||||
| 更新已有记忆 | `memory_update` | `memoryId`, `text` |
|
||||
| 删除记忆 | `memory_forget` | `memoryId` 或 `query` |
|
||||
| 看有多少条 | `memory_stats` | `scope` |
|
||||
|
||||
## 21. Hermes Agent (Ubuntu2) (2026-04-12)
|
||||
|
||||
### 概述
|
||||
|
||||
Hermes Agent 是 Nous Research 开发的自改进 AI agent,支持 Telegram/Discord/Slack 等消息平台。
|
||||
|
||||
- **安装位置**: `~/.hermes/hermes-agent/`
|
||||
- **systemd 服务**: `hermes-gateway.service`(已 enable,linger 已开启)
|
||||
|
||||
### 配置文件
|
||||
|
||||
| 文件 | 位置 |
|
||||
|------|------|
|
||||
| 环境变量 | `~/.hermes/hermes-agent/.env` |
|
||||
| 主配置 | `~/.hermes/config.yaml` |
|
||||
| systemd service | `~/.config/systemd/user/hermes-gateway.service` |
|
||||
|
||||
### 代理配置
|
||||
|
||||
Hermes Gateway 通过代理访问 Telegram,代理写在 systemd service 文件中:
|
||||
|
||||
```ini
|
||||
Environment="ALL_PROXY=http://127.0.0.1:10808"
|
||||
Environment="HTTPS_PROXY=http://127.0.0.1:10808"
|
||||
Environment="HTTP_PROXY=http://127.0.0.1:10808"
|
||||
```
|
||||
|
||||
### 重启步骤
|
||||
|
||||
```bash
|
||||
# 仅重启(无需重载 systemd)
|
||||
systemctl --user restart hermes-gateway
|
||||
|
||||
# 重载 systemd(修改 service 文件后必须)
|
||||
systemctl --user daemon-reload && systemctl --user restart hermes-gateway
|
||||
```
|
||||
|
||||
### 状态与日志
|
||||
|
||||
```bash
|
||||
# 查看状态
|
||||
systemctl --user status hermes-gateway
|
||||
hermes gateway status
|
||||
|
||||
# 查看日志
|
||||
journalctl --user -u hermes-gateway -n 30 # systemd journal
|
||||
tail -30 ~/.hermes/logs/agent.log # agent 日志
|
||||
tail -30 ~/.hermes/logs/gateway.log # gateway 日志
|
||||
```
|
||||
|
||||
正常启动标志:`[Telegram] Connected to Telegram (polling mode)` / `✓ telegram connected`
|
||||
|
||||
### Bot Token
|
||||
|
||||
- **Bot**: 云智 bot
|
||||
- **Token**: `8653044481:AAFmqdOBOFeQB6JI3M0977rLgj0s28mvbeY`
|
||||
- **用户名**: `@shenwei_ubuntu2_yunzhi_bot`
|
||||
- 更换 bot:编辑 `~/.hermes/hermes-agent/.env` 中的 `TELEGRAM_BOT_TOKEN`
|
||||
|
||||
Reference in New Issue
Block a user