← 返回 Skills 市场
dongyu23

Hermes Installer

作者 Zihan Jin · GitHub ↗ · v1.1.7 · MIT-0
cross-platform ✓ 安全检测通过
354
总下载
2
收藏
0
当前安装
18
版本数
在 OpenClaw 中安装
/install hermes-installer
功能描述
Hermes Agent 安装配置完整指南。当用户要求安装 Hermes Agent、部署 Hermes、配置模型提供商、配置飞书/Telegram/Discord 网关时使用此 Skill。触发词:安装 Hermes、部署 Hermes Agent、配置 Hermes、配置 GLM、配置 Kimi、配置 Ope...
使用说明 (SKILL.md)

Hermes Agent 安装配置指南

系统支持

  • Linux/macOS:使用 .sh 脚本
  • Windows:以下三种方式任选其一:
    1. Git Bash:安装 Git 后自带,可以直接运行 .sh 脚本
    2. WSL:Windows Linux 子系统
    3. 手动执行:不运行脚本,直接在 PowerShell 中执行对应命令

CLI 与消息平台

Hermes 有两个入口:

1. 终端界面(CLI)

启动交互式终端界面:

hermes

2. 消息平台(Gateway)

运行网关,通过消息平台对话:

hermes gateway start

支持的平台:Telegram、Discord、Slack、WhatsApp、Signal、Email


常用命令对照表

功能 CLI 命令 消息平台命令
开始聊天 hermes run 向机器人发送消息
设置网关 hermes gateway setup -
启动网关 hermes gateway start -
新对话 /new/reset /new/reset
改变模型 /model [provider:model] /model [provider:model]
设定人格 /personality [name] /personality [name]
重试/撤销 /retry/undo /retry/undo
压缩上下文 /compress /compress
查看使用 /usage/insights /usage/insights
浏览技能 /skills/\x3Cskill-name> /skills/\x3Cskill-name>
中断 Ctrl+C 或发送新消息 /stop 或发送新消息
平台状态 - /status/sethome

从 OpenClaw 迁移

如果你是从 OpenClaw 过来的,Hermes 可以自动导入你的设置、记忆、技能和 API 密钥。

首次设置时

运行 hermes setup,设置向导会自动检测 ~/.openclaw 并在配置开始前提供迁移建议。

安装后任何时间

hermes claw migrate              # 交互式迁移(完整配置)
hermes claw migrate --dry-run    # 预览将要迁移的内容
hermes claw migrate --preset user-data   # 不包含密钥的迁移
hermes claw migrate --overwrite  # 覆盖已有冲突

快速安装

安装前确认

在执行安装前,必须向用户确认以下信息

确认项 默认值 说明
安装位置 ~/.hermes/hermes-agent Hermes Agent 程序目录
配置目录 ~/.hermes 配置文件和日志目录
Python 版本 3.11 虚拟环境 Python 版本

确认话术:

将在以下位置安装 Hermes Agent:

  • 程序目录:~/.hermes/hermes-agent
  • 配置目录:~/.hermes

请选择安装方式:

  1. 命令行部署(推荐,需要 Python 3.11+)
  2. Docker 部署(需要 Docker)

请回复数字或方式名称,确认安装?(y/n)

安装步骤

方式一:命令行部署

# 1. 克隆仓库
git clone https://github.com/NousResearch/hermes-agent.git ~/.hermes/hermes-agent
cd ~/.hermes/hermes-agent

# 2. 安装 uv(使用 pip,更安全)
pip install uv

# 3. 创建虚拟环境
uv venv venv --python 3.11
source venv/bin/activate
uv pip install -e ".[all]"

方式二:Docker 部署 详见 docker-deploy.md git clone https://github.com/NousResearch/hermes-agent.git ~/.hermes/hermes-agent cd ~/.hermes/hermes-agent

2. 安装 uv(使用 pip,更安全)

pip install uv

3. 创建虚拟环境

uv venv venv --python 3.11 source venv/bin/activate uv pip install -e ".[all]"


