Hermes Agent 命令大全
Uncle Niu
社区管理员
2026年9月5日 12:26
37 次
0 条回复
Hermes Agent 命令大全¶
版本: v2.2+ | 覆盖所有 CLI 命令 + Slash 命令 + 工具用法
提示: 任何命令都可以通过hermes <command> --help查看详细帮助
目录¶
- 一、CLI 核心命令
- chat
- setup
- model
- config
- auth
- doctor
- status
- update
- uninstall
- 二、工具与技能命令
- tools
- skills
- plugins
- mcp
- 三、网关与平台命令
- gateway
- webhook
- 四、会话与调度命令
- sessions
- cron
- kanban
- 五、Profile 命令
- profile
- 六、其他命令
- memory
- honcho
- insights
- pairing
- completion
- acp
- claw
- 七、Slash 命令(会话内)
- 八、全局参数
一、CLI 核心命令¶
1. chat 聊天¶
基本用法:
# 启动交互式聊天(无子命令时默认行为)
hermes
# 单次查询(非交互,执行完退出)
hermes chat -q "解释什么是 Docker"
# 带上下文的单次查询
hermes chat -q "读取 /etc/nginx/nginx.conf 并解释每个配置段的作用"
指定模型/Provider:
# 指定模型
hermes chat -q "写个排序算法" -m anthropic/claude-sonnet-4
hermes chat -q "翻译这段文字" -m deepseek/deepseek-chat
hermes chat -q "分析日志" -m openai/gpt-4o
# 指定 Provider
hermes chat -q "你好" --provider anthropic
hermes chat -q "你好" --provider openrouter
hermes chat -q "你好" --provider deepseek
工具集控制:
# 仅使用特定工具集
hermes chat -q "列出当前目录文件" -t terminal
hermes chat -q "搜索最新的 Python 框架" -t web
hermes chat -q "分析这张图片" -t vision
hermes chat -q "写个 Python 脚本" -t code_execution
hermes chat -q "修复这个 Bug" -t terminal,file
输出控制:
# 详细输出(显示工具调用详情)
hermes chat -q "查看系统状态" -v
# 静默模式(不显示 banner、spinner 等)
hermes chat -q "快速查询" -Q
其他选项:
# 启用文件系统检查点(支持 /rollback 回滚)
hermes chat -q "重构这个模块" --checkpoints
# 跳过危险命令审批
hermes chat -q "删除所有临时文件" --yolo
# 指定会话来源标签
hermes chat -q "分析数据" --source analytics
恢复会话:
# 恢复最近的会话
hermes --continue
hermes -c
# 恢复指定会话(按 ID)
hermes --resume 20260225_143052_a1b2c3
hermes -r 20260225_143052_a1b2c3
# 恢复指定会话(按名称模糊匹配)
hermes --resume "refactor"
2. setup 设置向导¶
# 交互式完整设置
hermes setup
# 设置特定部分
hermes setup model # 只配置模型/Provider
hermes setup terminal # 只配置终端后端
hermes setup gateway # 只配置消息平台
hermes setup tools # 只配置工具集
hermes setup agent # 只配置 Agent 行为
# 快速设置 Nous Portal(推荐,一个 OAuth 搞定模型+工具)
hermes setup --portal
3. model 模型选择¶
# 交互式选择模型和 Provider
hermes model
# 会显示所有可用的 Provider 列表,让你选择并配置
# 通常流程:
# 1. 选择 Provider(如 OpenRouter、Anthropic、DeepSeek 等)
# 2. 输入 API Key 或执行 OAuth 登录
# 3. 选择该 Provider 下的具体模型
4. config 配置管理¶
查看配置:
# 显示当前所有配置
hermes config
# 显示配置文件路径
hermes config path
# 输出: /home/user/.hermes/config.yaml
# 显示 .env 文件路径
hermes config env-path
# 输出: /home/user/.hermes/.env
编辑配置:
# 在系统编辑器中打开 config.yaml
hermes config edit
# 等同于: $EDITOR ~/.hermes/config.yaml
设置配置值:
# 设置模型
hermes config set model.default "anthropic/claude-sonnet-4"
hermes config set model.provider "anthropic"
hermes config set model.base_url "https://api.anthropic.com"
hermes config set model.api_key "sk-ant-xxx"
hermes config set model.context_length 200000
# Agent 设置
hermes config set agent.max_turns 90
# 终端设置
hermes config set terminal.backend "local"
hermes config set terminal.timeout 300
hermes config set terminal.cwd "/home/user/projects"
# 压缩设置
hermes config set compression.enabled true
hermes config set compression.threshold 0.50
hermes config set compression.target_ratio 0.20
# 显示设置
hermes config set display.skin "default"
hermes config set display.show_reasoning true
hermes config set display.show_cost true
# STT 设置
hermes config set stt.enabled true
hermes config set stt.provider "local"
# TTS 设置
hermes config set tts.provider "edge"
# 记忆设置
hermes config set memory.memory_enabled true
hermes config set memory.user_profile_enabled true
hermes config set memory.write_approval false
# 安全设置
hermes config set security.redact_secrets true
hermes config set privacy.redact_pii false
hermes config set approvals.mode "smart" # manual|smart|off
# 委派设置
hermes config set delegation.max_iterations 50
hermes config set delegation.model "deepseek/deepseek-chat"
# 检查点设置
hermes config set checkpoints.enabled true
hermes config set checkpoints.max_snapshots 50
# Cron 设置
hermes config set cron.allow_agent_scheduling true
hermes config set cron.bot_chat_delivery_timeout_seconds 600
# 凭证池策略
hermes config set credential_pools.strategy "round_robin" # fill_first|round_robin|least_used|random
# Dashboard 设置
hermes config set dashboard.theme "default"
hermes config set dashboard.show_token_analytics false
检查与迁移:
# 检查配置是否有缺失或过时项
hermes config check
# 迁移配置(添加新选项)
hermes config migrate
5. auth 凭证管理¶
添加凭证:
# 交互式凭证向导
hermes auth add
# 指定 Provider 添加
hermes auth add openrouter # 添加 OpenRouter API Key
hermes auth add anthropic # 添加 Anthropic API Key
hermes auth add deepseek # 添加 DeepSeek API Key
hermes auth add nous # Nous Portal OAuth 登录
hermes auth add openai-codex # OpenAI Codex OAuth 登录
hermes auth add qwen-oauth # 通义千问 OAuth 登录
hermes auth add google # Google Gemini API Key
hermes auth add xai # xAI / Grok API Key
查看凭证:
# 列出所有凭证
hermes auth list
# 列出特定 Provider 的凭证
hermes auth list openrouter
hermes auth list anthropic
管理凭证:
# 移除凭证(按 Provider + 索引)
hermes auth remove openrouter 0
# 重置 Provider 的耗尽状态(凭证池轮换时用)
hermes auth reset openrouter
6. doctor 健康检查¶
# 检查所有依赖和配置
hermes doctor
# 检查并自动修复
hermes doctor --fix
# 会检查:
# - Python 版本和依赖
# - Node.js(如需要)
# - API Key 是否配置
# - 模型是否可达
# - MCP SDK 是否安装
# - 终端后端是否可用
7. status 状态查看¶
# 查看基本状态
hermes status
# 查看所有组件详细状态
hermes status --all
# 显示内容:
# - 当前模型和 Provider
# - 网关状态
# - 已启用的工具集
# - 已加载的技能
# - 记忆状态
# - Profile 信息
8. update 更新¶
# 更新到最新版本
hermes update
# 等同于:
# git pull → pip install -e . → npm ci → cd web && npm run build
9. uninstall 卸载¶
# 卸载 Hermes
hermes uninstall
二、工具与技能命令¶
10. tools 工具管理¶
# 交互式工具管理界面(curses UI,上下键选择,空格切换启用/禁用)
hermes tools
# 列出所有工具及当前状态(enabled/disabled)
hermes tools list
# 启用指定工具集
hermes tools enable browser # 启用浏览器自动化
hermes tools enable code_execution # 启用沙箱代码执行
hermes tools enable vision # 启用图像分析
hermes tools enable image_gen # 启用图像生成
hermes tools enable tts # 启用文本转语音
hermes tools enable video # 启用视频分析
hermes tools enable delegation # 启用子 Agent 委派
hermes tools enable cronjob # 启用定时任务管理
hermes tools enable memory # 启用持久记忆
hermes tools enable session_search # 启用会话搜索
hermes tools enable skills # 启用技能管理
hermes tools enable todo # 启用任务规划
hermes tools enable messaging # 启用跨平台消息
hermes tools enable kanban # 启用任务看板
hermes tools enable web # 启用网页搜索+提取
hermes tools enable search # 启用仅搜索
hermes tools enable terminal # 启用终端命令
hermes tools enable file # 启用文件操作
hermes tools enable clarify # 启用提澄清问题
hermes tools enable spotify # 启用 Spotify
hermes tools enable homeassistant # 启用智能家居
hermes tools enable safe # 启用最小化安全工具集
hermes tools enable debugging # 启用调试工具
hermes tools enable discord # 启用 Discord 工具
hermes tools enable discord_admin # 启用 Discord 管理工具
hermes tools enable feishu_doc # 启用飞书文档工具
hermes tools enable feishu_drive # 启用飞书云盘工具
hermes tools enable yuanbao # 启用腾讯元宝工具
# 禁用指定工具集
hermes tools disable browser
hermes tools disable image_gen
hermes tools disable tts
注意: 工具变更在新会话(
/reset)后生效,不会立即应用到当前会话。
11. skills 技能管理¶
浏览与搜索:
# 打开交互式技能中心浏览
hermes skills browse
# 搜索技能
hermes skills search "PDF"
hermes skills search "法律"
hermes skills search "GitHub"
hermes skills search "数据分析"
hermes skills search "网络安全"
安装与卸载:
# 安装技能(按 ID)
hermes skills install nano-pdf
hermes skills install github-issue-to-pr
hermes skills install arxiv
hermes skills install contract-review
# 安装时指定名称
hermes skills install <url-or-id> --name my-skill
# 预览技能内容(不安装)
hermes skills inspect nano-pdf
hermes skills inspect arxiv
# 卸载技能
hermes skills uninstall nano-pdf
管理已安装技能:
# 列出所有已安装技能
hermes skills list
# 按平台配置技能启用/禁用
hermes skills config
# 会弹出交互式界面,可以为每个平台(CLI、Telegram、Discord 等)单独开关技能
# 检查技能更新
hermes skills check
# 更新所有过时技能
hermes skills update
发布与技能源:
# 发布技能到注册中心
hermes skills publish /path/to/my-skill
# 添加 GitHub 仓库作为技能源
hermes skills tap add https://github.com/user/repo
12. plugins 插件管理¶
# 列出已安装插件
hermes plugins list
# 安装插件
hermes plugins install <plugin-name>
# 移除插件
hermes plugins remove <plugin-name>
13. mcp MCP 服务器¶
管理 MCP 服务器:
# 列出已配置的 MCP 服务器
hermes mcp list
# 添加 MCP 服务器(stdio 模式)
hermes mcp add time --command uvx --args '["mcp-server-time"]'
hermes mcp add filesystem --command npx --args '["-y", "@modelcontextprotocol/server-filesystem", "/home/user/docs"]'
# 添加 MCP 服务器(HTTP 模式)
hermes mcp add remote-api --url "https://mcp.example.com/mcp"
# 添加时指定环境变量
hermes mcp add github --command npx \
--args '["-y", "@modelcontextprotocol/server-github"]' \
--env '{"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx"}'
# 移除 MCP 服务器
hermes mcp remove time
# 测试 MCP 服务器连接
hermes mcp test time
hermes mcp test github
# 配置服务器的工具选择(启用/禁用特定工具)
hermes mcp configure github
# 将 Hermes 自身作为 MCP 服务器运行(供其他工具使用)
hermes mcp serve
手动配置(config.yaml):
mcp_servers:
time:
command: "uvx"
args: ["mcp-server-time"]
timeout: 120
connect_timeout: 60
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "ghp_xxx"
timeout: 60
remote_api:
url: "https://mcp.example.com/mcp"
headers:
Authorization: "Bearer sk-xxx"
timeout: 180
三、网关与平台命令¶
14. gateway 消息网关¶
# 交互式配置平台
hermes gateway setup
# 支持配置:Telegram、Discord、Slack、WhatsApp、Signal、
# Email、SMS、Matrix、DingTalk、Feishu、WeCom、Weixin 等
# 前台运行(查看实时日志)
hermes gateway run
# 安装为用户级后台服务
hermes gateway install
# 安装为系统级服务(Linux,开机自启)
sudo hermes gateway install --system
# 启动服务
hermes gateway start
# 停止服务
hermes gateway stop
# 重启服务
hermes gateway restart
# 查看服务状态
hermes gateway status
15. webhook Webhook 订阅¶
创建订阅:
# 基本语法
hermes webhook subscribe <name> \
--prompt "提示模板,支持 {payload.fields}" \
--events "event1,event2" \
--description "描述" \
--skills "skill1,skill2" \
--deliver <platform> \
--deliver-chat-id "<chat-id>" \
--secret "自定义密钥(可选)"
# 示例:GitHub 新 Issue 通知到 Telegram
hermes webhook subscribe github-issues \
--events "issues" \
--prompt "新 Issue #{issue.number}: {issue.title}\n作者: {issue.user.login}\n内容: {issue.body}\n请分类处理。" \
--deliver telegram \
--deliver-chat-id "-100123456789"
# 示例:GitHub PR 审查
hermes webhook subscribe github-prs \
--events "pull_request" \
--prompt "PR #{pull_request.number} {action}: {pull_request.title}\n分支: {pull_request.head.ref}" \
--skills "github-code-review"
# 示例:Stripe 支付通知
hermes webhook subscribe stripe-payments \
--events "payment_intent.succeeded,payment_intent.payment_failed" \
--prompt "支付状态: {data.object.status}, 金额: {data.object.amount} 分"
# 示例:CI/CD 构建通知
hermes webhook subscribe ci-builds \
--events "pipeline" \
--prompt "构建 {object_attributes.status}, 分支: {object_attributes.ref}"
# 示例:监控告警(零 LLM 成本,直接投递)
hermes webhook subscribe alerts \
--deliver telegram \
--deliver-chat-id "123456789" \
--deliver-only \
--prompt "⚠️ 告警: {alert.name}\n级别: {alert.severity}\n消息: {alert.message}"
管理订阅:
# 列出所有订阅
hermes webhook list
# 移除订阅
hermes webhook remove github-issues
# 测试订阅(发送测试请求)
hermes webhook test github-issues
hermes webhook test github-issues --payload '{"key": "value"}'
四、会话与调度命令¶
16. sessions 会话管理¶
# 列出最近的会话
hermes sessions list
# 交互式浏览和选择会话
hermes sessions browse
# 会话统计信息
hermes sessions stats
# 重命名会话
hermes sessions rename 20260225_143052_a1b2c3 "重构用户模块"
# 删除会话
hermes sessions delete 20260225_143052_a1b2c3
# 清理旧会话(默认 30 天前)
hermes sessions prune
# 清理指定天数前的会话
hermes sessions prune --older-than 7
hermes sessions prune --older-than 90
# 导出会话为 JSONL
hermes sessions export ~/export.jsonl
17. cron 定时任务¶
创建任务:
# 时间间隔格式
hermes cron create "30m" "检查服务器状态并汇报" # 每 30 分钟
hermes cron create "every 2h" "检查磁盘使用率" # 每 2 小时
hermes cron create "every 30m" "检查新邮件" # 每 30 分钟
# Cron 表达式格式
hermes cron create "0 9 * * *" "生成每日报告" # 每天 9:00
hermes cron create "0 9 * * 1-5" "工作日早报" # 工作日 9:00
hermes cron create "0 */6 * * *" "每 6 小时同步" # 每 6 小时
hermes cron create "30 8 * * 1" "每周一 8:30 周报" # 每周一 8:30
hermes cron create "0 9 1 * *" "每月 1 号 9:00 月报" # 每月 1 号
# 自然语言格式
hermes cron create "every monday 9am" "生成周报"
hermes cron create "every day at 18:00" "生成日报"
# 一次性任务(ISO 时间戳)
hermes cron create "2026-09-01T09:00:00" "执行数据库迁移"
# 带 Skill 的任务
hermes cron create "every 1h" "检查新闻更新" --skill news-monitor
hermes cron create "0 9 * * *" "生成报告" --skill report-builder --skill data-analysis
# 多个 Skill
hermes cron create "every 1h" "综合分析" --skill blogwatcher --skill maps --name "综合分析"
# 带脚本预检的任务
hermes cron create "every 5m" "检查内存使用" \
--script ~/.hermes/scripts/mem-check.sh \
--no-agent \
--deliver telegram
# 指定工作目录
hermes cron create "0 9 * * *" "审计 PR 并汇报 CI 状态" \
--workdir /home/me/projects/acme
管理任务:
# 列出所有任务
hermes cron list
# 包含已禁用的任务
hermes cron list --all
# 查看调度器状态
hermes cron status
# 编辑任务
hermes cron edit <job_id> --schedule "every 4h" # 修改调度
hermes cron edit <job_id> --prompt "使用新的任务描述" # 修改提示
hermes cron edit <job_id> --skill new-skill # 添加 Skill
hermes cron edit <job_id> --add-skill maps # 追加 Skill
hermes cron edit <job_id> --remove-skill old-skill # 移除 Skill
hermes cron edit <job_id> --clear-skills # 清空所有 Skill
hermes cron edit <job_id> --workdir /new/path # 修改工作目录
# 也支持按任务名称操作(大小写不敏感)
hermes cron edit "memory-watchdog" --schedule "every 10m"
# 暂停/恢复任务
hermes cron pause <job_id>
hermes cron pause "memory-watchdog"
hermes cron resume <job_id>
hermes cron resume "memory-watchdog"
# 立即触发一次
hermes cron run <job_id>
hermes cron run "daily-report"
# 删除任务
hermes cron remove <job_id>
hermes cron remove "memory-watchdog"
高级功能:
# 链式任务(任务 B 使用任务 A 的输出作为上下文)
# 先创建任务 A
hermes cron create "every 6h" "收集最新安全情报" --name collector
# 再创建任务 B,引用 A 的输出
hermes cron edit <job_b_id> --context-from <job_a_id>
# 或在 cronjob 工具中: context_from=["<job_a_id>"]
# 多平台投递
hermes cron create "0 9 * * *" "每日报告" --deliver "telegram,discord"
18. kanban 任务看板¶
# 初始化看板
hermes kanban init
# 创建任务
hermes kanban create "实现用户认证模块" --assign backend-profile
hermes kanban create "编写单元测试" --priority high
hermes kanban create "优化数据库查询" --assign db-profile --priority medium
# 列出任务
hermes kanban list
hermes kanban ls
# 查看任务详情
hermes kanban show <task_id>
# 分配任务
hermes kanban assign <task_id> frontend-profile
# 关联任务
hermes kanban link <parent_id> <child_id>
hermes kanban unlink <parent_id> <child_id>
# 添加评论
hermes kanban comment <task_id> "需要先完成数据库迁移"
# 完成任务
hermes kanban complete <task_id>
# 阻塞/解除阻塞
hermes kanban block <task_id> "等待 API 设计确认"
hermes kanban unblock <task_id>
# 归档
hermes kanban archive <task_id>
# 查看统计
hermes kanban stats
# 查看任务日志
hermes kanban log <task_id>
# 查看最近活动
hermes kanban tail
# 查看运行记录
hermes kanban runs
# 设置监听
hermes kanban watch <task_id>
# 清理已归档任务
hermes kanban gc
五、Profile 命令¶
19. profile 环境隔离¶
# 列出所有 Profile
hermes profile list
# 创建 Profile
hermes profile create work # 空白 Profile
hermes profile create work --clone # 克隆当前 Profile
hermes profile create staging --clone-all # 克隆所有 Profile
hermes profile create dev --clone-from work # 从指定 Profile 克隆
# 设置默认 Profile
hermes profile use work
# 使用指定 Profile 启动
hermes -p work
hermes -p personal
# 查看 Profile 详情
hermes profile show work
# 重命名 Profile
hermes profile rename work office
# 删除 Profile
hermes profile delete old-profile
# 管理包装脚本(alias)
hermes profile alias work
# 创建 ~/bin/hermes-work 别名脚本
# 导出 Profile
hermes profile export work > /backup/work-profile.tar.gz
# 导入 Profile
hermes profile import /backup/work-profile.tar.gz
六、其他命令¶
20. memory 记忆管理¶
# 设置记忆 Provider
hermes memory setup
# 交互式选择记忆后端(内置/Honcho/Mem0 等)
# 查看记忆状态
hermes memory status
# 关闭记忆
hermes memory off
21. honcho Honcho 集成¶
# 设置 Honcho 记忆
hermes honcho setup
# 查看 Honcho 状态
hermes honcho status
22. insights 使用分析¶
# 查看使用统计(默认最近 30 天)
hermes insights
# 查看指定天数
hermes insights --days 7
hermes insights --days 90
# 显示内容:Token 使用量、会话数、工具调用频率等
23. pairing DM 授权¶
# 列出待审批的 DM 请求
hermes pairing list
# 批准 DM 请求
hermes pairing approve <request-id>
# 撤销授权
hermes pairing revoke <request-id>
24. completion Shell 补全¶
# 生成 Bash 补全脚本
hermes completion bash >> ~/.bashrc
# 生成 Zsh 补全脚本
hermes completion zsh >> ~/.zshrc
# 生效
source ~/.bashrc # 或 source ~/.zshrc
25. acp IDE 集成¶
# 启动 ACP 服务器(供 IDE 集成使用)
hermes acp
26. claw OpenClaw 迁移¶
# 从 OpenClaw 迁移配置和数据
hermes claw migrate
七、Slash 命令(会话内)¶
在交互式会话中输入 / 开头的命令。以下每个命令都有实际用法说明。
会话控制¶
# 新建会话(清除所有上下文)
/new
/reset
# CLI 专用:清屏 + 新建会话
/clear
# 重新发送最后一条消息(出错时重试)
/retry
# 撤销最后一次交互(移除最后一组 user+assistant 消息)
/undo
# 为当前会话命名(便于后续查找)
/title 重构用户认证模块
/title # 不带参数则显示当前标题
# 手动压缩上下文(上下文太长时使用)
/compress
# 终止所有后台进程
/stop
# 恢复文件系统检查点(需要 --checkpoints 启用)
/rollback # 恢复到最近的检查点
/rollback 3 # 恢复到第 3 个检查点
# 创建或恢复状态快照
/snapshot # 创建快照
/snapshot restore # 恢复快照
# 在后台运行提示(不阻塞当前对话)
/background 帮我整理 /var/log/syslog 中的所有错误
# 排队到下一轮执行
/queue 下一步检查数据库连接
# 在下次工具调用后注入消息(不中断当前执行)
/steer 注意检查边界条件
# 显示活跃的子 Agent 和任务
/agents
/tasks
# 恢复命名会话
/resume 重构用户认证模块
/resume # 不带参数则显示可恢复的会话列表
# 设置持续目标(跨回合直到完成)
/goal 完成 REST API 的单元测试覆盖率达到 80%
/goal status # 查看当前目标状态
/goal pause # 暂停目标
/goal resume # 恢复目标
/goal clear # 清除目标
# 强制 UI 重绘(CLI 显示异常时使用)
/redraw
配置¶
# 显示当前配置(CLI)
/config
# 查看或切换模型
/model # 显示当前模型
/model deepseek/deepseek-chat # 切换到 DeepSeek
/model anthropic/claude-sonnet-4 # 切换到 Claude
# 设置人设(Personality)
/personality # 显示可用人设
/personality researcher # 切换到研究者人设
# 设置推理级别
/reasoning none # 关闭推理显示
/reasoning minimal # 最小推理
/reasoning low # 低推理
/reasoning medium # 中等推理
/reasoning high # 高推理
/reasoning xhigh # 超高推理
/reasoning show # 显示推理过程
/reasoning hide # 隐藏推理过程
# 循环详细输出级别
/verbose # off → new → all → off
# 语音模式
/voice on # 开启语音模式(语音输入 → 语音输出)
/voice tts # 始终语音回复
/voice off # 关闭语音
# 切换 YOLO 模式(跳过命令审批)
/yolo
# CLI:控制忙碌时 Enter 行为
/busy queue # 按 Enter 排队消息
/busy steer # 按 Enter 注入指导消息
/busy interrupt # 按 Enter 中断执行
/busy status # 查看当前模式
# CLI:选择忙碌指示器样式
/indicator kaomoji # (◕‿◕) 风格
/indicator emoji # 🔄 风格
/indicator unicode # ⠋ 风格
/indicator ascii # - \ | / 风格
# 网关:切换运行元数据脚注
/footer on
/footer off
# CLI:切换主题
/skin default
/skin midnight
/skin cyberpunk
# CLI:切换状态栏
/statusbar
工具与技能¶
# CLI:打开工具管理界面
/tools
# CLI:列出工具集
/toolsets
# CLI:搜索/安装技能
/skills # 打开交互式搜索
/skills nano-pdf # 搜索 PDF 相关技能
# 加载技能到当前会话
/skill nano-pdf
/skill arxiv
/skill github-issue-to-pr
# 重新扫描技能目录(手动添加了新技能文件后使用)
/reload-skills
# 重新加载 .env 环境变量(修改了 .env 后使用)
/reload
# 重新加载 MCP 服务器配置
/reload-mcp
# CLI:管理定时任务
/cron # 打开交互式管理
# 后台技能维护
/curator status # 查看 Curator 状态
/curator run # 执行维护
/curator pause # 暂停自动维护
/curator resume # 恢复自动维护
/curator pin <skill> # 固定技能(不被自动清理)
/curator unpin <skill> # 取消固定
/curator archive <skill> # 归档技能
/curator restore <skill> # 恢复已归档技能
/curator prune # 手动清理
# 多任务看板
/kanban tasks # 列出任务
/kanban show <id> # 查看任务
/kanban link # 关联任务
# CLI:列出插件
/plugins
网关¶
# 批准待审批的危险命令
/approve
# 拒绝待审批的危险命令
/deny
# 重启网关
/restart
# 设置当前聊天为首页频道
/sethome
# 更新 Hermes
/update
# Telegram:管理 DM 主题会话
/topic # 查看主题状态
/topic create "新主题" # 创建新主题
# 显示平台连接状态
/platforms
/gateway
工具¶
# 分支/分叉当前会话
/branch
/fork
# 切换优先/快速处理
/fast
# 打开 CDP 浏览器连接
/browser
# CLI:查看对话历史
/history
# CLI:保存对话到文件
/save
# CLI:复制最后一条回复到剪贴板
/copy # 复制最新一条
/copy 3 # 复制倒数第 3 条
# CLI:附加剪贴板图像
/paste
# CLI:附加本地图像文件
/image /path/to/screenshot.png
信息¶
# 显示所有可用命令
/help
# 网关:分页浏览所有命令
/commands
/commands 2 # 第 2 页
# 显示 Token 使用量
/usage
# 使用分析
/insights
/insights 7 # 最近 7 天
# 会话信息
/status
# 当前 Profile 信息
/profile
# 上传调试报告(系统信息 + 日志,生成可分享链接)
/debug
退出¶
# 退出 CLI
/quit
/exit
/q
八、全局参数¶
所有命令都支持以下全局参数:
hermes [全局参数] [命令] [命令参数]
--version, -V 显示版本号
--resume, -r SESSION 按 ID 或标题恢复会话
--continue, -c [NAME] 恢复最近会话(或按名称匹配)
--worktree, -w 独立 git worktree 模式(并行 Agent 不冲突)
--skills, -s SKILL 预加载技能(逗号分隔或重复 -s)
hermes -s nano-pdf,arxiv
hermes -s nano-pdf -s arxiv
--profile, -p NAME 使用指定 Profile
--yolo 跳过所有危险命令审批
--pass-session-id 在系统提示中包含会话 ID
--ignore-rules 跳过所有上下文文件注入
示例:
# 使用 work Profile,预加载 2 个技能,跳过审批
hermes -p work -s nano-pdf,arxiv --yolo
# 恢复会话并指定模型
hermes --continue -m anthropic/claude-sonnet-4
# worktree 模式并行开发
hermes -w
查看命令帮助: 任何命令后加
--help即可查看详细帮助
bash hermes --help hermes chat --help hermes config --help hermes cron --help