Chuyển tới nội dung chính

Tham khảo lệnh CLI

Trang này bao gồm lệnh đầu cuối bạn chạy từ trình bao của mình.

Để biết các lệnh gạch chéo trong cuộc trò chuyện, hãy xem Tham khảo lệnh gạch chéo.

Điểm vào toàn cầu

hermes [global-options] <command> [subcommand/options]

Tùy chọn toàn cầu

Tùy chọnMô tả
--version, -VHiển thị phiên bản và thoát.
--profile <name>, -p <name>Chọn hồ sơ Hermes nào sẽ sử dụng cho lệnh gọi này. Ghi đè mặc định cố định được đặt bởi sử dụng hồ sơ hermes.
--tiếp tục <phiên>, -r <phiên>Tiếp tục phiên trước đó theo ID hoặc tiêu đề.
--tiếp tục [tên], -c [tên]Tiếp tục phiên gần đây nhất hoặc phiên gần đây nhất khớp với tiêu đề.
--worktree, -wBắt đầu trong một cây công việc git biệt lập cho quy trình làm việc của tác nhân song song.
--yoloBỏ qua lời nhắc phê duyệt lệnh nguy hiểm.
--pass-session-idBao gồm ID phiên trong lời nhắc hệ thống của tổng đài viên.

Lệnh cấp cao nhất

LệnhMục đích
Trò chuyện HermesTrò chuyện tương tác hoặc một lần với đại lý.
người mẫu HermesTương tác chọn nhà cung cấp và mô hình mặc định.
cổng HermesChạy hoặc quản lý dịch vụ cổng nhắn tin.
thiết lập hermesTrình hướng dẫn thiết lập tương tác cho tất cả hoặc một phần cấu hình.
hermes whatsappĐịnh cấu hình và ghép nối cầu WhatsApp.
hermes xác thựcQuản lý thông tin xác thực - thêm, liệt kê, xóa, đặt lại, đặt chiến lược. Xử lý các luồng OAuth cho Codex/Nous/Anthropic.
hermes đăng nhập / đăng xuấtKhông được dùng nữa — thay vào đó hãy sử dụng hermes auth.
trạng thái hermesHiển thị trạng thái đại lý, xác thực và nền tảng.
hermes cronKiểm tra và đánh dấu vào lịch trình cron.
webhookQuản lý đăng ký webhook động để kích hoạt theo sự kiện.
bác sĩ HermesChẩn đoán các vấn đề về cấu hình và phụ thuộc.
cấu hình hermesHiển thị, chỉnh sửa, di chuyển và truy vấn các tệp cấu hình.
Hermes ghép đôiPhê duyệt hoặc thu hồi mã ghép nối tin nhắn.
kỹ năng của hermesDuyệt, cài đặt, xuất bản, kiểm tra và cấu hình các kỹ năng.
hermes honchoQuản lý tích hợp bộ nhớ phiên chéo Honcho.
ký ức HermesCấu hình nhà cung cấp bộ nhớ ngoài.
hermes acpChạy Hermes dưới dạng máy chủ ACP để tích hợp trình soạn thảo.
hermes mcpQuản lý cấu hình máy chủ MCP và chạy Hermes dưới dạng máy chủ MCP.
plugin hermesQuản lý plugin Hermes Agent (cài đặt, bật, tắt, xóa).
công cụ HermesĐịnh cấu hình các công cụ được kích hoạt trên mỗi nền tảng.
phiên HermesDuyệt, xuất, cắt tỉa, đổi tên và xóa phiên.
những hiểu biết sâu sắc của HermesHiển thị phân tích mã thông báo/chi phí/hoạt động.
móng vuốt HermesNgười trợ giúp di chuyển OpenClaw.
hồ sơ hermesQuản lý hồ sơ - nhiều phiên bản Hermes bị cô lập.
hoàn thành HermesIn tập lệnh hoàn thành shell (bash/zsh).
phiên bản HermesHiển thị thông tin phiên bản.
cập nhật HermesKéo mã mới nhất và cài đặt lại các phần phụ thuộc.
gỡ cài đặt hermesLoại bỏ Hermes khỏi hệ thống.

