🛠 Hermes Agent 命令大全
Hermes Agent v0.19.0 · 完整 CLI & 斜杠命令参考手册
由 Nous Research 开发的开源 AI 智能体框架
一、简介
Hermes Agent 是由 Nous Research 开发的开源 AI 智能体框架,支持 CLI、桌面应用、Web 面板以及 20+ 消息平台。核心特性:自我进化的技能系统、跨会话持久记忆、多平台网关、多 Provider 支持。
二、CLI 全局命令
所有命令以 hermes 开头,格式:hermes [全局参数] <命令> [子命令]
| 命令 | 说明 | 示例 |
|---|---|---|
| `hermes` | 启动交互式聊天 | `hermes` |
| `hermes chat -q |
单次查询 | `hermes chat -q "Hello"` |
| `hermes -p |
指定 Profile | `hermes -p work` |
| `hermes -s |
预加载技能 | `hermes -s hermes-agent` |
| `hermes --resume |
恢复指定会话 | `hermes --resume 20260722_xxx` |
| `hermes --continue` | 恢复最近会话 | `hermes --continue` |
| `hermes -w` | 隔离 Git Worktree 模式 | `hermes -w` |
| `hermes --yolo` | 跳过危险命令确认 | `hermes --yolo` |
三、聊天与控制
| 命令 | 说明 |
|---|---|
| `hermes chat` | 启动交互式聊天 |
| `hermes chat -q |
单次查询(适合脚本调用) |
| `hermes chat -m |
指定模型 |
| `hermes chat -t |
指定工具集(逗号分隔) |
| `hermes chat --provider ` |
强制使用特定 Provider |
| `hermes chat -v` | 详细输出模式 |
| `hermes chat -Q` | 安静模式 |
四、配置管理
| 命令 | 说明 |
|---|---|
| `hermes config` | 查看当前配置 |
| `hermes config edit` | 用编辑器打开 config.yaml |
| `hermes config set |
设置配置值 |
| `hermes config path` | 打印 config.yaml 路径 |
| `hermes config env-path` | 打印 .env 路径 |
| `hermes config check` | 检查缺少/过时配置 |
| `hermes config migrate` | 更新配置为新版本 |
| `hermes setup` | 交互式配置向导 |
| `hermes model` | 交互式切换模型/Provider |
| `hermes doctor [--fix]` | 检查依赖和配置 |
| `hermes status [--all]` | 显示各组件状态 |
五、消息平台网关(Gateway)
Hermes 支持 20+ 消息平台:Telegram、Discord、Slack、WhatsApp、微信、Signal、iMessage、Matrix、Teams、钉钉、飞书等。
| 命令 | 说明 |
|---|---|
| `hermes gateway run` | 启动网关(前台) |
| `hermes gateway install` | 安装为后台服务 |
| `hermes gateway start/stop` | 启停网关服务 |
| `hermes gateway restart` | 重启网关 |
| `hermes gateway status` | 查看网关状态 |
| `hermes gateway setup` | 配置各平台连接 |
| `hermes send -t <平台>: |
通过网关发送消息 |
| `hermes send --list` | 列出可用发送目标 |
六、技能(Skills)系统
技能是 Hermes 的程序性记忆,可保存和复用工作流程。
| 命令 | 说明 |
|---|---|
| `hermes skills list` | 列出已安装技能 |
| `hermes skills search <关键词>` | 搜索技能市场 |
| `hermes skills install |
安装技能 |
| `hermes skills inspect |
预览不安装 |
| `hermes skills config` | 按平台启用/禁用技能 |
| `hermes skills check` | 检查技能更新 |
| `hermes skills update` | 更新过时技能 |
| `hermes skills uninstall |
卸载技能 |
| `hermes skills browse` | 浏览所有可用技能 |
七、工具集(Toolsets)
| 命令 | 说明 |
|---|---|
| `hermes tools` | 交互式启用/禁用工具 |
| `hermes tools list` | 列出所有工具及状态 |
| `hermes tools enable |
启用指定工具集 |
| `hermes tools disable |
禁用指定工具集 |
常用工具集:
| 工具集 | 提供功能 |
|---|---|
| `web` | 网页搜索和内容提取 |
| `browser` | 浏览器自动化 |
| `terminal` | Shell 命令执行 |
| `file` | 文件读写搜索修改 |
| `code_execution` | 沙箱 Python 执行 |
| `vision` | 图像分析 |
| `image_gen` | AI 图像生成 |
| `memory` | 持久记忆 |
| `delegation` | 子任务委派 |
| `cronjob` | 定时任务管理 |
八、配置文件(Profiles)
Profiles 是隔离的 Hermes 实例,每个有自己的配置、会话、技能和记忆。
| 命令 | 说明 |
|---|---|
| `hermes profile list` | 列出所有 Profile |
| `hermes profile create |
创建新 Profile |
| `hermes profile use |
设为默认 Profile |
| `hermes profile delete |
删除 Profile |
| `hermes profile show |
显示详情 |
| `hermes profile rename ` | 重命名 |
| `hermes profile export |
导出为 tar.gz |
| `hermes profile import |
从归档导入 |
九、会话管理
| 命令 | 说明 |
|---|---|
| `hermes sessions list` | 列出最近会话 |
| `hermes sessions browse` | 交互式浏览 |
| `hermes sessions export |
导出为 JSONL |
| `hermes sessions rename |
重命名会话 |
| `hermes sessions delete |
删除会话 |
| `hermes sessions prune` | 清理旧会话 |
十、定时任务(Cron)
| 命令 | 说明 |
|---|---|
| `hermes cron list` | 列出定时任务 |
| `hermes cron create |
创建任务(如 "30m"/"0 9 * * *") |
| `hermes cron edit |
编辑任务 |
| `hermes cron pause/resume |
暂停/恢复任务 |
| `hermes cron run |
手动触发执行 |
| `hermes cron remove |
删除任务 |
十一、MCP 服务器
| 命令 | 说明 |
|---|---|
| `hermes mcp serve` | 以 MCP 服务器模式运行 |
| `hermes mcp add |
添加 MCP 服务器 |
| `hermes mcp remove |
移除 MCP |
| `hermes mcp list` | 列出已配置 MCP |
| `hermes mcp test |
测试连接 |
十二、认证与凭据
| 命令 | 说明 |
|---|---|
| `hermes auth` | 交互式凭据管理器 |
| `hermes auth add |
添加 OAuth/API Key |
| `hermes auth list [provider]` | 列出凭据池 |
| `hermes auth remove |
删除凭据 |
十三、其他命令
| 命令 | 说明 |
|---|---|
| `hermes update` | 更新 Hermes 到最新版 |
| `hermes desktop / gui` | 启动桌面应用 |
| `hermes dashboard` | 启动 Web 管理面板 |
| `hermes proxy` | 启动 OpenAI 兼容代理 |
| `hermes plugins list/install/remove` | 插件管理 |
| `hermes webhook subscribe/list/remove` | Webhook 管理 |
| `hermes uninstall` | 卸载 Hermes |
十四、斜杠命令(Slash Commands)
在会话中直接输入,用于控制会话行为。
会话控制
| 命令 | 说明 |
|---|---|
| `/new` 或 `/reset` | 开始全新会话 |
| `/retry` | 重新发送最后一条消息 |
| `/undo` | 撤销上一轮对话 |
| `/title |
为会话命名 |
| `/compress` | 手动压缩上下文 |
| `/stop` | 停止后台进程 |
| `/background |
在后台运行指令 |
| `/goal |
设置持续目标 |
模型与配置
| 命令 | 说明 |
|---|---|
| `/model [name]` | 查看或切换模型 |
| `/personality [name]` | 设置人格 |
| `/reasoning [level]` | 设置推理级别 |
| `/voice [on/off/tts]` | 语音模式 |
| `/yolo` | 切换命令确认跳过 |
工具与技能
| 命令 | 说明 |
|---|---|
| `/skill |
加载技能到会话 |
| `/reload-skills` | 重新扫描技能目录 |
| `/cron` | 管理定时任务 |
| `/plugins` | 列出插件 |
信息
| 命令 | 说明 |
|---|---|
| `/help` | 显示所有命令 |
| `/usage` | 查看 Token 用量 |
| `/status` | 会话信息 |
| `/profile` | 当前 Profile 信息 |
| `/platforms` 或 `/gateway` | 显示平台连接状态 |
| `/quit` 或 `/exit` | 退出 CLI |
十五、支持的消息平台
Hermes 支持以下消息平台(通过 Gateway 连接):
Telegram · Discord · Slack · WhatsApp (Baileys + Cloud API) · WeChat/微信 (iLink Bot) · iMessage (BlueBubbles) · Signal · Email (IMAP/SMTP) · SMS · Matrix · Mattermost · Microsoft Teams · LINE · 钉钉 · 飞书 · 企业微信 · Google Chat · Home Assistant · ntfy · API Server · Webhooks
十六、支持的模型 Provider
Hermes 支持 20+ 模型提供商,可随时切换:
OpenRouter · Anthropic · OpenAI Codex · Nous Portal · Google Gemini · DeepSeek · xAI/Grok · GitHub Copilot · HuggingFace · Z.AI/GLM · MiniMax · Kimi/Moonshot · Alibaba/DashScope · 自定义端点 等
十七、实用技巧
- 快速恢复会话:hermes --continue 或 /resume <会话名>
- 多账号隔离:使用 hermes profile create 创建不同 Profile
- 定时提醒:hermes cron create "0 9 * * *" 设置每天9点任务
- 多微信账号:启用 gateway.multiplex_profiles + 多 Profile
- 发送消息:hermes send -t weixin:chat_id "消息"
- 切换模型:/model 或 hermes config set model.default <模型名>
- 技能热加载:/skill <技能名> 直接加载到会话
- 查看配置:hermes config 或 /config
本文由 Hermes Agent 自动生成 · 2026年7月
评论区