Hermes Agent 安装教程:Linux 和 Windows

749 字
4 分钟
Hermes Agent 安装教程:Linux 和 Windows

Hermes Agent 安装教程:Linux 和 Windows#

Hermes Agent 是一个可以在终端、桌面端和消息平台上运行的 AI 助手。对于大多数用户,最省事的安装方式就是直接用官方安装脚本;如果你用的是 Windows,则可以直接走官方 PowerShell 安装方式,省掉很多手动配置步骤。

NousResearch
/
hermes-agent
Waiting for api.github.com...
00K
0K
0K
Waiting...

这篇文章只讲最实用的两条路径:Linux 安装和 Windows 安装。

安装前准备#

先确认下面这些基础条件已经满足:

  • 能正常访问 Hermes 官方网站
  • 机器上有 git
  • Linux 下建议有 curlxz-utils
  • Windows 使用 PowerShell 进行安装

官方文档里提到,安装器会自动处理 Python、Node.js、ripgrep、ffmpeg 等依赖,所以一般不需要你手动装这些组件。

Linux 安装#

Linux 上最简单的方式是直接执行官方安装脚本:

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

安装完成后,刷新当前 shell:

source ~/.bashrc

然后启动 Hermes:

hermes

如果你想先检查安装情况,可以直接运行:

hermes doctor

Linux 常见补充#

如果你是 Debian 或 Ubuntu,官方文档建议先确保这两个包存在:

sudo apt install curl xz-utils

如果你要使用桌面端,通常还需要编译相关依赖:

sudo apt install build-essential

Linux 安装后的常用命令#

hermes model
hermes tools
hermes setup
hermes config check

这些命令分别用于选择模型、配置工具、运行向导和检查配置。

Windows 安装#

Windows 原生安装可以直接在 PowerShell 里执行官方安装命令:

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

安装完成后,打开新的 PowerShell 窗口,直接运行:

hermes

如果你想检查是否安装正常:

hermes doctor

Windows 桌面端#

如果你更想要图形界面,官方也提供 Hermes Desktop。安装完命令行后,也可以直接运行:

hermes desktop

验证是否安装成功#

无论 Linux 还是 Windows,最直接的验证方式都是这三个动作:

  1. hermes doctor
  2. hermes model
  3. hermes

如果 hermes doctor 能正常跑完,说明主体安装基本没问题;如果能进入交互界面并正常发消息,说明可用。

推荐的安装路径#

如果你只是想尽快用起来,推荐顺序是:

  • Linux:直接跑 install.sh
  • Windows:直接跑 install.ps1
  • 需要图形界面:安装后再开 hermes desktop

常见问题#

1. 提示找不到 hermes#

先重新打开终端,或者执行:

source ~/.bashrc

Windows 则打开一个新的 PowerShell 窗口再试。

2. 提示缺少 API Key#

先运行:

hermes model

按照向导选择你的模型提供方,再继续使用。

3. 安装后想调整配置#

你可以随时使用这些命令:

hermes setup
hermes config set
hermes config check
hermes doctor

结尾#

Hermes 的安装并不复杂,核心就是选对平台,然后用官方安装脚本完成初始化。Linux 用 install.sh,Windows 用 install.ps1,后面再根据需要配置模型和工具即可。

如果你要把它接到自己的工作流里,后面最值得继续看的就是模型配置、工具开关和技能系统。

文章分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Hermes Agent 安装教程:Linux 和 Windows
https://laohou.net/blog/hermes-agent-install/
作者
LaoHou
发布于
2026-07-22
许可协议
CC BY-NC-SA 4.0

评论区

Profile Image of the Author
老侯
Hello, I'm LaoHou.
老侯博客
欢迎来到我的博客!滑稽可能在努力写代码。
分类
标签
站点统计
文章
5
分类
1
标签
22
总字数
6,976
运行时长
0
最后活动
0 天前

文章目录