hermes trò chuyện

hermes chat [options]

Các tùy chọn phổ biến:

Tùy chọnMô tả
-q, --query "..."Lời nhắc một lần, không tương tác.
-m, --model <model>Ghi đè mô hình cho lần chạy này.
-t, --toolsets <csv>Kích hoạt bộ công cụ được phân tách bằng dấu phẩy.
--nhà cung cấp <nhà cung cấp>Buộc nhà cung cấp: auto, openrouter, nous, openai-codex, copilot-acp, copilot, anthropic, huggingface, zai, kimi-coding, minimax, minimax-cn, deepseek, ai-gateway, opencode-zen, opencode-go, kilocode, alibaba.
-s, --skills <name>Tải trước một hoặc nhiều kỹ năng cho buổi học (có thể lặp lại hoặc phân tách bằng dấu phẩy).
-v, --verboseĐầu ra dài dòng.
-Q, --quietChế độ có lập trình: chặn xem trước biểu ngữ/spinner/công cụ.
--tiếp tục <phiên> / --tiếp tục [tên]Tiếp tục phiên trực tiếp từ chat.
--worktreeTạo một cây công việc git riêng biệt cho lần chạy này.
--điểm kiểm traKích hoạt điểm kiểm tra hệ thống tập tin trước khi thay đổi tập tin phá hoại.
--yoloBỏ qua lời nhắc phê duyệt.
--pass-session-idChuyển ID phiên vào dấu nhắc hệ thống.
--nguồn <tag>Thẻ nguồn phiên để lọc (mặc định: cli). Sử dụng tool cho các tiện ích tích hợp của bên thứ ba không xuất hiện trong danh sách phiên của người dùng.
--xoay tối đa <N>Số lần lặp lại lệnh gọi công cụ tối đa cho mỗi lượt hội thoại (mặc định: 90 hoặc agent.max_turns trong cấu hình).

Ví dụ:

hermes
hermes chat -q "Summarize the latest PRs"
hermes chat --provider openrouter --model anthropic/claude-sonnet-4.6
hermes chat --toolsets web,terminal,skills
hermes chat --quiet -q "Return only JSON"
hermes chat --worktree -q "Review this repo and open a PR"

người mẫu Hermes

Nhà cung cấp tương tác + bộ chọn mô hình.

hermes model

Sử dụng điều này khi bạn muốn:

  • chuyển đổi nhà cung cấp mặc định
  • đăng nhập vào các nhà cung cấp được OAuth hỗ trợ trong quá trình chọn mô hình
  • chọn từ danh sách mô hình dành riêng cho nhà cung cấp
  • định cấu hình điểm cuối tùy chỉnh/tự lưu trữ
  • lưu mặc định mới vào config

Lệnh gạch chéo ### /model (giữa phiên)

Chuyển đổi mô hình mà không cần rời khỏi phiên:

/model                              # Show current model and available options
/model claude-sonnet-4 # Switch model (auto-detects provider)
/model zai:glm-5 # Switch provider and model
/model custom:qwen-2.5 # Use model on your custom endpoint
/model custom # Auto-detect model from custom endpoint
/model custom:local:qwen-2.5 # Use a named custom provider
/model openrouter:anthropic/claude-sonnet-4 # Switch back to cloud

Các thay đổi của nhà cung cấp và URL cơ sở được tự động lưu giữ thành config.yaml. Khi chuyển khỏi điểm cuối tùy chỉnh, URL cơ sở cũ sẽ bị xóa để ngăn chặn việc rò rỉ sang các nhà cung cấp khác.

