命令体系分四层
| 层级 | 入口 | 用途 | 例子 |
|---|---|---|---|
| 顶层 CLI 命令 | hermes <command> |
配置、运维、生命周期管理 | hermes setup、hermes gateway start |
| 全局选项 | hermes [options] ... |
跨命令的开关 | --profile、--worktree、--yolo |
| 会话 Slash 命令 | 会话内输入 /<command> |
运行时动态交互与显示控制 | /model、/compress、/usage |
| 动态 Slash 命令 | /<skill-name> |
调用已安装技能 | /gif-search、/github-pr-workflow |
关键区别:hermes model(终端里跑)能新增提供商、跑 OAuth、录 API Key ;/model(会话内输入)只能在已配置好的模型之间切换 。要加新提供商,先退出会话再跑 hermes model。
一、安装与首次配置
# Linux / macOS / WSL2 / Termux
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc # zsh 用户改为 source ~/.zshrc
# Windows(原生不支持,建议先装 WSL2)
iex (irm https://hermes-agent.nousresearch.com/install.ps1)
hermes --version # 验证安装
hermes setup # 完整交互式配置向导
hermes setup --portal # 最省事:OAuth 登录 Nous Portal + 开启 Tool Gateway
hermes doctor # 一键体检:配置、依赖、端口、模型连通性
hermes doctor --fix # 体检并尝试自动修复
hermes status # 查看 Agent / 鉴权 / 平台状态
hermes setup 可只进某一节:model、terminal、gateway、tools、agent;选项有 --quick(只问缺失项)、--non-interactive、--reset、--portal。
配置目录 ~/.hermes/:config.yaml(非敏感配置)、.env(密钥,权限 600)、auth.json(OAuth)、SOUL.md(人格)、memories/、skills/、logs/、checkpoints/。
二、全局选项
| 选项 | 作用 |
|---|---|
--version, -V |
显示版本并退出 |
--profile <name>, -p |
指定 profile(覆盖 hermes profile use 设的默认值) |
--resume <session>, -r |
按 ID 或标题恢复会话,latest 恢复最近一次 |
--continue [name], -c |
恢复最近会话,或恢复标题匹配的最新会话 |
--in <dir> |
启动前先切到该目录,并把会话锁定在此工作区 |
--worktree, -w |
在隔离的 git worktree 中运行(并行多 Agent) |
--yolo |
跳过危险命令审批提示 |
--skills <name>, -s |
为本次会话预加载技能(可重复或逗号分隔) |
--tui / --cli |
强制 TUI 界面 / 强制经典 REPL |
--ignore-user-config |
忽略 config.yaml,用内置默认(.env 仍加载) |
--ignore-rules |
跳过 AGENTS.md、SOUL.md、.cursorrules、记忆与预加载技能的注入 |
--pass-session-id |
把 session ID 写进系统提示 |
--dev |
配合 --tui:直接跑 TypeScript 源码 |
三、启动与对话
hermes # 启动交互式 CLI
hermes --tui # 启动现代 TUI
hermes chat -q "总结最新的 PR" # 带首个提问进入交互会话(TTY 下不会自动退出)
hermes chat --oneshot -q "..." # 回答完即退出(0.21 前的单次查询行为)
hermes -z "..." # 纯净脚本模式:stdout 只输出最终答案
hermes chat --query-file plan.md # 从文件/stdin 读提问,不做 shell 解释
hermes chat -m anthropic/claude-sonnet-4.6
hermes chat --provider openrouter --model openai/gpt-5.5
hermes chat --toolsets web,terminal,skills
hermes chat -s hermes-agent-dev,github-auth
hermes chat --image ./screenshot.png -q "看看这张图"
hermes chat -q "检查这个仓库" --format stream-json # 结构化 JSONL 输出
hermes chat --checkpoints # 破坏性文件改动前建检查点
hermes chat --safe-mode -q "..." # 排障:关掉一切自定义(配置/规则/插件/hooks/MCP)
hermes -c # 恢复最近会话
hermes -c "我的项目" # 按名称恢复
hermes --resume <session-id>
hermes chat 其他常用选项:-v/--verbose、-Q/--quiet(脚本模式,抑制 banner)、--max-turns <N>(每轮工具调用上限,默认 500)、--source <tag>(会话来源标记)。
旧版单次运行器仍随包提供:hermes-agent --query "...",但它不启动 Agent,常规场景用 hermes -z。
四、模型、凭证与用量
hermes model # 交互式选提供商 + 模型(新增提供商/OAuth/填 Key 都在这里)
hermes auth # 凭证池交互式向导
hermes auth list # 列出所有凭证池
hermes auth add openrouter --api-key sk-or-v1-xxx
hermes auth add anthropic --type oauth
hermes auth remove openrouter 2 # 按索引删除
hermes auth priority openrouter backup-key 0
hermes auth reset openrouter # 清除冷却/配额耗尽状态
hermes auth refresh openai-codex work
hermes auth status anthropic
hermes auth logout anthropic
hermes login / hermes logout # 已废弃,改用 hermes auth
hermes usage # 不开会话查看速率限制窗口(--json 供脚本用)
hermes moa # 配置 Mixture of Agents 预设
hermes fallback # 管理主模型出错时的回落提供商链
hermes portal # Nous Portal 状态、订阅链接、Tool Gateway 路由
会话内切模型:
/model # 打开提供商→模型选择器(可模糊过滤)
/model claude-sonnet-4 # 自动识别提供商
/model zai:glm-5 # 指定提供商:模型
/model custom:qwen-2.5 # 自定义端点上的模型
/model custom:local:qwen-2.5 # 具名自定义提供商
/model fav # 用户自定义别名
/model claude-sonnet-4 --global # 切换并持久化到 config.yaml
/model <name> --once # 只对下一轮生效
/model <name> --reasoning high # 同时设推理强度
默认 /model 只影响当前会话;--global 才写入 config.yaml。中途切模型会重置 prompt 缓存,下一轮按全价重读整段对话。
自定义模型别名(短写法):
hermes config set model.aliases.fav anthropic/claude-opus-4.6
hermes config set model.aliases.grok x-ai/grok-4
五、配置管理
hermes config show # 查看当前配置
hermes config edit # 用 $EDITOR 打开 config.yaml
hermes config get model.default # 取单项(--json 机器可读;--raw 输出未脱敏值)
hermes config set model.default kimi-k2.6
hermes config set OPENROUTER_API_KEY sk-xxx # 全大写下划线名一律写入 .env
hermes config unset <key> # 删除并恢复内置默认
hermes config path # 打印 config.yaml 路径
hermes config env-path # 打印 .env 路径
hermes config check # 检查缺失或过期配置
hermes config migrate # 交互式补齐新版本引入的选项
hermes dump # 输出可粘贴的配置摘要,用于提 issue/求助
hermes secrets # 管理外部密钥源(如 Bitwarden Secrets Manager)
hermes migrate xai # 诊断并改写已退役模型/废弃设置的引用
注意点:config set 用 . 表示嵌套;键名里本身含点(如模型 ID grok-4.6)时,新建需转义 grok-4\.6 并加引号。列表/映射型的键必须传 YAML/JSON 字面量,例如 hermes config set custom_providers '[{name: x, base_url: https://...}]'。
自定义快捷命令(~/.hermes/config.yaml):
quick_commands:
status:
type: exec
command: systemctl status hermes-agent
deploy:
type: exec
command: scripts/deploy.sh
inbox:
type: alias
target: /gmail unread
之后在 CLI 或消息平台输入 /status、/deploy、/inbox 即可。不支持纯提示词快捷命令------长提示词请做成技能。
六、会话内 Slash 命令
会话与上下文
| 命令 | 说明 |
|---|---|
/new [name](别名 /reset) |
开新会话;加 now/--yes/-y 跳过确认弹窗 |
/clear |
清屏并开新会话 |
/history |
查看对话历史 |
/save |
保存当前对话 |
/title <名字> |
给当前会话命名 |
/resume [name] |
恢复具名会话(裸命令列出候选) |
/sessions(TUI 别名 /switch) |
会话选择器;TUI 里 /sessions new 立即开新会话 |
/branch [--here] [name](别名 /fork) |
把当前会话分叉成独立副本 |
/retry |
重发上一条消息 |
/undo |
删掉最后一轮用户/助手交换 |
| `/compress [here [N] | focus 主题]` |
/context [all](别名 /ctx) |
上下文占用可视化分解,all 附技能/工具集成本 |
/status |
会话信息 + 本地生成的会话回顾 |
/rollback [N] |
列出或恢复文件系统检查点 |
| `/diff [staged | all |
| `/snapshot [create | restore |
/prompt(别名 /compose) |
在 $EDITOR 里写下一条提示 |
/quit / /exit |
退出 CLI |
/exit --delete |
退出并永久删除当前会话记录 |
任务推进与自动化
| 命令 | 说明 |
|---|---|
/stop |
终止所有后台进程并中断当前 Agent |
/bg <prompt>(/background) |
在独立后台会话里跑,当前会话不被占用 |
/btw <问题> |
就当前对话问个旁支问题,不打断、不动缓存 |
/queue <prompt>(别名 /q) |
排队下一轮;list/edit N/rm N/move A B/clear 管理队列 |
/steer <prompt> |
在下一次工具调用后注入引导,不打断当前循环 |
/goal <text> |
设定跨轮持续目标,判官模型决定 DONE/CONTINUE(默认预算 20 轮) |
/subgoal <text> |
给进行中的 goal 追加验收条件 |
/heartbeat every <间隔> <prompt>(别名 /hb) |
会话空闲时周期性重入本会话(最小 60s) |
/loop [间隔] <prompt> [--times N] [--until <条件>] |
本会话内周期重跑提示 |
/refine [focus] |
立即触发记忆/技能自我改进复盘(后台分叉运行) |
/review [说明] |
派独立全权限子 Agent 复核刚才讨论的产物 |
/moa <prompt> |
单次走 Mixture of Agents 预设,之后恢复原模型 |
/cron |
管理定时任务(list/add/edit/pause/resume/run/remove) |
/suggestions(别名 /suggest) |
审阅建议的自动化任务 |
/blueprint [name] [slot=value](别名 /bp) |
用蓝图模板搭自动化 |
/kanban <action> |
在聊天里操作多 profile 协作看板 |
/agents(别名 /tasks) |
查看活跃 Agent 与运行中任务 |
| `/worktree [new [name] | list]` |
/handoff <platform> |
仅 CLI:把当前会话移交给消息平台继续 |
模型、显示与安全
| 命令 | 说明 |
|---|---|
/config |
查看当前配置 |
/personality [name] |
设置人格;none/default/neutral 清除 |
| `/reasoning [level | show |
| `/fast [normal | fast |
/verbose |
循环切换工具进度显示:off→new→all→verbose |
| `/focus [on | off |
/skin |
切换显示皮肤 |
/statusbar(别名 /sb) |
开关状态栏 |
| `/timestamps [on | off |
| `/footer [on | off |
| `/indicator [kaomoji | emoji |
/yolo |
开关 YOLO 模式(跳过危险命令审批) |
| `/approvals [manual | smart |
| `/approve [session | always]//deny` |
| `/busy [queue | steer |
| `/voice [on | off |
| `/wake [on | off |
| `/battery [on | off |
工具、技能与记忆
| 命令 | 说明 |
|---|---|
| `/tools [list | disable |
/toolsets |
列出可用工具集 |
| `/browser [connect | disconnect |
/skills |
搜索、安装、审阅技能;pending/diff <id>/approve/reject/`approval on |
| `/memory [pending | approve |
/bundles |
列出技能包(一个 /<name> 预加载多个技能) |
/learn <学什么> |
从目录/URL/刚走过的流程中蒸馏出可复用技能 |
/plan [任务] |
只写实施计划到 .hermes/plans/,不执行 |
/init [备注] |
扫描仓库生成或合并更新 AGENTS.md |
| `/curator [status | run |
/reload-mcp |
重载 MCP 服务器配置并重新探测工具 |
/reload-skills |
重新扫描 ~/.hermes/skills/ |
/reload |
把 .env 重新载入运行中的会话(换 Key 不用重启) |
/plugins |
列出已安装插件及状态 |
/journey(别名 /learning、/memory-graph) |
学习轨迹时间线 |
/pet / /hatch <描述> |
petdex 桌宠开关 / 生成新桌宠 |
信息与调试
/help(/help skills 列全部技能命令,/help <文本> 过滤)、/palette(模糊命令面板,也可 Ctrl+P)、/version、/whoami(admin/user 权限级别)、/usage(token、费用、时长、账户额度)、/insights [--days N]、/topup(Nous 余额与账单,替代旧 /credits、/billing)、/subscription(别名 /upgrade,仅 CLI)、/login、/profile、/platforms(别名 /gateway)、/egress [status]、/export / /import(仅 CLI,打包/安装 profile)、/paste、/image <path>、/copy [N](仅 CLI)、/debug、/update、/redraw、/commands [page]。
命令解析规则:内置命令不区分大小写 ,支持前缀匹配 (/h → /help);前缀有歧义时按注册顺序取第一个;完整名与已注册别名永远优先。
七、消息网关与平台
hermes gateway setup # 交互式配置消息平台
hermes gateway run # 前台运行(WSL / Docker / Termux 推荐)
hermes gateway install # 安装为 systemd / launchd 后台服务
hermes gateway start # 启动服务
hermes gateway stop # 停止
hermes gateway restart # 重启
hermes gateway status # 服务状态
hermes gateway list # 列出所有 profile 及各自网关运行状态
hermes gateway uninstall # 卸载服务
hermes gateway migrate # 把每 profile 独立网关收敛到单一主机网关(--dry-run 预演)
hermes gateway migrate-legacy # 清理改名前遗留的 hermes.service
hermes gateway enroll # 实验性:接入 relay connector
hermes pairing list # 查看待批/已批用户
hermes pairing approve <platform> <code>
hermes pairing revoke <platform> <user-id>
hermes pairing clear-pending
hermes whatsapp # 配置 Baileys 个人号桥接
hermes whatsapp-cloud # 配置官方 WhatsApp Business Cloud API
hermes slack # 生成把每个命令做成原生 slash 的 app manifest
脚本化发消息(不启动 Agent、不调 LLM):
hermes send --to telegram "部署完成"
hermes send --to telegram:-1001234567890 "RAM 92%"
hermes send --to discord:#ops --file ~/.hermes/cache/scratch/report.md
hermes send --to slack:#eng --subject "[CI]" --file build.log
hermes send --to telegram "MEDIA:~/screenshot.png" # 发图片/文件附件
hermes send --to telegram "[[as_document]] MEDIA:~/chart.png" # 图片按原始文件发送
hermes send --list # 列出所有平台已配置目标
hermes send --list telegram
echo "message" | hermes send --to telegram
--to 支持 platform、platform:chat_id、platform:chat_id:thread_id、platform:#channel-name;退出码 0 成功 / 1 投递失败 / 2 用法错误。
其他相关:hermes peer(注册对端 Hermes 网关并互发消息)、hermes webhook subscribe(事件驱动的动态订阅)、hermes proxy(本地 OpenAI 兼容代理)、hermes egress(远端沙箱的出站凭证注入防火墙,默认关闭)。
消息平台专属 Slash:/start、/sethome(别名 /set-home)、/restart(排空后优雅重启网关)、/topic(仅 Telegram 私聊多会话)、/platform list|pause|resume、/commands、/approve、/deny。Slack 消息线程里原生 slash 会被拦截,改用 ! 前缀:!stop、!new、!status。
八、技能、工具、MCP、插件、记忆
# 技能
hermes skills browse # 分页浏览技能注册表
hermes skills browse --source official
hermes skills search react --source skills-sh
hermes skills search https://mintlify.com/docs --source well-known
hermes skills inspect official/security/1password # 预览不安装
hermes skills install official/migration/openclaw-migration
hermes skills install skills-sh/anthropics/skills/pdf --force
hermes skills install https://sharethis.chat/SKILL.md
hermes skills list # 已安装
hermes skills check # 检查上游更新
hermes skills update # 更新有变化的技能
hermes skills audit # 重新扫描已安装技能
hermes skills uninstall <name>
hermes skills reset <name> [--restore --yes]
hermes skills opt-out [--remove --yes] # 停止内置技能播种
hermes skills opt-in [--sync]
hermes skills publish # 发布自己的技能
hermes skills snapshot # 导出/导入技能配置
hermes skills tap # 管理自定义技能源
hermes skills config # 按平台交互式启用/禁用
hermes bundles # 把多个技能归到一个 /<name> 别名
hermes curator # 后台技能维护:status / run / pause / pin
# 工具
hermes tools # 按平台交互式配置启用哪些工具
hermes tools --summary # 打印当前启用工具摘要后退出
hermes computer-use # 安装/检查 Computer Use(cua-driver)后端
# MCP
hermes mcp # 交互式目录选择器
hermes mcp catalog # 列出 Nous 认可的 MCP(纯文本,可脚本化)
hermes mcp install deepwiki
hermes mcp add <name> --url <URL> # HTTP 型
hermes mcp add <name> --command <CMD> --args ... # stdio 型(--args 放最后)
hermes mcp list # 已配置的 MCP
hermes mcp test <name>
hermes mcp configure <name> # 选择暴露哪些工具
hermes mcp login <name> # OAuth 型强制重新认证
hermes mcp remove <name>
hermes mcp serve # 把 Hermes 自己作为 MCP 服务器
# 插件与记忆
hermes plugins # 安装 / 启用 / 禁用 / 移除插件
hermes memory setup # 配置外部记忆提供商
hermes memory status
hermes memory off # 关闭外部提供商(只用内置 MEMORY.md / USER.md)
--force 可以绕过第三方技能的非危险策略拦截,但不能 覆盖 dangerous 扫描结论。
九、定时任务、看板与项目
hermes cron list
hermes cron create "<prompt>" --skill <name> --reasoning-effort high
hermes cron edit <job> # 改调度、提示、名称、投递、重复次数、技能
hermes cron pause <job> / resume <job>
hermes cron run <job> # 下一个 tick 触发一次
hermes cron remove <job>
hermes cron status # 调度器是否在运行
hermes cron doctor # 只读健康检查(有问题时退出码非 0)
hermes cron tick # 跑一次到期任务后退出
hermes pause / hermes resume # 全局急停:不触发新 cron / 看板派发 / 网关轮次,在跑的活不会被杀
hermes kanban # 多 profile 协作看板:任务、链接、派发器
hermes project # 管理具名多目录工作区(按 profile 存状态)
hermes webhook subscribe # 动态 webhook 订阅
hermes hooks # 检查、批准、移除 config.yaml 里声明的 shell hooks
十、会话、日志与运维
hermes sessions list
hermes sessions browse # 交互式选择器,可搜索、恢复、按 d 删除
hermes sessions rename <id> <title>
hermes sessions export out.jsonl [--session-id ID]
hermes sessions delete <id>
hermes sessions prune --older-than 90d --dry-run --yes
hermes sessions archive --source cli --older-than 30d
hermes sessions stats
hermes sessions optimize # 合并 FTS5 索引 + VACUUM,不改数据
hermes sessions optimize-storage / repair / repair-routing / repair-profiles / recover
hermes logs # agent.log 最后 50 行
hermes logs -f # 实时跟随
hermes logs errors # 只看 errors.log
hermes logs gateway -n 100
hermes logs --level WARNING --since 1h
hermes logs --session tg-12345
hermes logs --component cron
hermes logs list # 列出所有日志文件及大小
hermes status [--full] [--deep]
hermes doctor [--fix] # 退出码 0=无未解决问题,1=仍有问题
hermes dump # 可粘贴的配置摘要
hermes prompt-size # 系统提示 + 工具 schema 的字节分解(离线可跑)
hermes insights [--days 30] [--source telegram]
hermes debug # 上传日志与系统信息,得到可分享链接
hermes security audit # 按需供应链审计(OSV.dev)
hermes approvals # 把审批历史挖成允许清单建议
hermes backup # 备份 HERMES_HOME 到 zip
hermes backup restore --state pre-update
hermes import <archive.zip> # 从 zip 还原(覆盖同名文件)
hermes checkpoints # 查看/清理/清空 ~/.hermes/checkpoints/
日志文件:agent(默认)、errors、gateway、gui、desktop、mcp、update、handoff。
服务与界面:hermes serve(无头后端)、hermes dashboard [--port 9119] [--no-open] [--status] [--stop](Web 仪表盘)、hermes dashboard register、hermes desktop(别名 gui,Electron 桌面端)、hermes acp(作为 ACP 服务器接编辑器)、hermes lsp(语言服务器集成)、hermes console(安全命令控制台)、hermes completion(bash/zsh/fish 补全脚本)、hermes pets、hermes skin。
十一、多 Profile
每个 profile 完全隔离:独立 config、会话、技能、记忆、cron。
hermes profile list
hermes profile create work --clone # 克隆当前 profile 的配置与核心记忆
hermes profile create work --clone-all
hermes profile create work --clone-from <source>
hermes profile use work # 设为粘性默认
hermes profile show work
hermes profile rename <old> <new>
hermes profile delete work [-y]
hermes profile alias work --name h-work # 生成快捷包装脚本
hermes profile export work -o work-backup.tar.gz
hermes profile import work-backup.tar.gz --name restored
hermes profile install github.com/user/my-distro --alias
hermes profile update work
hermes profile info work
hermes -p work chat -q "来自 work profile"
十二、迁移、更新与卸载
hermes claw migrate --dry-run # 预览 OpenClaw 迁移(人格、记忆、技能、模型、平台、可选密钥)
hermes claw migrate --preset full
hermes import-agent # 导入 Claude Code(~/.claude)或 Codex CLI(~/.codex)配置
hermes codex-runtime migrate [--dry-run] [--json]
hermes update # 拉最新代码并重装依赖
hermes update --check # 只检查有无更新
hermes update --plan # 打印更新计划(只读)
hermes update --backup # 强制更新前完整备份 HERMES_HOME
hermes update --no-backup
hermes update -y
hermes update --install-id
hermes update --set-channel main
hermes uninstall [--dry-run] [--yes] [--full] [--data] [--gui]
hermes pm repair # 依赖损坏时修复 Python 环境
hermes update 退出码:0 成功、1 拉取/安装/后置错误、2 工作区有阻塞 git pull 的改动。更新成功后会自动重启本机该 HERMES_HOME 下所有在跑的网关 profile。
十三、CLI 快捷键与输入技巧
| 按键 | 功能 |
|---|---|
Enter |
发送 |
Alt+Enter / Ctrl+J / Shift+Enter |
换行(Windows Terminal 里 Alt+Enter 被终端占用,改用 Ctrl+Enter 或 Ctrl+J) |
!<命令> |
Shell 模式:直接跑 shell,不花模型轮次、不进对话历史(仅 CLI) |
Ctrl+G / Ctrl+X Ctrl+E |
在 $EDITOR 里编辑当前输入 |
Ctrl+S |
暂存草稿并清空输入框;再按一次取回,多份时打开浏览面板 |
Ctrl+C |
中断 Agent(2 秒内按两次强制退出) |
Ctrl+D |
退出 |
Ctrl+Z |
挂起到后台(Unix),fg 恢复 |
Ctrl+B |
语音录音开始/停止 |
Ctrl+T / F6 |
全屏实时监控子 Agent 与后台进程 |
Ctrl+R / F7 |
切换实时工作坞的多行/单行显示 |
Ctrl+P |
模糊命令面板 |
Tab |
接受幽灵文本建议或补全 slash 命令 |
Alt+V / Ctrl+V |
粘贴剪贴板图片 / 粘贴文本并附带图片 |
Shell 模式示例:!git status、!ls -la、!pytest -x tests/cli。仅 CLI 有效,消息平台与 cron 运行会忽略它。
十四、CLI 与消息平台可用性对照
- 仅 CLI
/skin、/snapshot、/export、/import、/reload、/tools、/toolsets、/browser、/config、/cron、/platforms、/paste、/image、/statusbar、/battery、/focus、/plugins、/indicator、/wake、/journey、/redraw、/clear、/history、/save、/copy、/handoff、/prompt、/pet、/hatch、/timestamps、/subscription、/quit、/worktree。 - 仅消息平台
/sethome、/restart、/approve、/deny、/topic、/platform、/commands、/start。 - 两边都能用
/status、/egress、/version、/whoami、/bg、/btw、/queue、/steer、/voice、/reload-mcp、/reload-skills、/rollback、/diff、/debug、/fast、/approvals、/busy、/footer、/curator、/kanban、/topup、/login、/suggestions、/blueprint、/learn、/init、/sessions、/loop、/yolo、/model、/personality、/reasoning、/goal、/subgoal、/heartbeat、/refine、/review、/moa、/branch、/agents、/context、/memory、/bundles、/help、/update、/insights、/usage、/retry、/undo、/title、/resume、/new、/compress、/codex-runtime、/<skill-name>。 /skills的搜索/浏览/安装仅 CLI;其写入审批子命令在开启skills.write_approval后消息平台也能用。/verbose默认仅 CLI,display.tool_progress_command: true可开放给消息平台。/voice join、/voice channel、/voice leave只在 Discord 有意义。- 破坏性 slash 命令(
/clear、/new、/reset、/undo、/exit --delete)会弹三选一确认框;追加now/--yes/-y可跳过,或在配置里设approvals.destructive_slash_confirm: false全局关闭。
十五、12 个高频场景
hermes setup && hermes doctor # 1. 全新装完先配好再体检
hermes -c # 2. 接着上次聊
hermes chat -q "..." --format stream-json # 3. 给程序消费的结构化输出
hermes -z "..." | pbcopy # 4. 只要答案文本,进管道
hermes config get model.default # 5. 确认当前默认模型
hermes gateway install && hermes gateway start # 6. 把机器人变成常驻服务
hermes send --to telegram "构建完成" # 7. cron / CI 里发通知
hermes skills search <关键词> && hermes skills install <路径> # 8. 装技能
hermes mcp add <name> --url <URL> && hermes mcp test <name> # 9. 接 MCP 工具
hermes cron create "0 9 * * * 汇总昨日 AI 新闻" # 10. 定时任务
hermes logs errors --since 1h # 11. 排错先看错误日志
hermes backup # 12. 动手改配置前先备份
会话内三件套:上下文吃紧用 /compress,跑偏了用 /steer,长任务丢后台用 /bg。
