
一句话总览:Hermes Agent 推荐用一键脚本安装(Linux/macOS/WSL2 国内加速:curl -fsSL ``https://res1.hermesagent.org.cn/install.sh`` | bash;Windows PowerShell 国内加速:irm ``https://res1.hermesagent.org.cn/install.ps1`` | iex),全程无需 sudo;安装后执行 hermes setup 配置大模型 API,再用 hermes 启动对话即可。而国内用户注意,本教程推荐搭配 Kimi 大模型使用,无需特殊网络,中文理解和智能体任务表现出色。

curl -fsSL https://res1.hermesagent.org.cn/install.sh | bashirm https://res1.hermesagent.org.cn/install.ps1 | iex# Linux/macOS/WSL2
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
# Windows PowerShell
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)安装过程:自动下载 Python、uv、克隆仓库、配置环境,3-5 分钟完成;看到"Installation complete"即成功。 后续操作:
# 重新加载shell环境
source ~/.bashrc # Bash用户
# 或 source ~/.zshrc # Zsh用户
# 检查安装是否成功
hermes doctordocker-compose.yml 文件:version: "3.8"
services:
hermes:
image: nousresearch/hermes-agent:latest
volumes:
- ~/.hermes:/root/.hermes
environment:
- TZ=Asia/Shanghai
ports:
- "8080:8080" # 可选,Web UI端口
restart: unless-stoppeddocker-compose up -ddocker-compose exec hermes hermes setup# 1. 安装uv包管理器
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. 克隆仓库
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent
# 3. 创建Python 3.11虚拟环境
uv venv venv --python 3.11
source venv/bin/activate # Linux/macOS
# 或 .\venv\Scripts\activate # Windows
# 4. 安装所有依赖
uv pip install -e ".[all]"
# 5. 创建配置目录并链接
mkdir -p ~/.hermes
ln -s $(pwd) ~/.hermes/hermes-agent
# 6. 添加命令别名(可选)
echo "alias hermes='$(pwd)/venv/bin/python $(pwd)/hermes/main.py'" >> ~/.bashrc
source ~/.bashrchermes setup按提示完成:
# 列出可用模型
hermes model list
# 设置默认模型
hermes model set openrouter/gpt-4o# 启动CLI交互
hermes
# 启动Web UI(后台运行)
hermes web start
# 查看Web UI地址
hermes web status
# 一键更新
hermes update
# 源码更新(手动安装版)
cd ~/.hermes/hermes-agent
git pull
uv pip install -e ".[all]"# 执行卸载脚本
~/.hermes/hermes-agent/scripts/uninstall.sh
# 删除配置目录
rm -rf ~/.hermeshermes config set memory.limit 4GB 限制内存使用对于国内用户,中文社区专属加速镜像从根本上解决了境外源网络不稳定、下载慢的问题,实测安装速度提升 5-10 倍;搭配 Kimi 大模型使用,无需额外网络配置,既能获得精准自然的中文语义理解,又能发挥其超长文本处理和复杂任务执行的优势,与 Hermes Agent 的智能体特性深度契合,大幅提升各类自动化工作的效率。
安装完成后,只需运行 hermes setup 完成大模型 API 配置,再输入 hermes 即可开启交互。你可以让它帮你编写调试代码、批量处理文档、执行定时任务,还能通过 Telegram、Discord 等平台随时随地调用。随着使用的深入,Hermes 会不断学习你的工作习惯和偏好,自主生成并优化专属技能,成为越来越懂你的智能伙伴。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。