Files
carlandCursor 08b25e8f87 移除 OpenClaw/ClawHub 遗留并更新文档
删除 allowall.sh、旧版 CLI/Web 路由,README 改为 Hermes 专用说明。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-17 14:54:14 +08:00

38 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# hermes-agent-home
在本机用 **Docker Compose** 管理多个 **[NousResearch Hermes Agent](https://github.com/NousResearch/hermes-agent)** 实例:CLI + 可选 Web 管理台。
每实例独立数据目录挂载到容器 `/opt/data`(`config.yaml`、`.env`、`sessions/` 等)。默认使用官方镜像 `nousresearch/hermes-agent:latest`,无需 clone 源码。
## 快速开始
```bash
cd /path/to/hermes-agent-home
cp .env.example .env # 可选:改 HERMES_IMAGE、Web 密码等
./hermes-agent-cli.sh check
./hermes-agent-cli.sh compose-build 1 # 拉取官方镜像
./hermes-agent-cli.sh setup 1 # 交互配置 API 密钥等(或 Web「Hermes 引导」)
./hermes-agent-cli.sh run 1
# 实例 1:API http://127.0.0.1:8642 · Dashboard http://127.0.0.1:9119
```
本地从源码构建镜像时,在 `.env` 设置 `HERMES_USE_LOCAL_BUILD=1` 与 `HERMES_SOURCE`(指向含 `Dockerfile` 的 hermes-agent 仓库根目录)。
## Web
见 [hermes-agent-web/README.md](hermes-agent-web/README.md)。默认 http://127.0.0.1:8781
## 端口与命名
| 项目 | 说明 |
|------|------|
| Compose 项目名 | `hermes-<序号>` |
| 服务名 | `gateway` |
| 容器名示例 | `hermes-1-gateway-1` |
| 网关 API 端口 | `8641 + 序号`(实例 1 → 8642) |
| Dashboard 端口 | `9118 + 序号`(实例 1 → 9119) |
文档:https://hermes-agent.nousresearch.com/docs/user-guide/docker