Hermes Agent CLI 命令 — 完整参考
每个 CLI 命令尽在指尖 — 分类展示、可搜索、带用法示例。
hermes setup交互式设置向导 — 逐步配置供应商、模型、网关和工具。
modelttsterminalgatewaytoolstelemetryagenthermes chat与智能体进行交互式或一次性对话。支持恢复会话、图片附件和工具集选择。
-q, --query "..."— One-shot non-interactive prompt-m, --model <model>— Override model for this run-s, --skills <name>— Preload one or more skills-t, --toolsets <csv>— Enable comma-separated toolset list--image <path>— Attach a local image to the query--resume <session>— Resume a session directly-v, --verbose— Verbose output-Q, --quiet— Programmatic mode: suppress banner/spinnerhermes update拉取最新代码,重装依赖。支持可选更新前备份和网关重启。
--check— Only check for updates, do not apply--backup— Snapshot ~/.hermes before updating--branch <NAME>— Update against a specific branch instead of mainhermes uninstall从系统中删除 Hermes。可选择删除所有数据。
hermes completion为 bash、zsh 或 fish 生成 shell 自动补全脚本,启用所有命令和选项的 Tab 补全。
hermes config查看、编辑、设置或查询 ~/.hermes/config.yaml 中的配置值。
showeditset <key> <value>get <key>unset <key>pathenv-pathcheckmigratehermes moa配置命名混合智能体预设 — 将多个模型组合用于单次查询。
hermes fallback管理主模型出错时尝试的备用供应商。
hermes auth管理凭据 — 添加、列出、移除、重置、状态、登出。支持 Codex、Nous 和 Anthropic 的 OAuth 流程。
add <provider>listremove <provider> [index]reset <provider>status <provider>logout <provider>spotifyhermes migrate诊断并可选择重写 config.yaml,替换已退役模型或废弃设置。
hermes prompt-size显示系统提示词 + 工具模式的字节分解(技能索引、记忆、配置文件)。离线运行。
hermes gateway运行或管理消息网关服务 — 连接 Hermes 到 Telegram、Discord、Slack、WhatsApp、Signal 等平台。
run (foreground)start (daemon)stoprestartstatusinstalluninstalllistsetupmigrate-legacyenrollhermes whatsapp-cloud配置官方的 Meta WhatsApp Business Cloud API 适配器。需要 Business 账号和公开 webhook。
hermes send向已配置的消息平台发送一次性消息。适用于 shell 脚本、cron 任务、CI 钩子 — 不需要智能体循环。
-t, --to <target>— Delivery target: platform, platform:chat_id, or platform:#channel-f, --file <path>— Read message body from file (use MEDIA:<path> for attachments)-s, --subject <line>— Prepend a subject/header line-l, --list— List available targets-q, --quiet— Suppress stdout on success--json— Emit raw JSON resulthermes pairing批准或撤销消息配对码 — 管理哪些设备/用户可以通过网关连接。
hermes skills从 agentskills.io 浏览、安装、发布、审计和配置技能。
listbrowsesearch <query>install <name>inspect <name>checkupdateaudituninstall <name>publishsnapshottapconfighermes plugins管理 Hermes Agent 插件 — 安装、启用、禁用或删除扩展。
hermes hooks检查、批准或删除 config.yaml 中声明的 shell 钩子。
hermes memory配置外部记忆供应商(向量数据库后端)。管理跨会话持久记忆。
setupstatusoffresethermes sessions浏览、导出、清理、重命名和删除聊天会话。
listbrowseexportdeleteprunearchiveoptimizerepairrecoverstatsrenameretitle-skillshermes profile管理配置文件 — 运行多个独立的 Hermes 实例,各自拥有独立的配置、会话、技能和记忆。
listuse <name>create <name>delete <name>describeshow <name>aliasrename <old> <new>exportimportinstallupdateinfo-p, --profile <name>— Select profile for a single invocation (global flag)hermes logs查看、实时跟踪和过滤智能体、网关及错误日志文件。
-n, --lines N— Show last N lines (default 50)-f, --follow— Tail logs in real time--level <LEVEL>— Minimum level: DEBUG, INFO, WARNING, ERROR--session <ID>— Filter lines by session ID--since <TIME>— Show lines since TIME ago (e.g. 1h, 30m)--component <NAME>— Filter by component: gateway, agent, tools, cli, cron, gui[log_name]— Log file to view: agent (default), errors, gateway, gui, desktop, or listhermes backup将整个 Hermes 主目录(~/.hermes)备份为 zip 文件。
hermes import从 zip 文件恢复 Hermes 备份。
hermes checkpoints检查、清理或清除文件系统检查点(/rollback 使用的影子存储)。
hermes cron检查和管理内置 cron 调度器,用于定时任务自动化。
hermes kanban多配置文件协作看板 — 任务、链接、调度。跨多个 Hermes 实例协调工作。
hermes project管理命名多文件夹工作区(项目)。锚定桌面会话分组和确定性工作树。
hermes webhook管理动态 webhook 订阅,实现事件驱动的智能体激活。
hermes mcp管理 MCP(模型上下文协议)服务器配置。将 Hermes 作为 MCP 服务器运行以集成 IDE。
hermes dashboard启动 Web 仪表盘(端口 9119),用于管理配置、API 密钥、会话和嵌入式聊天。
hermes proxy启动本地 OpenAI 兼容代理,附加 OAuth 供应商凭据。可将 Hermes 作为任何 OpenAI 兼容客户端的即插即用后端。
hermes security按需供应链安全审计(OSV.dev),覆盖虚拟环境、插件依赖和固定的 MCP 服务器。
hermes secrets管理外部密钥源(Bitwarden Secrets Manager),用于启动时拉取 API 密钥。
未找到匹配的命令
试试其他搜索词。
全局选项
这些选项适用于所有 hermes 命令,需放在子命令之前。
--version, -V— Show version and exit--profile <name>, -p <name>— Select which Hermes profile to use for this invocation--resume <session>, -r <session>— Resume a previous session by ID or title--continue [name], -c [name]— Resume the most recent session, optionally filtered by title--worktree, -w— Start in an isolated git worktree for parallel-agent workflows--yolo— Bypass dangerous-command approval prompts--tui— Launch the full-screen TUI instead of the classic CLI--cli— Force the classic prompt_toolkit REPL (override display.interface: tui)--pass-session-id— Include the session ID in the system prompt--ignore-user-config— Ignore ~/.hermes/config.yaml and use built-in defaults--ignore-rules— Skip auto-injection of AGENTS.md, SOUL.md, memory, and preloaded skillsReady to try these commands?
Install Hermes Agent and start exploring the full power of the CLI.