版本:v0.11.0 (v2026.4.23) · 更新于:2026年4月
| 操作系统 | 支持版本 | 备注 |
|---|---|---|
| macOS | macOS 12+ | Intel 和 Apple Silicon 均支持 |
| Linux | Ubuntu 20.04+, Debian 11+ | 推荐 Linux 用于生产部署 |
注意:Hermes Agent 当前不提供 Windows 原生支持。Windows 用户可通过 WSL2 运行。
Hermes Agent 需要 Node.js 20+ 和 npm:
# 使用 Homebrew brew install node@20 # 或直接从官网下载 # https://nodejs.org/
git clone https://github.com/NousResearch/hermes-agent.git cd hermes-agent
npm install
安装过程可能需要几分钟。
复制配置文件并编辑:
cp config.example.yaml config.yaml
编辑 config.yaml 文件,至少配置:
npm start
终端模式下直接输入消息即可对话。
# Ubuntu/Debian curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt install -y nodejs # 验证安装 node --version # 应显示 v20.x
git clone https://github.com/NousResearch/hermes-agent.git cd hermes-agent npm install
cp config.example.yaml config.yaml # 用 vim/nano 编辑 config.yaml 配置 Provider 和平台
npm start
以管理员身份打开 PowerShell,运行:
wsl --install -d Ubuntu
重启电脑后,完成 Ubuntu 初始化设置。
按照上方 Linux 安装步骤操作即可。
| 命令 | 说明 |
|---|---|
npm start | 启动 Hermes Agent |
npm run dev | 开发模式启动(热重载) |
npm test | 运行测试 |
npm run build | 构建生产版本 |
运行 npm install 重新安装依赖。
编辑 config.yaml 中的 platforms 段,注释掉不需要的平台。
git pull origin main npm install
xia007 · 养虾人的导航站