Hermes Agent 常用命令集合
持续维护,随版本更新补充。
日常使用
| 命令 | 说明 |
|---|---|
hermes |
进入交互式对话 |
hermes chat -q "问题" |
单次提问,非交互 |
hermes chat --continue |
恢复上一次对话 |
hermes chat --resume SESSION |
恢复指定会话 |
hermes doctor |
检查环境和配置 |
hermes status |
查看组件状态 |
hermes update |
升级到最新版本 |
会话控制(聊天中用 / 命令)
| 命令 | 说明 |
|---|---|
/new 或 /reset |
新会话 |
/title 名称 |
命名会话 |
/copy [N] |
复制上次回答 |
/stop |
终止后台进程 |
/history |
查看对话历史 |
/status |
会话信息 |
/usage |
Token 用量 |
/compress |
手动压缩上下文 |
/branch 或 /fork |
分支当前会话 |
/quick |
快捷操作(如有) |
配置(聊天中用 / 命令)
| 命令 | 说明 |
|---|---|
/model [名称] |
查看/切换模型 |
/personality [名称] |
切换人格 |
/reasoning [级别] |
推理级别(none/minimal/low/medium/high) |
/verbose |
切换输出详细程度 |
/voice on/off/tts |
语音模式 |
/yolo |
跳过危险命令审批 |
/config |
查看配置 |
配置管理
| 命令 | 说明 |
|---|---|
hermes config |
查看当前配置 |
hermes config edit |
用 $EDITOR 编辑 config.yaml |
hermes config set KEY VAL |
设置配置项 |
hermes config path |
打印配置文件路径 |
hermes config env-path |
打印 .env 路径 |
hermes config check |
检查缺失/过期配置 |
hermes config migrate |
迁移新增配置项 |
hermes setup [section] |
交互式向导(model/terminal/gateway/tools/agent) |
hermes model |
交互式模型/提供商选择 |
工具管理
| 命令 | 说明 |
|---|---|
hermes tools list |
列出所有工具及状态 |
hermes tools enable NAME |
启用工具集 |
hermes tools disable NAME |
禁用工具集 |
hermes tools |
交互式工具启用/禁用 |
/tools |
聊天中管理工具 |
/toolsets |
列出工具集 |
Skill 管理
| 命令 | 说明 |
|---|---|
hermes skills list |
列出已安装的 skills |
hermes skills search QUERY |
搜索 skills 仓库 |
hermes skills install ID |
安装 skill |
hermes skills browse |
浏览全部可用 skills |
hermes skills inspect ID |
预览 skill(不安装) |
hermes skills check |
检查更新 |
hermes skills update |
更新过期的 skills |
hermes skills uninstall N |
卸载 skill |
hermes skills config |
设置平台 skill 启用/禁用 |
/skill 名称 |
在对话中加载 skill |
/skills |
聊天中搜索/安装 skills |
/reload-skills |
重新扫描 skills 目录 |
多 Profile
| 命令 | 说明 |
|---|---|
hermes profile list |
列出所有 profiles |
hermes profile create NAME |
创建 profile(可加 --clone) |
hermes profile use NAME |
设置默认 profile |
hermes profile delete NAME |
删除 profile |
hermes profile show NAME |
查看 profile 详情 |
hermes profile alias NAME |
管理别名脚本 |
hermes profile rename A B |
重命名 profile |
hermes profile export NAME |
导出为 tar.gz |
hermes profile import FILE |
从归档导入 |
认证与密钥
| 命令 | 说明 |
|---|---|
hermes auth add |
交互式添加凭证 |
hermes auth list [PROVIDER] |
列出凭证池 |
hermes auth remove P INDEX |
移除凭证 |
hermes auth reset PROVIDER |
重置凭证耗尽状态 |
hermes login |
OAuth 登录 |
hermes logout |
清除认证 |
MCP Server
| 命令 | 说明 |
|---|---|
hermes mcp list |
列出 MCP 服务器 |
hermes mcp add NAME |
添加 MCP 服务器 |
hermes mcp remove NAME |
移除 MCP 服务器 |
hermes mcp test NAME |
测试连接 |
Gateway(消息平台)
| 命令 | 说明 |
|---|---|
hermes gateway run |
前台启动 gateway |
hermes gateway install |
安装为后台服务 |
hermes gateway start |
启动服务 |
hermes gateway stop |
停止服务 |
hermes gateway restart |
重启服务 |
hermes gateway status |
检查状态 |
hermes gateway setup |
配置消息平台 |
/platforms |
聊天中查看平台状态 |
Cron 定时任务
| 命令 | 说明 |
|---|---|
hermes cron list |
列出所有任务 |
hermes cron create SCHED |
创建任务(定时表达式) |
hermes cron edit ID |
编辑任务 |
hermes cron pause ID |
暂停任务 |
hermes cron resume ID |
恢复任务 |
hermes cron run ID |
立即触发执行 |
hermes cron remove ID |
删除任务 |
hermes cron status |
调度器状态 |
/cron |
聊天中管理 cron |
会话管理
| 命令 | 说明 |
|---|---|
hermes sessions list |
列出会话 |
hermes sessions browse |
交互式选择会话 |
hermes sessions stats |
会话统计 |
hermes sessions rename ID T |
重命名会话 |
hermes sessions delete ID |
删除会话 |
hermes sessions prune |
清理旧会话 |
hermes sessions export OUT |
导出为 JSONL |
记忆管理
| 命令 | 说明 |
|---|---|
hermes memory setup |
配置记忆后端 |
hermes memory status |
查看记忆状态 |
hermes memory off |
关闭记忆 |
Webhook
| 命令 | 说明 |
|---|---|
hermes webhook subscribe N |
创建 webhook 路由 |
hermes webhook list |
列出 webhooks |
hermes webhook remove NAME |
删除 webhook |
hermes webhook test NAME |
测试 webhook |
其他
| 命令 | 说明 |
|---|---|
hermes plugins list/install/remove |
插件管理 |
hermes cron list |
Cron 任务管理 |
hermes insights [--days N] |
使用分析 |
hermes pairing list/approve/revoke |
DM 授权管理 |
hermes completion bash|zsh |
安装 shell 补全 |
hermes acp |
ACP 服务器(IDE 集成) |
hermes memory status/off |
记忆管理 |
关键路径
| 路径 | 说明 |
|---|---|
~/.hermes/config.yaml |
主配置文件 |
~/.hermes/.env |
API 密钥和密钥 |
~/.hermes/skills/ |
已安装的 skills |
~/.hermes/sessions/ |
会话存储(SQLite + JSONL) |
~/.hermes/state.db |
会话数据库 |
~/.hermes/logs/ |
日志 |
~/.hermes/profiles/ |
多 profile 目录 |
实用技巧
/reset后工具变更才生效- 配置修改需要
/restart(gateway)或重新进入 CLI - 安全扫描会拦截
curl \| python3管道,用文件中间方案绕过 - 用
hermes profile use切换默认 profile 后需systemctl --user restart hermes-gateway重启服务

