快速入门

安装 Hermes Agent

2 分钟内完成安装。一条命令,零前置依赖(只需 Git)。支持 Linux、macOS、WSL2 和 Windows。

终端
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

Works on macOS 12+. The installer handles all dependencies automatically.

安装步骤详解

Step 01

1. 运行安装脚本

打开终端,粘贴下面的一行命令。安装脚本会自动检测您的操作系统并处理一切。

# macOS / Linux / WSL2

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

# Windows (PowerShell)

iex (irm https://hermes-agent.nousresearch.com/install.ps1)
Step 02

2. 选择模型供应商

安装完成后,选择您的 LLM 供应商。支持 Nous Portal(OAuth)、OpenRouter、OpenAI、Anthropic、Gemini 或自定义端点。

# Choose your LLM provider interactively

hermes model

# Or use Nous Portal (OAuth, no API key needed)

hermes setup --portal
Step 03

3. 连接消息平台

设置消息网关,从 Telegram、Discord、Slack、WhatsApp 或 Signal 访问您的代理——全部通过统一进程。

# Interactive gateway setup wizard

hermes gateway setup

# Start the messaging gateway

hermes gateway
Step 04

4. 开始对话

在终端输入 hermes,开始您的第一次对话。代理立即开始学习——构建记忆和创建技能。

# Reload your shell first, then:

source ~/.bashrc # or: source ~/.zshrchermes

前置条件

非 Windows 平台仅需 Git。Linux 还需确保 curl 和 xz-utils 可用。安装脚本会自动处理其他一切。

安装脚本自动处理的内容

自动安装的依赖:

uv(Python 包管理器)、Python 3.11、Node.js v22、ripgrep(快速文件搜索)、ffmpeg(音频转换)

安装目录结构

安装后文件的存放位置:

安装方式代码位置可执行文件数据目录
普通用户 (git)~/.hermes/hermes-agent/~/.local/bin/hermes~/.hermes/
Root (sudo)/usr/local/lib/hermes-agent//usr/local/bin/hermes/root/.hermes/

最快路径:Nous Portal

一个订阅即可使用 300+ 模型和 Tool Gateway(网页搜索、图片生成、TTS、云端浏览器)。运行 hermes setup --portal 一键完成 OAuth 登录 + 供应商设置 + Tool Gateway 激活。

hermes setup --portal

安装完成后

重新加载 Shell 并开始对话

source ~/.bashrc # or: source ~/.zshrchermes # Start chatting!

故障排查

问题解决方案
hermes: command not found重新加载 Shell(source ~/.bashrc 或 source ~/.zshrc),或检查 PATH。
API key not set运行 hermes model 配置供应商,或 hermes config set PROVIDER_API_KEY your_key。
更新后配置丢失运行 hermes config check 然后 hermes config migrate。

随时运行 hermes doctor 检查安装状态。它会准确告诉你缺少什么以及如何解决。