`` cổng hermes`

hermes gateway <subcommand>

Lệnh phụ:

Tiểu banMô tả
chạyChạy cổng ở phía trước.
bắt đầuBắt đầu dịch vụ cổng đã cài đặt.
dừng lạiDừng dịch vụ.
khởi động lạiKhởi động lại dịch vụ.
trạng tháiHiển thị trạng thái dịch vụ.
cài đặtCài đặt dưới dạng dịch vụ người dùng (systemd trên Linux, launchd trên macOS).
gỡ cài đặtXóa dịch vụ đã cài đặt.
thiết lậpThiết lập nền tảng nhắn tin tương tác.

thiết lập hermes

hermes setup [model|terminal|gateway|tools|agent] [--non-interactive] [--reset]

Sử dụng trình hướng dẫn đầy đủ hoặc chuyển sang một phần:

PhầnMô tả
người mẫuThiết lập nhà cung cấp và mô hình.
thiết bị đầu cuốiThiết lập phụ trợ thiết bị đầu cuối và hộp cát.
cổngThiết lập nền tảng nhắn tin.
công cụBật/tắt các công cụ trên mỗi nền tảng.
đại lýCài đặt hành vi của đại lý.

Tùy chọn:

Tùy chọnMô tả
--không tương tácSử dụng giá trị mặc định/môi trường mà không cần lời nhắc.
--đặt lạiĐặt lại cấu hình về mặc định trước khi thiết lập.

hermes whatsapp

hermes whatsapp

Chạy quy trình ghép nối/thiết lập WhatsApp, bao gồm lựa chọn chế độ và ghép nối mã QR.

hermes login / hermes logout (Không dùng nữa)

cẩn thận

đăng nhập Hermes đã bị xóa. Sử dụng hermes auth để quản lý thông tin xác thực OAuth, hermes model để chọn nhà cung cấp hoặc hermes setup để thiết lập tương tác đầy đủ.

hermes xác thực

Quản lý nhóm thông tin xác thực để xoay vòng khóa của cùng một nhà cung cấp. Xem Nhóm thông tin xác thực để biết tài liệu đầy đủ.

hermes auth                                              # Interactive wizard
hermes auth list # Show all pools
hermes auth list openrouter # Show specific provider
hermes auth add openrouter --api-key sk-or-v1-xxx # Add API key
hermes auth add anthropic --type oauth # Add OAuth credential
hermes auth remove openrouter 2 # Remove by index
hermes auth reset openrouter # Clear cooldowns

Các lệnh phụ: add, list, remove, reset. Khi được gọi mà không có lệnh phụ, hãy khởi chạy trình hướng dẫn quản lý tương tác.

trạng thái hermes

hermes status [--all] [--deep]
Tùy chọnMô tả
--allHiển thị tất cả thông tin chi tiết ở định dạng được biên tập lại có thể chia sẻ.
--sâuChạy kiểm tra sâu hơn có thể mất nhiều thời gian hơn.

hermes cron

hermes cron <list|create|edit|pause|resume|run|remove|status|tick>
Tiểu banMô tả
danh sáchHiển thị công việc theo lịch trình.
tạo / thêmTạo công việc đã lên lịch từ lời nhắc, tùy ý đính kèm một hoặc nhiều kỹ năng thông qua --skill lặp đi lặp lại.
chỉnh sửaCập nhật lịch trình, lời nhắc, tên, phân phối, số lần lặp lại hoặc các kỹ năng kèm theo của công việc. Hỗ trợ --clear-skills, --add-skill, và --remove-skill.
tạm dừngTạm dừng công việc mà không xóa nó.
sơ yếu lý lịchTiếp tục công việc bị tạm dừng và tính toán lần chạy tiếp theo trong tương lai.
chạyKích hoạt một công việc trên lịch trình đánh dấu tiếp theo.
xóaXóa một công việc đã lên lịch.
trạng tháiKiểm tra xem bộ lập lịch cron có đang chạy không.
đánh dấuChạy các công việc đến hạn một lần và thoát.

hermes webhook

hermes webhook <subscribe|list|remove|test>

Quản lý đăng ký webhook động để kích hoạt tổng đài viên theo sự kiện. Yêu cầu bật nền tảng webhook trong cấu hình — nếu chưa được định cấu hình, sẽ in hướng dẫn thiết lập.

Tiểu banMô tả
đăng ký / thêmTạo một lộ trình webhook. Trả về URL và bí mật HMAC để định cấu hình trên dịch vụ của bạn.
danh sách / lsHiển thị tất cả các đăng ký do đại lý tạo.
xóa / rmXóa đăng ký động. Các tuyến tĩnh từ config.yaml không bị ảnh hưởng.
kiểm traGửi POST thử nghiệm để xác minh đăng ký đang hoạt động.

đăng ký webhook hermes

hermes webhook subscribe <name> [options]
Tùy chọnMô tả
--prompMẫu lời nhắc có tham chiếu tải trọng {dot.notation}.
--sự kiệnCác loại sự kiện được phân tách bằng dấu phẩy để chấp nhận (ví dụ: vấn đề,pull_request). Trống rỗng = tất cả.
--mô tảMô tả con người có thể đọc được.
--kỹ năngTên kỹ năng được phân tách bằng dấu phẩy để tải khi chạy đại lý.
--giaoMục tiêu phân phối: log (mặc định), telegram, discord, slack, github_comment.
--deliver-chat-idNhắm mục tiêu trò chuyện/ID kênh để phân phối trên nhiều nền tảng.
--bí mậtBí mật HMAC tùy chỉnh. Tự động tạo nếu bị bỏ qua.

Các gói đăng ký vẫn tồn tại ở ~/.hermes/webhook_subscriptions.json và được bộ chuyển đổi webhook tải lại nóng mà không cần khởi động lại cổng.

bác sĩ hermes

hermes doctor [--fix]
Tùy chọnMô tả
--sửaCố gắng sửa chữa tự động nếu có thể.

cấu hình hermes

hermes config <subcommand>

Lệnh phụ:

Tiểu banMô tả
showHiển thị giá trị cấu hình hiện tại.
chỉnh sửaMở config.yaml trong trình chỉnh sửa của bạn.
đặt <khóa> <giá trị>Đặt giá trị cấu hình.
con đườngIn đường dẫn tập tin cấu hình.
env-pathPrint the .env file path.
checkCheck for missing or stale config.
migrateAdd newly introduced options interactively.

hermes pairing

hermes pairing <list|approve|revoke|clear-pending>
SubcommandDescription
listShow pending and approved users.
approve <platform> <code>Approve a pairing code.
revoke <platform> <user-id>Revoke a user's access.
clear-pendingClear pending pairing codes.

hermes skills

hermes skills <subcommand>

Subcommands:

SubcommandDescription
browsePaginated browser for skill registries.
searchSearch skill registries.
installInstall a skill.
inspectPreview a skill without installing it.
listList installed skills.
checkCheck installed hub skills for upstream updates.
updateReinstall hub skills with upstream changes when available.
auditRe-scan installed hub skills.
uninstallRemove a hub-installed skill.
publishPublish a skill to a registry.
snapshotExport/import skill configurations.
tapManage custom skill sources.
configInteractive enable/disable configuration for skills by platform.

Common examples:

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 inspect skills-sh/vercel-labs/json-render/json-render-react
hermes skills install official/migration/openclaw-migration
hermes skills install skills-sh/anthropics/skills/pdf --force
hermes skills check
hermes skills update
hermes skills config

Notes:

  • --force can override non-dangerous policy blocks for third-party/community skills.
  • --force does not override a dangerous scan verdict.
  • --source skills-sh searches the public skills.sh directory.
  • --source well-known lets you point Hermes at a site exposing /.well-known/skills/index.json.

hermes honcho

hermes honcho [--target-profile NAME] <subcommand>

Manage Honcho cross-session memory integration. This command is provided by the Honcho memory provider plugin and is only available when memory.provider is set to honcho in your config.

The --target-profile flag lets you manage another profile's Honcho config without switching to it.

Subcommands:

SubcommandDescription
setupRedirects to hermes memory setup (unified setup path).
status [--all]Show current Honcho config and connection status. --all shows a cross-profile overview.
peersShow peer identities across all profiles.
sessionsList known Honcho session mappings.
map [name]Map the current directory to a Honcho session name. Omit name to list current mappings.
peerShow or update peer names and dialectic reasoning level. Options: --user NAME, --ai NAME, --reasoning LEVEL.
mode [mode]Show or set recall mode: hybrid, context, or tools. Omit to show current.
tokensShow or set token budgets for context and dialectic. Options: --context N, --dialectic N.
identity [file] [--show]Seed or show the AI peer identity representation.
enableEnable Honcho for the active profile.
disableDisable Honcho for the active profile.
syncSync Honcho config to all existing profiles (creates missing host blocks).
migrateStep-by-step migration guide from openclaw-honcho to Hermes Honcho.

hermes memory

hermes memory <subcommand>

Set up and manage external memory provider plugins. Available providers: honcho, openviking, mem0, hindsight, holographic, retaindb, byterover, supermemory. Only one external provider can be active at a time. Built-in memory (MEMORY.md/USER.md) is always active.

Subcommands:

SubcommandDescription
setupInteractive provider selection and configuration.
statusShow current memory provider config.
offDisable external provider (built-in only).

hermes acp

hermes acp

Starts Hermes as an ACP (Agent Client Protocol) stdio server for editor integration.

Related entrypoints:

hermes-acp
python -m acp_adapter

Install support first:

pip install -e '.[acp]'

See ACP Editor Integration and ACP Internals.

hermes mcp

hermes mcp <subcommand>

Manage MCP (Model Context Protocol) server configurations and run Hermes as an MCP server.

SubcommandDescription
serve [-v|--verbose]Run Hermes as an MCP server — expose conversations to other agents.
add <name> [--url URL] [--command CMD] [--args ...] [--auth oauth|header]Add an MCP server with automatic tool discovery.
remove <name> (alias: rm)Remove an MCP server from config.
list (alias: ls)List configured MCP servers.
test <name>Test connection to an MCP server.
configure <name> (alias: config)Toggle tool selection for a server.

See MCP Config Reference, Use MCP with Hermes, and MCP Server Mode.

hermes plugins

hermes plugins [subcommand]

Manage Hermes Agent plugins. Running hermes plugins with no subcommand launches an interactive curses checklist to enable/disable installed plugins.

SubcommandDescription
(none)Interactive toggle UI — enable/disable plugins with arrow keys and space.
install <identifier> [--force]Install a plugin from a Git URL or owner/repo.
update <name>Pull latest changes for an installed plugin.
remove <name> (aliases: rm, uninstall)Remove an installed plugin.
enable <name>Enable a disabled plugin.
disable <name>Disable a plugin without removing it.
list (alias: ls)List installed plugins with enabled/disabled status.

Disabled plugins are stored in config.yaml under plugins.disabled and skipped during loading.

See Plugins and Build a Hermes Plugin.

hermes tools

hermes tools [--summary]
OptionDescription
--summaryPrint the current enabled-tools summary and exit.

Without --summary, this launches the interactive per-platform tool configuration UI.

hermes sessions

hermes sessions <subcommand>

Subcommands:

SubcommandDescription
listList recent sessions.
browseInteractive session picker with search and resume.
export <output> [--session-id ID]Export sessions to JSONL.
delete <session-id>Delete one session.
pruneDelete old sessions.
statsShow session-store statistics.
rename <session-id> <title>Set or change a session title.

hermes insights

hermes insights [--days N] [--source platform]
OptionDescription
--days <n>Analyze the last n days (default: 30).
--source <platform>Filter by source such as cli, telegram, or discord.

hermes claw

hermes claw migrate [options]

Migrate your OpenClaw setup to Hermes. Reads from ~/.openclaw (or a custom path) and writes to ~/.hermes. Automatically detects legacy directory names (~/.clawdbot, ~/.moldbot) and config filenames (clawdbot.json, moldbot.json).

OptionDescription
--dry-runPreview what would be migrated without writing anything.
--preset <name>Migration preset: full (default, includes secrets) or user-data (excludes API keys).
--overwriteOverwrite existing Hermes files on conflicts (default: skip).
--migrate-secretsInclude API keys in migration (enabled by default with --preset full).
--source <path>Custom OpenClaw directory (default: ~/.openclaw).
--workspace-target <path>Target directory for workspace instructions (AGENTS.md).
--skill-conflict <mode>Handle skill name collisions: skip (default), overwrite, or rename.
--yesSkip the confirmation prompt.

What gets migrated

The migration covers 30+ categories across persona, memory, skills, model providers, messaging platforms, agent behavior, session policies, MCP servers, TTS, and more. Items are either directly imported into Hermes equivalents or archived for manual review.

Directly imported: SOUL.md, MEMORY.md, USER.md, AGENTS.md, skills (4 source directories), default model, custom providers, MCP servers, messaging platform tokens and allowlists (Telegram, Discord, Slack, WhatsApp, Signal, Matrix, Mattermost), agent defaults (reasoning effort, compression, human delay, timezone, sandbox), session reset policies, approval rules, TTS config, browser settings, tool settings, exec timeout, command allowlist, gateway config, and API keys from 3 sources.

Archived for manual review: Cron jobs, plugins, hooks/webhooks, memory backend (QMD), skills registry config, UI/identity, logging, multi-agent setup, channel bindings, IDENTITY.md, TOOLS.md, HEARTBEAT.md, BOOTSTRAP.md.

API key resolution checks three sources in priority order: config values → ~/.openclaw/.envauth-profiles.json. All token fields handle plain strings, env templates (${VAR}), and SecretRef objects.

For the complete config key mapping, SecretRef handling details, and post-migration checklist, see the full migration guide.

Examples

# Preview what would be migrated
hermes claw migrate --dry-run

# Full migration including API keys
hermes claw migrate --preset full

# Migrate user data only (no secrets), overwrite conflicts
hermes claw migrate --preset user-data --overwrite

# Migrate from a custom OpenClaw path
hermes claw migrate --source /home/user/old-openclaw

hermes profile

hermes profile <subcommand>

Manage profiles — multiple isolated Hermes instances, each with its own config, sessions, skills, and home directory.

SubcommandDescription
listList all profiles.
use <name>Set a sticky default profile.
create <name> [--clone] [--clone-all] [--clone-from <source>] [--no-alias]Create a new profile. --clone copies config, .env, and SOUL.md from the active profile. --clone-all copies all state. --clone-from specifies a source profile.
delete <name> [-y]Delete a profile.
show <name>Show profile details (home directory, config, etc.).
alias <name> [--remove] [--name NAME]Manage wrapper scripts for quick profile access.
rename <old> <new>Rename a profile.
export <name> [-o FILE]Export a profile to a .tar.gz archive.
import <archive> [--name NAME]Import a profile from a .tar.gz archive.

Examples:

hermes profile list
hermes profile create work --clone
hermes profile use work
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 -p work chat -q "Hello from work profile"

hermes completion

hermes completion [bash|zsh]

Print a shell completion script to stdout. Source the output in your shell profile for tab-completion of Hermes commands, subcommands, and profile names.

Examples:

# Bash
hermes completion bash >> ~/.bashrc

# Zsh
hermes completion zsh >> ~/.zshrc

Maintenance commands

CommandDescription
hermes versionPrint version information.
hermes updatePull latest changes and reinstall dependencies.
hermes uninstall [--full] [--yes]Remove Hermes, optionally deleting all config/data.

See also