> 提示:使用 pip 安装 uv 不需要执行远程脚本,更安全。如有需要,也可以使用 uv 的预编译二进制:https://github.com/astral-sh/uv/releases

## 配置文件

- 配置文件:`~/.hermes/config.yaml`
- 环境变量:`~/.hermes/.env`

---

## 脚本文件列表

| 脚本 | 系统 | 说明 |
|------|------|------|
| `update-restart.sh` | Linux/macOS | 更新并重启网关 |
| `update-restart.ps1` | Windows | 更新并重启网关 |
| `uninstall.sh` | Linux/macOS | 卸载 Hermes Agent |
| `uninstall.ps1` | Windows | 卸载 Hermes Agent |
| `doctor.sh` | Linux/macOS | 健康检查 |
| `doctor.ps1` | Windows | 健康检查 |

---

## 更新与重启

### 手动更新
```bash
cd ~/.hermes/hermes-agent
source venv/bin/activate
hermes update
hermes gateway stop
hermes gateway run

使用脚本

Linux/macOS:

bash scripts/update-restart.sh

Windows PowerShell:

.\scripts\update-restart.ps1

卸载

Linux/macOS

bash scripts/uninstall.sh              # 完全卸载
bash scripts/uninstall.sh --keep-config # 保留配置

Windows PowerShell

.\scripts\uninstall.ps1           # 完全卸载
.\scripts\uninstall.ps1 -KeepConfig # 保留配置

健康检查

一键诊断 API 连接、网关状态、配置问题:

Linux/macOS:

bash scripts/doctor.sh

Windows PowerShell:

.\scripts\doctor.ps1

检查项:

  • ✅ 安装目录是否存在
  • ✅ 虚拟环境是否正常
  • ✅ 配置文件是否存在
  • ✅ 环境变量是否设置
  • ✅ 网关运行状态
  • ✅ API 端点连通性
  • ✅ 错误日志检测

按需加载模块

模块 内容 何时加载
api-config.md 模型提供商 API 配置 用户要求配置 API/模型提供商
gateway-config.md 网关配置(飞书/Telegram/Discord) 用户要求配置网关/通知渠道

使用方式: 当用户需要配置 API 或网关时,读取对应的模块文件。


常用命令

命令 说明
hermes 启动交互式 CLI
hermes --version 查看版本
hermes doctor 诊断问题
hermes config show 查看配置
hermes config edit 编辑配置
hermes model 选择模型
hermes update 更新版本
hermes gateway status 网关状态
hermes gateway start/stop 启停网关

Docker 部署

cd ~/.hermes/hermes-agent
docker build -t hermes-agent .
docker run -d -v ~/.hermes:/opt/data hermes-agent

相关链接

  • 官方文档:https://hermes-agent.nousresearch.com/docs/
  • GitHub:https://github.com/NousResearch/hermes-agent
  • Discord:https://discord.gg/NousResearch
安全使用建议
This skill appears to be a coherent Hermes Agent installer. Before installing: 1) Verify you trust the upstream GitHub repo (https://github.com/NousResearch/hermes-agent) because the installer clones and executes code from it. 2) Back up ~/.openclaw and ~/.hermes if you plan to use the migration feature—migration can import keys and data. 3) OPENAI_API_KEY and OPENAI_BASE_URL will be read from ~/.hermes/.env and used to send a test request to the configured endpoint—ensure the base URL is a trusted endpoint. 4) Gateway tokens (Feishu/Telegram/Discord) are requested only if you enable those gateways; provide them only when you intend to activate that integration. 5) Review the included scripts (doctor.sh, uninstall.sh, update-restart.sh) before running them so you understand what they will modify or delete.
功能分析
Type: OpenClaw Skill Name: hermes-installer Version: 1.1.7 The hermes-installer skill bundle is a legitimate configuration and installation utility for the Hermes Agent. It provides shell scripts (doctor.sh, uninstall.sh, update-restart.sh) and markdown guides for setting up the agent, configuring various LLM providers, and deploying messaging gateways. The scripts perform standard administrative tasks like directory checks, environment validation, and API connectivity testing without evidence of malicious intent, data exfiltration, or obfuscation. It follows good security practices by instructing the AI agent to seek user confirmation before proceeding with installation and recommending safer installation methods (e.g., using pip for 'uv' instead of remote shell scripts).
能力评估
Purpose & Capability
Name/description (Hermes Agent installer) match the requested binaries (git, python, pip, docker) and the included docs/scripts. Requiring OPENAI_API_KEY and OPENAI_BASE_URL is consistent with configuring/testing OpenAI-compatible model endpoints described in api-config.md.
Instruction Scope
Runtime instructions and scripts act on ~/.hermes and (optionally) migrate data from ~/.openclaw. The doctor script reads ~/.hermes/.env and config.yaml and will POST a small test request to the configured OPENAI_BASE_URL using the API key. Reading OpenClaw for migration and reading/writing ~/.hermes are within the installer's purpose, but they do access user config and potentially API keys—users should expect that migration/import operations may import sensitive data.
Install Mechanism
This is an instruction-only skill (no install spec). The instructions clone a GitHub repository and suggest pip-installing 'uv' or using its GitHub releases; those are typical for this workflow. No downloads from untrusted shorteners or arbitrary servers are present in the supplied materials (the repo URLs are standard GitHub links).
Credentials
Only OPENAI_API_KEY and OPENAI_BASE_URL are declared as required env vars, which matches the files and scripts that test the model endpoint. Additional gateway tokens (Feishu/Telegram/Discord) appear only as optional configuration when the user chooses to enable those gateways.
Persistence & Privilege
The skill does not request always:true, does not modify other skills' configs, and operates in user-owned paths (~/.hermes). Scripts stop/start the Hermes gateway and remove or update files under ~/.hermes only, which is appropriate for an installer/uninstaller.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hermes-installer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hermes-installer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.7
拆分 docker-deploy.md 独立文档
v1.1.6
添加 Docker 升级和卸载说明,bins 添加 docker
v1.1.5
安装前让用户选择命令行或 Docker 部署
v1.1.4
更新:添加系统支持、CLI命令、OpenClaw迁移等
v1.1.3
添加从 OpenClaw 迁移的说明
v1.1.2
添加 CLI 与消息平台命令对照表
v1.1.1
添加 Windows 系统使用说明
v1.1.0
精简要求:只保留必要的 env (OPENAI_API_KEY, OPENAI_BASE_URL) 和 bins (git, python, pip)
v1.0.9
使用 metadata.openclaw.requires.env 声明环境变量
v1.0.8
添加 scripts 目录,包含 Windows 和 Linux 脚本
v1.0.7
保留核心模块文件,只删除 README
v1.0.6
精简发布包,只保留核心文件
v1.0.5
使用 pip 安装 uv,避免远程脚本执行
v1.0.4
修复环境变量名称统一,移除高风险 COS URL
v1.0.3
分步执行安装脚本,提高安全性
v1.0.2
声明所需环境变量 secrets
v1.0.1
重写 README
v1.0.0
Initial release
元数据
Slug hermes-installer
版本 1.1.7
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 18
常见问题

Hermes Installer 是什么?

Hermes Agent 安装配置完整指南。当用户要求安装 Hermes Agent、部署 Hermes、配置模型提供商、配置飞书/Telegram/Discord 网关时使用此 Skill。触发词:安装 Hermes、部署 Hermes Agent、配置 Hermes、配置 GLM、配置 Kimi、配置 Ope... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 354 次。

如何安装 Hermes Installer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hermes-installer」即可一键安装,无需额外配置。

Hermes Installer 是免费的吗?

是的,Hermes Installer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Hermes Installer 支持哪些平台?

Hermes Installer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Hermes Installer?

由 Zihan Jin(@dongyu23)开发并维护,当前版本 v1.1.7。

💬 留言讨论