hermes@agent:~/.hermes$ cat hermes.md

Hermes Agent:實務者參考指南(2026)

# Hermes Agent實務者參考指南,介紹Nous Research推出的開源自我改進AI代理:供應商驗證與OAuth、設定檔案、技能系統,以及如何將其作為跨平台訊息閘道執行。

words: 5019 read_time: 44m updated: 2026-07-02 14:29
$ less hermes.md

TL;DR:Hermes Agent是Nous Research推出的開源自我改進AI agent。它可以作為CLI執行,也能作為多平台訊息gateway;會在磁碟上儲存持久身分與永久記憶,彙整會隨使用而改進的skills,並可搭配任何OpenAI相容的LLM供應商使用,包括Nous Portal、OpenRouter、Anthropic、GitHub Copilot、z.ai、Kimi、MiniMax、DeepSeek、Qwen Cloud、Hugging Face、Google、xAI/SuperGrok,或您自行託管的endpoint。1219截至v0.14.0(2026年5月16日),Hermes新增SuperGrok OAuth,具備grok-4.3 1M context;加入可供OAuth供應商使用的OpenAI相容本機proxy(hermes proxy);正式支援x_search、PyPI安裝、lazy dependency installs、含LINE與SimpleX Chat在內的22個messaging platforms、/handoff、寫入後的LSP語意診斷、統一的video_generate、透過cua-driver為非Anthropic供應商提供computer_use、原生Windows beta,以及12項P0/50項P1收斂。19多數新使用者最難掌握的是供應商驗證:Hermes支援約20個一級供應商加上自訂endpoints,並有3種不同auth路徑(.env中的API key、透過hermes model使用OAuth,或在config.yaml中設定custom endpoint)。auth模型是最該優先理解的部分,因為後續一切都取決於最終解析到哪個供應商。

Hermes Agent運作方式是完整的agent runtime,不是chat wrapper。它會讀取您的檔案系統、在沙盒後端執行命令、擷取網頁、產生subagents、執行排程cron jobs、透過單一gateway process與Telegram/Discord/Slack/WhatsApp/Signal/Email溝通,並從經驗中建立自己的skills。1CLI是在run_agent.py中的conversation loop之上打造的terminal UI;gateway則是長時間執行的process,負責將messaging platforms的訊息路由到同一個conversation loop。3

一般使用與專家級Hermes使用的差異,取決於5個系統。掌握這些系統後,Hermes就會成為倍增器:

  1. Provider resolution:auth流程如何對應到API呼叫
  2. Configuration hierarchyconfig.yaml.envauth.jsonSOUL.mdAGENTS.md
  3. Tool+toolset system:agent能做什麼,並依平台控管
  4. Skills system:agent會建立並持續演進的程序性記憶
  5. Gateway+cron+profiles:讓Hermes在您實際工作的地方運作,而不只是在您所在的終端機裡

重點摘要

  • Provider auth有3條路徑,不是1條。.env中的API key、透過hermes model/hermes auth使用OAuth,或在config.yaml中設定custom endpoint。請選擇符合供應商的路徑,而不是選看起來熟悉的路徑。
  • 切換供應商只需要一個命令。hermes model會以互動方式引導您完成每個支援的供應商設定,包括OAuth登入;/model provider:model可在session中途切換,且不會遺失歷史紀錄。2
  • 使用者可編輯的設定介面集中在兩個檔案。~/.hermes/config.yaml存放設定,~/.hermes/.env存放secrets。auth.jsonSOUL.mdMEMORY.mdskills/由Hermes直接管理;您可以手動編輯SOUL.md,但其餘項目會由agent本身處理。4
  • Hermes是OpenClaw的後繼者。若正在遷移,hermes claw migrate會自動匯入30多類狀態。5
  • 服務品質取決於您的auxiliary model。Vision、web summarization、compression與memory flush都會使用獨立的auxiliary LLM。預設會透過自動偵測使用Gemini Flash(OpenRouter→Nous→Codex);若未設定其中任一項,這些功能會靜默降級,直到您將auxiliary slots指向主要供應商為止。4

v0.14變更內容

v0.14.0與其說是單一主打功能,不如說是在擴大Hermes可執行範圍的同時,降低設定阻力。19主要操作面變更如下:

  • 安裝與啟動更輕量。pip install hermes-agent可從PyPI安裝,heavy adapters會在首次使用時lazy-install,啟動路徑也延後足夠多的工作,使cold start約縮短19秒。
  • 訂閱可以變成本機API endpoints。hermes proxy會把Claude Pro、ChatGPT Pro、SuperGrok等以OAuth支援的供應商,轉成本機OpenAI相容endpoint,供Codex、Aider、Cline與Continue等工具使用。
  • Gateway涵蓋範圍擴大。LINE與SimpleX Chat讓平台數量來到22個;Microsoft Teams已完成端到端串接;Discord history backfill預設啟用;Telegram/Discord的clarify提示現在會使用原生按鈕。
  • 寫入時驗證能力提升。編輯後,Hermes可以在下一輪之前顯示每輪的file-mutation摘要與language-server語意診斷,讓它更接近以證據驅動的agent工作方式。
  • 桌面與媒體工具範圍擴大。computer_use會透過cua-driver支援非Anthropic供應商;video_generate統一由可插拔後端提供;vision_analyze會將原始pixels傳給真正能看見影像的models。

以下每個章節皆以hermes-agent.nousresearch.com/docs的上游文件,以及github.com/NousResearch/hermes-agent的source tree為依據。每項事實聲明都有footnote指向其來源的特定上游頁面。

選擇您的路徑

您需要什麼 前往這裡
安裝Hermes Installation — 一行安裝程式或手動步驟
登入供應商 Authentication & Providers — 這就是您來看的章節
在session中途切換models The hermes auth CommandCustom & Self-Hosted Endpoints,了解/model語法
執行本機LLM Custom & Self-Hosted Endpoints — Ollama、vLLM、SGLang、llama.cpp、LM Studio
連接messaging platforms Messaging Gateway — Telegram、Discord、Slack、WhatsApp、Signal、Google Chat、LINE、SimpleX Chat(共22個)
撰寫或安裝skill Skills System — progressive disclosure+skill hub
深入參考每個CLI命令 繼續閱讀,並直接連到CLI Commands

Hermes如何運作:Mental Model

Hermes圍繞單一對話迴圈建構,任何進入點都能呼叫。進入點包括CLI(cli.py)、messaging gateway(gateway/run.py)、用於編輯器整合的ACP adapter、batch runner,以及API伺服器。3它們最終都會呼叫run_agent.py中的AIAgent.run_conversation(),其流程如下:

  1. 透過prompt_builder.py,從SOUL.mdMEMORY.mdUSER.md、skills、context files和工具指引建立system prompt3
  2. 透過runtime_provider.py解析runtime provider——這一步會選定您的auth、base URL和API模式3
  3. 使用3種API模式之一呼叫provider:chat_completionscodex_responsesanthropic_messages3
  4. 透過model_tools.py和中央tool registry(tools/registry.py)派發任何回傳的tool calls3
  5. 持續迴圈,直到模型產生最終回應,接著將session持久化到帶有FTS5的SQLite3

理解這個迴圈很重要,因為每項功能——personalities、memory、skills、compression、fallback——都會附著在其中某個階段。當您閱讀某個config key並想知道它的用途時,答案通常是:「它是上方迴圈第1、2、3或4階段的一個調節旋鈕。」

平台無關核心。單一AIAgent類別服務CLI、gateway、ACP、batch和API伺服器。平台差異存在於進入點,而非agent本身。3這就是為什麼相同的slash commands能在終端機和Telegram中運作——它們都是從hermes_cli/commands.py中的共享COMMAND_REGISTRY派發。6

目錄結構就是系統。Hermes會將所有內容儲存在~/.hermes/之下(非預設profiles則使用$HERMES_HOME):4

~/.hermes/
├── config.yaml        # Settings (model, terminal, TTS, compression, etc.)
├── .env               # API keys and secrets
├── auth.json          # OAuth provider credentials (Nous Portal, Codex, Anthropic)
├── SOUL.md            # Primary agent identity (slot #1 in system prompt)
├── memories/          # Persistent memory (MEMORY.md, USER.md)
├── skills/            # Bundled + agent-created + hub-installed skills
├── cron/              # Scheduled jobs
├── sessions/          # Gateway session state
└── logs/              # agent.log, gateway.log, errors.log (secrets auto-redacted)

上方每個檔案都有明確角色,彼此沒有重疊。若您在找「Hermes把X存在哪裡」,答案就在其中之一。


v0.18.0的新功能(The Judgment Release)

Hermes Agent v0.18.0(tag v2026.7.1,2026年7月1日)以judgment命名:agent會驗證自己的工作,而不是宣稱成功;同時提供您實際可檢視的ensemble reasoning。此版本也關閉了整個P0/P1 backlog——約692個最高優先級項目在12天內解決。22

  • Mixture-of-Agents成為一級模型。MoA現在可像任何其他模型一樣,在所有介面中選用;ensemble reasoning也變得可見:每個reference model的完整輸出都會以獨立標記區塊呈現,並即時串流答案——您可以觀看ensemble思考,而不是得到不透明的合併答案。22
  • /goal的completion contracts。agent會先執行專案檢查,驗證自己的工作,再回報goal完成,而不是直接宣稱成功——把judgment用在自己身上。22
  • /learn——把任何描述轉成skill。只要描述workflow,就能將其轉成可重複使用的skill;產生的skills會自動符合repo的CONTRIBUTING.md慣例。22
  • /journey時間軸。以視覺方式呈現memory和skills隨時間變化的歷史,支援編輯,桌面版另有memory graph。22
  • Background subagent fan-out。可委派多個並行執行的任務,且不會阻塞對話——v0.17.0的單一background subagent擴展為一整個fleet。22
  • Desktop Projects。提供一級coding Projects,採用project/repo/lane的組織模型。22
  • Scale-to-zero gateway。Gateways可在閒置時休眠,並協調drains以達成無縫部署——對任何把Hermes當作常駐服務運行的人都很有意義。22
  • Google Vertex AI支援。透過GCP service accounts存取Gemini,並自動重新整理OAuth2 token,加入provider catalog。22
  • /prompt editor command。開啟$EDITOR來撰寫多行prompts,不必再和輸入列苦戰。22

如果您正從v0.17.x升級,這裡沒有任何會破壞CLI的變更。升級的主要理由是completion contracts(會自我驗證的goals)、具備可檢視ensembles的一級MoA,以及用於skill capture的/learn


v0.17.0的新功能(The Reach Release)

Hermes Agent v0.17.0(tag v2026.6.19,2026年6月19日)以agent如今能觸及的範圍命名——新的messaging channels、新的model providers,以及更深入的desktop和dashboard控制。它是在v0.16.x之上的增量更新;CLI介面維持不變。21

  • 新的messaging channels。iMessage現在透過Photon Spectrum即可運作,不需要Mac relay(device-code OAuth、hermes photon login);WhatsApp Business Cloud API是官方Meta adapter,取代bridge-process需求;SimpleX新增groups、native attachments、text batching和auto-accept;Raft則作為內建platform plugin加入,採用privacy-by-contract wake-channel設計。21
  • 新的models和providers。catalog新增z-ai/glm-5.2(1M context)、anthropic/claude-fable-5laguna-m.1nemotron-3-ultragrok-composer-2.5-fast(透過xAI OAuth使用Cursor的model,200k context)。xAI預設值移至grok-build-0.1,且Anthropic adaptive models現在遵循現代thinking contract(它們永遠不會傳送reasoning欄位)。21
  • Desktop和dashboard。Desktop新增background subagents,可透過即時「watch-windows」串流委派活動(delegate_task(background=true))、Composer model selector、可重新綁定的keyboard shortcuts、原生OS notifications、per-thread composer drafts、VS Code Marketplace themes,以及日文+繁體中文UI。dashboard新增完整profile builder(不用編輯config.yaml即可設定model/skills/MCPs)、global profile switcher、重做的Skills Hub並包含security scan、Automation Blueprints(橫跨form、slash command、conversation和docs的參數化templates),以及在OAuth gate後方會回傳401的secure login。21
  • Skills和tools。image_generate現在不只可從零建立影像,也能在每個受支援的image provider中編輯和轉換來源影像;memory工具新增operations陣列,可在單一呼叫中進行atomic batch add/replace/remove;新的simplify-code skill會執行parallel three-agent review-and-cleanup pass,並以Chesterton’s-Fence risk tier把關;boolean write_approval取代tri-state write_mode21
  • Architecture。Background subagents會立即回傳handle,並將其結果作為新turn重新進入;MCP elicitation handler允許mid-tool-call confirmation,而延後連線的MCP tools會在turns之間公開(cache-safe);cron成為可插拔CronScheduler,並提供Chronos managed-cron provider;新的Managed scope/etc/hermes)讓管理員可以釘選使用者不可變更的config,並搭配Gateway-Gateway relay支援multi-gateway topologies。21
  • 新commands。/version/billing(interactive terminal billing)、hermes photon login(iMessage auth)和hermes curator run --consolidate——consolidation現在為opt-in,因此例行background curation不會消耗token。21
  • Security。v0.17.0修補shell-escape denylist bypass;在缺少approval modules和own-policy gateway adapters時採fail closed;為cron job-script subprocesses清理environment;在request debug dumps中遮蔽secrets;篩檢MCP stdio configs中的exfil patterns;並升級urllib3和PyJWT以清除CVEs。21

如果您正從v0.16.x升級,這裡沒有任何會破壞CLI的變更;它是在相同agent周邊新增channels、models和surfaces。免relay的iMessage、官方WhatsApp adapters,以及管理員用的Managed scope,是升級的主要理由。


v0.16.0 新增內容(The Surface Release)

Hermes Agent v0.16.0(標籤 v2026.6.5,2026年6月5日)以它放在 CLI 優先 agent 前方的新操作介面命名。重點是 Hermes 不再只限於終端機使用。20

  • 原生桌面應用程式。 Hermes Desktop 是全新的 Electron 應用程式,支援 macOS、Linux 和 Windows,提供一鍵安裝與應用程式內自我更新。它提供串流聊天視窗、拖放檔案、剪貼簿圖片貼上、Cmd+K 指令面板、具備封存與搜尋功能的工作階段清單,以及狀態列模型選擇器。它可以透過安全的 WebSocket 連線到遠端 Hermes gateway,並透過 OAuth 或使用者名稱/密碼驗證;也支援每個 profile 設定遠端主機,以及透過跨 profile @session 參照串連的多 profile 並行工作階段。桌面 UI 也透過型別化 i18n 層(display.language;英文仍為預設值)內建完整的簡體中文翻譯。20
  • 瀏覽器管理面板。 本機網頁 dashboard 已從狀態檢視升級為完整管理面板:包含 MCP 目錄與啟用/停用切換、憑證管理、webhook 與 hook 建立、記憶體設定、gateway 控制,以及具備更新前檢查與一鍵 Debug Share 的 System 頁面。新的 Channels 頁面可從瀏覽器設定每個 gateway 訊息平台(Telegram、Discord、Slack 及其他平台)。驗證現在可插拔:使用者名稱/密碼登入、通用自架 OIDC provider、用於自架 OAuth client 的 hermes dashboard register,以及 refresh-token 工作階段輪替。20
  • 新的 CLI 與 slash commands。 /undo [N] 會備份最後 N 個使用者回合,支援預填與軟刪除,並可在 CLI、TUI 及各訊息平台上運作。可設定的預設介面(clitui)已加入,並提供 --cli 覆寫;TUI 新增統一的 /model 指令與 Sessions overlay。hermes portal 是 Nous Portal onboarding 流程的人類可讀別名,新增首次執行的 Quick Setup 與 Full Setup 路徑,並加入兩個診斷工具:hermes prompt-sizehermes sessions optimize20
  • 新的模型與 providers。 選擇器新增 deepseek-v4-flashMiniMax-M3(1M context、原生 MiniMax providers)、qwen3.7-plus(Nous + OpenRouter)和 gemini-3.5-flash(Gemini OAuth + API key)。第一級 xAI Grok OAuth provider 加入桌面啟動器;模型選擇器在所有介面都支援模糊搜尋,多 endpoint providers 會彙整在同一列,目錄重新整理也從每日改為每小時。20
  • 更精簡的 skills 與漸進式揭露。 預設 skill 集移除了重複與停用的 skills(Spotify 移至原生 plugin,Linear 移至 hermes mcp install linear,並移除數個過時項目),將更多內容改為選用,並新增 environments: frontmatter 相關性閘門(kanban/docker/s6),讓特定情境 skills 在被請求前不會進入索引。NVIDIA/skills 現在與 OpenAI、Anthropic、HuggingFace 並列為預設信任的 Skills Hub tap。MCP 與 plugin tools 新增漸進式(範圍限定)tool 揭露,並修正一個 MCP bug:在未取得 token 時卻回報 OAuth 成功。20
  • 安全性。 v0.16.0 鎖定已修補的 Starlette(≥1.0.1)以處理 CVE-2026-48710(BadHost),在 async 路徑中將 SSRF URL 檢查移出 event loop,從 subprocess env 移除 Bedrock 推論 bearer token,將 bws_cache.json 加入檔案安全讀取防護,將 docker restart/stop/kill 加入危險模式清單,並清理已審核 skill 內容中的不可見 Unicode。此版本修復了 2 個 P0 和 62 個 P1 問題,其中 16 個帶有安全性標籤。20

如果您是從 v0.15.x 升級,這些變更都不會破壞 CLI 本身;它們是在同一個 agent 周邊新增介面與 providers。若您想讓非終端機使用者執行 Hermes,或從瀏覽器管理遠端 gateway,桌面應用程式與管理面板就是升級主因。


安裝

單行安裝程式仍是大多數使用者的建議引導路徑。它會處理 Python、uv、Node.js、ripgrep、ffmpeg、repo clone、virtual environment,以及全域 hermes 指令。7 v0.14.0 也提供真正的 PyPI package,因此當您已能控制 Python 環境時,pip install hermes-agent 現在也是可行的直接安裝方式。19

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
pip install hermes-agent
hermes

支援 Linux、macOS、WSL2 和 Android/Termux(安裝程式會自動偵測 Termux,並切換到已測試的 Android bundle)。7 v0.14.0 透過 PowerShell 安裝程式加入早期 beta 的原生 Windows 支援,但在 Windows 路徑更成熟之前,正式環境仍建議使用 WSL2,會更穩妥。19

完成後:

source ~/.bashrc    # or ~/.zshrc
hermes              # Start chatting

唯一前置需求是 git。安裝程式會透過 uv 自動配置 Python 3.11(不需要 sudo)、Node.js v22(用於瀏覽器自動化與 WhatsApp bridge)、ripgrep 和 ffmpeg。7

驗證安裝

hermes version      # Check version
hermes doctor       # Diagnose config/dependency issues
hermes status       # Show current configuration + auth state
hermes dump         # Copy-pasteable setup summary for debugging

hermes doctor 會明確告訴您缺少什麼,以及如何修正。7 尋求協助時,hermes dump 是可貼到 GitHub issue 或 Discord 討論串的診斷指令;它會以純文字摘要呈現整個設定,並遮蔽 secrets。8

手動安裝

如果您需要完整控制權,例如自訂 Python 版本、指定 extras,或整合 Nix/NixOS,上游安裝指南已逐步記載手動流程。7 可與 uv pip install -e ".[<extras>]" 搭配的主要選用 extras 如下:

Extra 新增內容
all 下列全部內容
messaging Telegram 與 Discord gateway
cron Cron expression 解析
cli 設定精靈的終端機選單 UI
modal Modal 雲端執行後端
voice CLI 麥克風輸入 + 音訊播放
tts-premium ElevenLabs premium voices
honcho AI-native memory(Honcho 整合)
mcp Model Context Protocol 支援
homeassistant Home Assistant 整合
acp ACP editor 整合支援
slack Slack 訊息
pty PTY 終端機支援(互動式 CLI tools)
dev pytest 與測試工具
termux 已測試的 Android bundle(包含 croncliptymcphonchoacp

Termux 安裝指令不同,它使用帶有 constraints file 的 pip,而不是 uv pip

python -m pip install -e ".[termux]" -c constraints-termux.txt

這是因為 Android 上的 .[all] 會透過 voice extra 拉入 faster-whisper,而它依賴的 ctranslate2 wheels 並未發布 Android 版本。7


驗證與 Providers

Hermes 支援約 19 個第一級 providers 加上自訂端點,並提供 3 種不同的驗證路徑。以下整理完整的驗證範圍,依路徑分類,方便您找到符合手上設定的方式。

3 種驗證路徑

Hermes 中的每個 provider 都屬於以下 3 種驗證模式之一:

路徑 1 — .env 中的 API key。 將您的 key 放入 ~/.hermes/.env,Hermes 會在啟動時讀取。OpenRouter、AI Gateway、z.ai/GLM、Kimi/Moonshot、MiniMax(以及 MiniMax China)、Alibaba Cloud/DashScope、Kilo Code、OpenCode Zen、OpenCode Go、DeepSeek、Hugging Face、Google/Gemini,以及多數第三方 providers 都使用此方式。2

路徑 2 — 透過 hermes modelhermes auth 使用 OAuth。 這會啟動裝置代碼流程、開啟瀏覽器,並將憑證儲存在 ~/.hermes/auth.json(也可從 Claude Code 或 Codex CLI 等工具匯入既有憑證)。Nous Portal、OpenAI Codex(ChatGPT 帳號)、GitHub Copilot,以及 Anthropic(Claude Pro/Max)都使用此方式。2

路徑 3 — config.yaml 中的自訂端點。 適用於任何 OpenAI 相容的 API,例如 Ollama、vLLM、SGLang、llama.cpp、LM Studio、LiteLLM proxy、Together AI、Groq、Azure OpenAI,或您自行託管的伺服器。透過 hermes model → Custom endpoint 設定一次後,就會持久儲存到 config.yaml2

完整 Provider 矩陣

以下是第一級 providers 的完整清單,並列出每個 provider 的確切設定流程。2

Provider 驗證路徑 設定
Nous Portal OAuth hermes model(OAuth 登入,訂閱制)
OpenAI Codex OAuth hermes model(ChatGPT 裝置代碼,使用 Codex models)
GitHub Copilot OAuth 或 token hermes model(OAuth 裝置代碼),或 COPILOT_GITHUB_TOKEN / GH_TOKEN / gh auth token
GitHub Copilot ACP 本機子行程 hermes model(需要 PATH 中有 copilot CLI + copilot login
Anthropic OAuth 或 API key hermes model(優先使用 Claude Code 憑證),或 ANTHROPIC_API_KEY,或 ANTHROPIC_TOKEN setup-token
OpenRouter API key ~/.hermes/.env 中的 OPENROUTER_API_KEY
AI Gateway (Vercel) API key ~/.hermes/.env 中的 AI_GATEWAY_API_KEY(provider: ai-gateway
z.ai / GLM (ZhipuAI) API key ~/.hermes/.env 中的 GLM_API_KEY(provider: zai
Kimi / Moonshot API key ~/.hermes/.env 中的 KIMI_API_KEY(provider: kimi-coding
MiniMax (global) API key ~/.hermes/.env 中的 MINIMAX_API_KEY(provider: minimax
MiniMax China API key ~/.hermes/.env 中的 MINIMAX_CN_API_KEY(provider: minimax-cn
Alibaba Cloud (Qwen) API key ~/.hermes/.env 中的 DASHSCOPE_API_KEY(provider: alibaba,aliases: dashscopeqwen
Kilo Code API key ~/.hermes/.env 中的 KILOCODE_API_KEY(provider: kilocode
OpenCode Zen API key ~/.hermes/.env 中的 OPENCODE_ZEN_API_KEY(provider: opencode-zen
OpenCode Go API key ~/.hermes/.env 中的 OPENCODE_GO_API_KEY(provider: opencode-go
DeepSeek API key ~/.hermes/.env 中的 DEEPSEEK_API_KEY(provider: deepseek
Hugging Face API key ~/.hermes/.env 中的 HF_TOKEN(provider: huggingface,alias: hf
Google / Gemini API key ~/.hermes/.env 中的 GOOGLE_API_KEYGEMINI_API_KEY(provider: gemini
xAI (Grok) 原生 provider / SuperGrok OAuth 第一級 provider,具備直接 API 存取與 model catalog(v0.9.0+)。v0.14.0 加入 SuperGrok OAuth,並將符合資格帳號的 grok-4.3 提升至 1M context window。21619 v0.17.0 加入 grok-composer-2.5-fast(透過 xAI OAuth 使用 Cursor 的 model,200k context),並將 xAI 預設值改為 grok-build-0.121
xAI Custom Voices API key 具備 voice cloning 的 TTS provider。v0.13.0 新增;在 config.yamltts: 下設定,並於 .env 提供 xAI key。18
Xiaomi MiMo 原生 provider 第一級 provider,具備設定精靈與 model catalog。Nous Portal 上免費的 MiMo v2 Pro 可用於輔助任務(v0.9.0+)。1615
Google AI Studio API key ~/.hermes/.env 中的 GOOGLE_API_KEYGEMINI_API_KEY。透過 models.dev registry 自動偵測 context 長度,直接存取 Gemini(v0.8.0+)。15
Qwen Cloud OAuth 支援 portal request 的 OAuth provider(v0.8.0+)。此 provider 在 v0.14.0 從 Alibaba Cloud 重新命名為 Qwen Cloud;既有 config keys 仍可繼續運作。1519
Custom endpoint config.yaml hermes model → “Custom endpoint”(儲存在 config.yaml

Anthropic:3 種驗證方法

Anthropic 需要獨立說明,因為 Hermes 支援 3 種不同路徑進入 Claude,選對方式很重要。根據上游文件:2

# Method 1: API key (pay-per-token)
export ANTHROPIC_API_KEY=***
hermes chat --provider anthropic --model claude-sonnet-4-6

# Method 2: OAuth through hermes model (preferred)
# Uses Claude Code's credential store when available
hermes model

# Method 3: Manual setup-token (fallback/legacy)
export ANTHROPIC_TOKEN=***
hermes chat --provider anthropic

# Auto-detect Claude Code credentials
hermes chat --provider anthropic   # reads Claude Code files automatically

透過 hermes model 選擇 Anthropic OAuth 時,Hermes 會優先使用 Claude Code 自己的憑證儲存區,而不是將 token 複製到 ~/.hermes/.env。這能讓可重新整理的 Claude 憑證維持可重新整理。2 如果您已在同一台機器上使用 Claude Code,這是最乾淨俐落的路徑。

若要在 config.yaml 中永久固定 Anthropic:

model:
  provider: "anthropic"
  default: "claude-sonnet-4-6"

--provider claude--provider claude-code 也可作為 --provider anthropic 的簡寫。2

GitHub Copilot:兩種模式

Copilot 支援兩種模式:直接 Copilot API(建議)與 Copilot ACP(會將本機 Copilot CLI 產生為子行程)。2

# Direct Copilot API
hermes chat --provider copilot --model gpt-5.4

# Copilot ACP (requires the Copilot CLI in PATH + an existing copilot login)
hermes chat --provider copilot-acp --model copilot-acp

根據上游文件,驗證會依以下順序檢查:2 1. COPILOT_GITHUB_TOKEN 環境變數 2. GH_TOKEN 環境變數 3. GITHUB_TOKEN 環境變數 4. gh auth token CLI 後備 5. 透過 hermes model 進行 OAuth 裝置代碼登入

Token 類型很重要。 Copilot API 不支援 classic Personal Access Tokens(ghp_*)。支援的類型包括 OAuth tokens(gho_*)、fine-grained PATs(具備 Copilot Requests 權限的 github_pat_*),以及 GitHub App tokens(ghu_*)。如果您的 gh auth token 回傳 ghp_* token,請改用 hermes model 透過 OAuth 驗證。2

中國 AI Providers(第一級支援)

Hermes 內建支援 z.ai/GLM、Kimi/Moonshot、MiniMax(global + China endpoints),以及具備專用 provider IDs 的 Alibaba Cloud。2

# z.ai / ZhipuAI GLM
hermes chat --provider zai --model glm-5                 # Requires: GLM_API_KEY

# Kimi / Moonshot AI
hermes chat --provider kimi-coding --model kimi-for-coding   # Requires: KIMI_API_KEY

# MiniMax (global)
hermes chat --provider minimax --model MiniMax-M2.7          # Requires: MINIMAX_API_KEY

# MiniMax (China)
hermes chat --provider minimax-cn --model MiniMax-M2.7       # Requires: MINIMAX_CN_API_KEY

# Alibaba Cloud / DashScope (Qwen)
hermes chat --provider alibaba --model qwen3.5-plus          # Requires: DASHSCOPE_API_KEY

Base URLs 可透過 GLM_BASE_URLKIMI_BASE_URLMINIMAX_BASE_URLMINIMAX_CN_BASE_URLDASHSCOPE_BASE_URL 環境變數覆寫。2

Z.AI 會自動偵測端點。 使用 z.ai/GLM provider 時,Hermes 會探測多個端點(global、China、coding variants),找出接受您 API key 的端點。可用端點會自動快取;多數使用者不需要設定 GLM_BASE_URL2

xAI (Grok) 會自動啟用 prompt caching。 當 base URL 包含 x.ai 時,Hermes 會在每個 request 中送出 x-grok-conv-id header,將同一個對話 session 路由到同一台伺服器,重用已快取的 system prompts 與歷史紀錄。2 這會自動運作,無需設定。

hermes auth 指令

hermes auth 是用於 pools 與 OAuth 憑證的憑證管理指令。6

hermes auth                              # Interactive wizard
hermes auth list                         # Show all credential pools
hermes auth list openrouter              # Show one provider's pool
hermes auth add openrouter --api-key sk-or-v1-xxx
hermes auth add anthropic --type oauth
hermes auth remove openrouter 2          # Remove by index
hermes auth reset openrouter             # Clear cooldowns

Credential pools 可讓您為同一個 provider 輪替多個 API keys 或 OAuth tokens。這對於在多個 keys 之間分散 rate limits 很有用,而且不需要修改程式碼。6 舊版 hermes login / hermes logout 指令已移除;請改用 hermes auth6

自訂與自行託管端點

Hermes 可搭配任何 OpenAI 相容的 API 端點運作。只要伺服器實作 /v1/chat/completions,就能讓 Hermes 指向它。2

互動式設定(建議):

hermes model
# Select "Custom endpoint (self-hosted / VLLM / etc.)"
# Enter: API base URL, API key, Model name

手動 config.yaml

model:
  default: your-model-name
  provider: custom
  base_url: http://localhost:8000/v1
  api_key: your-key-or-leave-empty-for-local

兩種方式都會持久儲存到 config.yaml,它是 main-model、provider 與 base URL 的單一事實來源。2 舊版 env vars OPENAI_BASE_URLLLM_MODEL 已不再用於 main-model 設定;請使用 hermes model,或直接編輯 config.yaml2OPENAI_BASE_URL + OPENAI_API_KEY 仍會作為輔助 provider: "main" routing path 的後備,因此如果您在那裡使用它們,請不要貿然刪除。)4

在 session 途中切換自訂端點:

/model custom:qwen-2.5             # Custom endpoint with explicit model
/model custom                      # Auto-detect the model from the endpoint
/model custom:local:qwen-2.5       # Named custom provider "local"
/model custom:work:llama3          # Named custom provider "work"
/model openrouter:claude-sonnet-4  # Back to a cloud provider

/model custom(單獨使用,不帶 model name)會查詢您端點的 /v1/models API;若只載入 1 個 model,就會自動選取該 model。這對執行單一 model 的本機伺服器很實用。2

本機 LLM 伺服器(設定範本)

上游文件提供 Ollama、vLLM、SGLang、llama.cpp 和 LM Studio 的完整設定指南。以下是您實際會執行的關鍵指令。每個範本都設計成會產生可供 Hermes 指向的可用端點。2

Ollama — 最簡單的本機路徑,零設定:

ollama pull qwen2.5-coder:32b
OLLAMA_CONTEXT_LENGTH=32768 ollama serve   # Raise from 4k default
hermes model   # Custom endpoint → http://localhost:11434/v1 → qwen2.5-coder:32b

Ollama 關鍵陷阱: Ollama 預設 context 長度非常低(24GB VRAM 以下為 4,096 tokens)。您必須透過 OLLAMA_CONTEXT_LENGTH 或 Modelfile 提高它;OpenAI 相容的 API 不會接受 client 端傳入的 context length,因此 Hermes 無法替您設定。2 若用於 agent,請至少設為 16k–32k。

vLLM — 高效能 GPU serving:

pip install vllm
vllm serve meta-llama/Llama-3.1-70B-Instruct \
  --port 8000 \
  --max-model-len 65536 \
  --tensor-parallel-size 2 \
  --enable-auto-tool-choice \
  --tool-call-parser hermes

Tool calling 需要 --enable-auto-tool-choice--tool-call-parser <name>。支援的 parsers:hermes(Qwen 2.5、Hermes 2/3)、llama3_jsonmistraldeepseek_v3deepseek_v31xlampythonic。沒有這些 flags 時,tool calls 會以純文字形式回傳。2

SGLang — 使用 RadixAttention 進行 KV cache 重用的快速 serving:

pip install "sglang[all]"
python -m sglang.launch_server \
  --model meta-llama/Llama-3.1-70B-Instruct \
  --port 30000 \
  --context-length 65536 \
  --tp 2 \
  --tool-call-parser qwen

SGLang 陷阱: 預設 max_tokens 是 128。如果回應被截斷,請在伺服器上設定 --default-max-tokens,或在 config.yaml 中設定 model.max_tokens2

llama.cpp / llama-server — CPU 與 Apple Silicon Metal:

./build/bin/llama-server \
  --jinja -fa \
  -c 32768 \
  -ngl 99 \
  -m models/qwen2.5-coder-32b-instruct-Q4_K_M.gguf \
  --port 8080 --host 0.0.0.0

tool calling 必須使用 --jinja 沒有它時,llama-server 會完全忽略 tools 參數,model 會嘗試在回應文字中寫入 JSON 來呼叫工具,而 Hermes 無法將其解析為真正的 tool calls。2

LM Studio — 具備 GUI 的桌面應用程式:

從 LM Studio app 啟動伺服器(Developer tab → Start Server),或透過 CLI:lms server start(在 port 1234 啟動)和 lms load qwen2.5-coder --context-length 327682 接著讓 hermes model 指向 http://localhost:1234/v1

LM Studio 關鍵陷阱: LM Studio 會從 model metadata 讀取 context length,但許多 GGUF models 會回報 2048 或 4096 的預設值。請務必在 LM Studio model settings 中明確設定 context length:點選 model picker 旁的齒輪圖示,將 “Context Length” 設為至少 16384(最好是 32768),然後重新載入 model。2

具名自訂 Providers

如果您使用多個自訂端點(例如本機開發伺服器和遠端 GPU 伺服器),請在 config.yaml 中將它們定義為具名 custom providers:2

custom_providers:
  - name: local
    base_url: http://localhost:8080/v1
    # api_key omitted — Hermes uses "no-key-required" for keyless local servers
  - name: work
    base_url: https://gpu-server.internal.corp/v1
    api_key: corp-api-key
    api_mode: chat_completions      # optional, auto-detected from URL
  - name: anthropic-proxy
    base_url: https://proxy.example.com/anthropic
    api_key: proxy-key
    api_mode: anthropic_messages    # for Anthropic-compatible proxies

接著可在 session 途中用三段式語法切換:

/model custom:local:qwen-2.5
/model custom:work:llama3-70b
/model custom:anthropic-proxy:claude-sonnet-4

您也可以從互動式 hermes model 選單選取具名 custom providers。2

可插拔 Provider 架構(v0.13.0+)

v0.13.0 提供 ProviderProfile ABCplugins/model-providers/ 目錄,讓第三方 inference providers 無需修改核心即可接入。18 如果某個 provider 支援 OpenAI、Anthropic 或 Codex 相容的 API 模式,您可以實作 ProviderProfile 子類別,宣告驗證路徑、base URL、model catalog 與 caching headers;Hermes 會透過內建 providers 也使用的相同 runtime_provider.py 路徑解析它。這正是 v0.13.0 provider 擴充背後的架構變更:新增 provider 不再需要編輯核心程式碼,而是發布 plugin。

OpenAI 相容本機 Proxy(v0.14.0+)

hermes proxy 會公開 OpenAI 相容的本機端點,其後端是 Hermes 已登入的 OAuth provider,例如 Claude Pro、ChatGPT Pro、SuperGrok,或其他相容且已設定的 provider。19 這代表期待 OpenAI-style API 的工具,包括 Codex CLI、Aider、Cline、Continue 或自訂 scripts,都能重用您由訂閱支援的 Hermes auth,而不需要另外的 API key。請將此 proxy 視為本機開發基礎設施:有意識地綁定它,不要廣泛公開,並留意 provider 特定條款。

Context Length 偵測

根據上游文件,以下兩個設定經常被混淆:2

  • context_length — 總 context window(輸入 + 輸出 token 預算合計,例如 Claude Opus 4.7 的 1,000,000,或 Sonnet 4.6 的 200,000)。Hermes 會用它判斷何時壓縮歷史紀錄。
  • model.max_tokens — 輸出上限(model 在單一回應中最多可產生的 tokens)。這與歷史長度無關。

當自動偵測得到錯誤的 window size 時,請設定 context_length

model:
  default: "qwen3.5:9b"
  base_url: "http://localhost:8080/v1"
  context_length: 131072      # tokens

Hermes 使用多來源解析鏈偵測 context windows:config override → custom provider per-model → persistent cache → endpoint /models → Anthropic /v1/models → OpenRouter API → Nous Portal → models.dev(社群維護、涵蓋 3800+ models 的 registry)→ fallback defaults(128K)。2 此系統具備 provider-aware 能力,因此同一個 model 依 serving provider 不同,可能有不同的 context limits(例如 claude-opus-4.6 在 Anthropic direct 是 1M,但在 GitHub Copilot 是 128K)。2

Provider Rotation 與 Fallback

Credential pools。 當您對同一個 provider 有多個 API keys 時,可透過 hermes auth 設定 rotation strategy。這就是在多個 keys 之間分散 rate limits 的方式。6

Fallback model。 設定備用 provider:model,當 primary model 失敗時(rate limits、server errors、auth failures),Hermes 會自動切換過去:2

fallback_model:
  provider: openrouter            # required
  model: anthropic/claude-sonnet-4  # required
  # base_url: http://localhost:8000/v1    # optional, for custom endpoints
  # api_key_env: MY_CUSTOM_KEY           # optional, env var name

Fallback 會在 session 途中切換 model 與 provider,但不會遺失您的對話。每個 session 最多觸發一次。2 支援 fallback 的 providers:openrouternousopenai-codexcopilotcopilot-acpanthropichuggingfacezaikimi-codingminimaxminimax-cndeepseekai-gatewayopencode-zenopencode-gokilocodealibabacustom2

輔助 Models

Hermes 會使用輕量級「輔助」models 處理附帶任務:image analysis、web page summarization、browser screenshot analysis、dangerous command approval classification、context compression、session search summarization、skill matching、MCP tool dispatch,以及 memory flush。4 預設會透過自動偵測使用 Gemini Flash(OpenRouter → Nous → Codex)。

您可以設定每個輔助任務使用哪個 model 與 provider。 每個 auxiliary slot 都使用相同 3 個旋鈕:providermodelbase_url4

auxiliary:
  vision:
    provider: "auto"                # "auto", "openrouter", "nous", "codex", "main", etc.
    model: ""                       # e.g. "openai/gpt-4o", "google/gemini-2.5-flash"
    base_url: ""                    # Custom OpenAI-compatible endpoint
    api_key: ""                     # Falls back to OPENAI_API_KEY
    timeout: 30
    download_timeout: 30
  web_extract:
    provider: "auto"
    model: ""
    timeout: 360
  approval:
    provider: "auto"
    model: ""
    timeout: 30
  compression:
    timeout: 120
  session_search: { provider: "auto", model: "", timeout: 30 }
  skills_hub:    { provider: "auto", model: "", timeout: 30 }
  mcp:           { provider: "auto", model: "", timeout: 30 }
  flush_memories:{ provider: "auto", model: "", timeout: 30 }

"main" provider 選項代表「使用我的 main agent 正在使用的任何 provider」;它能用在 auxiliary:compression:fallback_model: 設定中。它不能用於頂層 model.provider 設定。如果您使用自訂 OpenAI-compatible endpoint 作為 main model,請在 model: 區段中設定 provider: custom4

為什麼這很重要: 如果您只設定了 Anthropic OAuth(沒有 OpenRouter key),您的 vision、web summarization 與 compression 會降級或失敗,因為預設 auxiliary fallback chain 會先嘗試 OpenRouter。請為輔助任務加入 OPENROUTER_API_KEY,或將每個 auxiliary slot 重新設定為使用 main provider:

auxiliary:
  vision:
    provider: "main"
  web_extract:
    provider: "main"

這是 Hermes 新使用者最常見的「我的功能默默無法運作」陷阱。


設定系統

Hermes採用分層設定系統。理解優先順序至關重要,因為較高層會覆寫較低層,而且其中一層是您在config.yaml中看不到的全域 provider registry。

設定檔版面配置

根據上游文件,以下檔案構成Hermes設定:4

~/.hermes/
├── config.yaml       # All settings (model, terminal, TTS, compression, memory, toolsets, ...)
├── .env              # Secrets (API keys, bot tokens, passwords)
├── auth.json         # OAuth provider credentials (Nous Portal, Codex, Anthropic)
├── SOUL.md           # Primary agent identity (slot #1 in system prompt)
├── memories/         # Persistent memory (MEMORY.md, USER.md)
├── skills/           # Bundled + agent-created + hub-installed skills
├── cron/             # Scheduled jobs
├── sessions/         # Gateway session state
└── logs/             # agent.log, gateway.log, errors.log (secrets auto-redacted)

config.yaml.env——兩者都設定時,非機密設定以config.yaml為準。4規則如下: - Secrets(API keys、bot tokens、passwords)→ .env - 其他所有項目(model、terminal backend、compression settings、memory limits、toolsets)→ config.yaml

Secrets可以使用shell風格的插值,從config.yaml參照:4

auxiliary:
  vision:
    api_key: ${GOOGLE_API_KEY}
    base_url: ${CUSTOM_VISION_URL}
  delegation:
    api_key: ${DELEGATION_KEY}

管理設定

hermes config                # View current configuration
hermes config show           # Same as above
hermes config edit           # Open config.yaml in your editor
hermes config set KEY VAL    # Set a specific value
hermes config path           # Print the config file path
hermes config env-path       # Print the .env file path
hermes config check          # Check for missing options (after updates)
hermes config migrate        # Interactively add missing options

範例:4

hermes config set model anthropic/claude-opus-4
hermes config set terminal.backend docker
hermes config set OPENROUTER_API_KEY sk-or-...   # Saves to .env

hermes config checkhermes config migrate是每次執行hermes update後都應執行的命令——它們會找出檔案中尚未包含的新設定選項。6

設定優先順序

Hermes會從多個來源載入設定。當多個來源設定相同值時,優先順序較高的來源勝出:4

  1. CLI arguments——hermes chat --model anthropic/claude-sonnet-4(單次呼叫覆寫)
  2. Environment variables——在程序啟動時套用
  3. config.yaml——主要設定檔
  4. .env——僅用於secrets
  5. Built-in defaults——沒有其他來源設定值時套用

CLI flags一律只在該次呼叫中優先。config.yaml則是長期的事實來源。

在地化(v0.13.0+)

v0.13.0為CLI和gateway訊息新增了7種locale:Chinese (Simplified)、Japanese、German、Spanish、French、Ukrainian和Turkish。18v0.14.0將所有gateway命令與web dashboard在地化,新增8種locale,總數達到16種。19目前文件僅提供zh-Hans在地化。Locale會從LC_ALLLANG環境變數解析,或由config.yaml中的明確locale:鍵指定。English仍是預設值,也是任何尚未翻譯字串的事實來源。

Profiles——多個隔離的Hermes執行個體

Profiles讓您擁有多個彼此隔離的Hermes執行個體,每個都有自己的config、sessions、skills、memory和gateway PID。這就是同時並行「work Hermes」與「personal Hermes」,且彼此不會看到對方狀態的方式。6

hermes profile list
hermes profile create work --clone                  # Clone from current profile
hermes profile use work                             # Set sticky default
hermes profile alias work --name h-work             # Create wrapper script
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"    # One-off without switching

每個profile都有自己的HERMES_HOME(預設為~/.hermes-<name>/),因此多個profiles可以同時執行gateway,而不會互相干擾。63


CLI命令

本節是實務工作者查閱頂層CLI命令的參考資料。若要查看以程式碼產生的權威參考,請參閱上游的CLI命令參考6

全域選項

hermes [global-options] <command> [subcommand/options]
選項 說明
--version, -V 顯示版本並結束
--profile <name>, -p <name> 選擇要使用的Hermes profile
--resume <session>, -r <session> 依ID或標題繼續 session
--continue [name], -c [name] 繼續最近的 session(或比對標題)
--worktree, -w 在隔離的 git worktree 中啟動
--yolo 略過危險命令的核准提示
--pass-session-id 在 agent 的系統提示中包含 session ID

頂層命令

命令 用途
hermes chat 互動式或一次性 chat
hermes model 以互動方式選擇預設 provider 與 model
hermes gateway 執行或管理 messaging gateway
hermes setup 互動式設定精靈
hermes auth 管理憑證——新增、列出、移除、重設、設定策略
hermes status 顯示 agent、auth 與 platform 狀態
hermes cron 檢查並觸發 cron scheduler
hermes webhook 管理動態 webhook 訂閱
hermes doctor 診斷 config 與 dependency 問題
hermes dump 可複製貼上的設定摘要,用於支援/偵錯
hermes logs 檢視、tail 並篩選 agent/gateway/error logs
hermes config 顯示、編輯、遷移、查詢設定
hermes pairing 核准或撤銷 messaging pairing codes
hermes skills 瀏覽、安裝、發布、稽核 skills
hermes honcho 管理Honcho跨 session 記憶
hermes memory 設定外部 memory provider
hermes acp 將Hermes作為ACP伺服器執行(編輯器整合)
hermes mcp 管理MCP伺服器 config;將Hermes作為MCP伺服器執行
hermes plugins 管理 plugins
hermes tools 依 platform 設定啟用的 tools
hermes sessions 瀏覽、匯出、修剪、刪除 sessions
hermes insights 顯示 token/成本/活動分析
hermes claw OpenClaw遷移輔助工具
hermes profile 管理 profiles(多個隔離 instances)
hermes completion 印出 shell completion scripts(bash/zsh)
hermes whatsapp 設定並配對 WhatsApp bridge
hermes version 印出版本資訊
hermes update 拉取最新程式碼並重新安裝 dependencies
hermes uninstall 從系統移除Hermes(--full也會刪除 config/data)
hermes backup 完整備份 config、sessions、skills 與 memory(v0.9.0+)16
hermes import 從備份封存還原——在機器之間遷移或回復(v0.9.0+)16
hermes dashboard 啟動本機 web dashboard,用於瀏覽器式 agent 管理(v0.9.0+)16
hermes debug share 上傳完整 debug report 到 pastebin,方便疑難排解時分享(v0.9.0+)16

hermes chat——主要進入點

不帶引數執行hermes會進入互動式 chat。hermes chat則是帶有選項的明確形式:6

hermes chat -q "Summarize the latest PRs"           # One-shot, non-interactive
hermes chat --provider openrouter --model anthropic/claude-sonnet-4.6
hermes chat --toolsets web,terminal,skills          # Enable specific toolsets
hermes chat --quiet -q "Return only JSON"           # Programmatic mode
hermes chat --worktree -q "Review repo and open a PR"

主要選項:

選項 說明
-q, --query "..." 一次性、非互動式 prompt
-m, --model <model> 覆寫本次執行使用的 model
-t, --toolsets <csv> 啟用以逗號分隔的一組 toolsets
--provider <provider> 強制使用某個 provider(請參閱完整清單
-s, --skills <name> 為此 session 預先載入一個或多個 skills
-v, --verbose 詳細輸出
-Q, --quiet 程式化模式(無橫幅、spinner、previews)
--resume <session> 直接從chat繼續 session
--worktree 建立隔離的 git worktree
--checkpoints 在破壞性變更前啟用檔案系統 checkpoints
--yolo 跳過核准提示
--source <tag> Session source tag(預設:cli;整合時使用tool
--max-turns <N> 每回合最大 tool-calling 迭代次數(預設:90)

hermes setup——完整精靈

執行完整設定精靈,或直接跳到其中一個區段:6

hermes setup                 # Full wizard
hermes setup model           # Provider and model only
hermes setup terminal        # Terminal backend only
hermes setup gateway         # Messaging platforms only
hermes setup tools           # Tool enable/disable per platform
hermes setup agent           # Agent behavior only
hermes setup --non-interactive
hermes setup --reset         # Reset config to defaults before setup

hermes logs——結構化 Log 查詢

hermes logs比直接對 log 檔案執行tail -f更強大,因為它支援同時依層級、session ID與時間範圍篩選。6

hermes logs                          # Last 50 lines of agent.log
hermes logs -f                       # Follow in real time
hermes logs gateway -n 100           # Last 100 lines of gateway.log
hermes logs --level WARNING --since 1h   # Warnings from the last hour
hermes logs --session abc123         # Filter by session ID substring
hermes logs errors --since 30m -f    # Follow errors.log from 30m ago
hermes logs list                     # List all log files with sizes

Log 檔案位於~/.hermes/logs/6 - agent.log——所有 agent 活動(API calls、tool dispatch、session lifecycle、INFO+) - errors.log——僅包含 warnings 與 errors(agent.log 的篩選子集) - gateway.log——messaging gateway 活動(platform connections、dispatch、webhooks)

Rotation 會透過Python的RotatingFileHandler自動進行——請尋找agent.log.1agent.log.2等檔案。6

hermes doctor——診斷

hermes doctor [--fix]是發生問題時應先執行的命令。它會檢查 config 有效性、dependency 是否存在、API key 可用性、service 狀態,並可搭配--fix嘗試自動修復。6

若要與他人分享診斷資訊,請使用hermes dump——它會產生精簡的純文字摘要,並遮蔽API keys,可直接貼到GitHub issue 或 Discord thread。6


Slash Commands

Slash commands會在作用中的聊天工作階段內執行(CLI或通訊平台)。它們由hermes_cli/commands.py中的共用COMMAND_REGISTRY派送,因此多數命令在不同介面上的運作方式都相同。9

工作階段控制

Command Description
/new(別名/reset 開始新的工作階段
/clear 清除畫面並開始新的工作階段
/history 顯示對話歷史記錄
/save 儲存目前對話
/retry 重試上一則訊息
/undo 移除最後一組使用者/assistant往返訊息
/title <name> 設定目前工作階段的標題
/compress 手動壓縮對話 context
/rollback [number] 列出或還原檔案系統 checkpoint
/stop 終止所有執行中的背景處理程序
/queue <prompt> 將 prompt 排入下一回合。注意事項:/q同時被/queue/quit宣告;最後註冊者勝出,實務上/q會解析為/quit,因此請一律明確輸入/queue9
/resume [name] 恢復先前已命名的工作階段
/statusbar(別名/sb 切換 context/model 狀態列
/background <prompt>(別名/bg 在獨立的背景工作階段中執行 prompt
/btw <question> 臨時旁支問題(無 tools、不持久保存)
/plan [request] 載入內建plan skill,以撰寫計畫取代直接執行
/branch [name](別名/fork 分支目前工作階段
/goal <target> 將 agent 鎖定在目標上,使其跨回合維持任務焦點。Ralph-loop 模式成為一級 primitive。可設定回合預算。v0.13.0 新增。18
/subgoal <criterion> 在不重新啟動迴圈的情況下,為作用中的/goal新增成功標準。v0.14.0 新增。19
/handoff <target> 將即時工作階段(訊息、tool calls 與 context)轉移給另一個 model、persona 或 profile。v0.14.0 新增。19

設定與 Model

Command Description
/config 顯示目前設定
/model [model-name] 顯示或變更目前 model
/provider 顯示可用 providers 與目前 provider
/personality [name] 設定 personality overlay
/verbose 循環切換 tool 進度顯示
/reasoning 管理 reasoning effort 與顯示方式
/skin 顯示或變更顯示 skin/theme
/voice [on\|off\|tts\|status] 切換CLI語音模式
/yolo 切換 YOLO 模式(略過核准提示)
/fast 切換 Fast Mode,為 OpenAI 與Anthropic models 啟用優先處理(v0.9.0+)16
/debug 跨所有平台快速診斷(v0.9.0+)16

/model命令是工作階段中途切換 provider 的核心工具:9

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

Tools、Skills 與資訊

Command Description
/tools [list\|disable\|enable] [name...] 管理目前工作階段的 tools
/toolsets 列出可用 toolsets
/browser [connect\|disconnect\|status] 管理本機 Chrome CDP 連線
/skills 搜尋、安裝、檢視或管理 skills
/cron 管理排程任務
/reload-mcp 從 config.yaml 重新載入MCP伺服器
/plugins 列出已安裝的 plugins
/help 顯示所有命令
/usage 顯示 token 使用量、成本、時間長度
/insights 顯示使用情況分析(最近 30 天)
/platforms 顯示通訊平台狀態
/profile 顯示作用中的 profile 名稱與 home

動態 Skill Slash Commands

每個已安裝的 skill 都會自動公開為 slash command:9

/gif-search funny cats
/axolotl help me fine-tune Llama 3 on my dataset
/github-pr-workflow create a PR for the auth refactor
/excalidraw       # Just the skill name loads it and lets the agent ask what you need

也可以在config.yaml中定義quick commands,將短名稱別名對應到較長的 prompt:9

quick_commands:
  review: "Review my latest git diff and suggest improvements"
  deploy: "Run the deployment script at scripts/deploy.sh and verify the output"
  morning: "Check my calendar, unread emails, and summarize today's priorities"

接著在CLI中輸入/review/deploy/morning

前綴比對

命令支援前綴比對:輸入/h會解析為/help/mod會解析為/model。當前綴不明確時,會以 registry 順序中的第一個註冊項目為準。完整命令名稱與已註冊別名一律優先於前綴比對。9

通訊平台專用命令

有些命令只適用於通訊平台(Telegram、Discord、Slack、WhatsApp、Signal、Email、Home Assistant):9

  • /status — 顯示工作階段資訊
  • /sethome(別名/set-home) — 將目前聊天標記為平台 home
  • /approve [session|always] — 核准待處理的危險命令
  • /deny — 拒絕待處理的危險命令
  • /update — 將 Hermes Agent 更新到最新版本
  • /commands [page] — 瀏覽所有命令與 skills(分頁顯示)

另有部分命令僅限CLI使用:/skin/tools/toolsets/browser/config/cron/skills/platforms/paste/statusbar/plugins9


工具與 toolset

Hermes 內建廣泛的工具登錄,涵蓋網頁搜尋、瀏覽器自動化、終端機執行、檔案編輯、記憶、委派、RL 訓練、訊息傳遞、Home Assistant 整合等功能。10工具會依邏輯整理成不同的 toolset,可按平台啟用或停用。

高階分類

類別 範例 說明
Web web_search, web_extract 搜尋網頁並擷取頁面內容
終端機與檔案 terminal, process, read_file, patch 執行命令並操作檔案
瀏覽器 browser_navigate, browser_snapshot, browser_vision 搭配文字與視覺的互動式瀏覽器自動化
媒體 vision_analyze, video_analyze, video_generate, image_generate, text_to_speech 多模態分析與生成。video_analyze 以 Gemini 優先,並可擴充支援相容的多模態供應商(v0.13.0+)。v0.14.0 新增統一的 video_generate,具備可插拔的供應商後端;當作用中的模型具備視覺能力時,會透過 vision_analyze 傳送原始像素。1819
Agent 編排 todo, clarify, execute_code, delegate_task 規劃、釐清、程式碼執行、subagent 委派
Computer use computer_use 透過 cua-driver 後端控制桌面;v0.14.0 讓此功能可搭配非 Anthropic 且具備視覺能力的供應商使用。19
記憶與回想 memory, session_search 持久記憶 + 工作階段搜尋
自動化與傳遞 cronjob, send_message 排程工作、對外訊息傳送
整合 ha_*, MCP tools, rl_* Home Assistant、MCP、RL 訓練

常見的 toolset 名稱包括 webterminalfilebrowservisionimage_genmoaskillsttstodomemorysession_searchcronjobcode_executiondelegationclarifyhomeassistantrl10

管理工具

hermes chat --toolsets "web,terminal"       # Use specific toolsets
hermes tools                                # Interactive per-platform tool config
hermes tools --summary                      # Print enabled-tools summary

也可以在工作階段中透過 /tools disable <name>/tools enable <name> 切換工具;這會重設工作階段,讓新的工具集合生效。9

終端機後端

終端機工具可在 6 種不同環境中執行命令:10

後端 使用情境
local 在您的機器上執行(預設)—開發、可信任的工作
docker 隔離容器—安全性、可重現性
ssh 遠端伺服器—沙箱,讓 agent 遠離自身程式碼
singularity HPC 容器—叢集運算、無 root
modal 無伺服器雲端執行
daytona 雲端沙箱工作區—持久遠端開發環境

可用 hermes config set terminal.backend <name> 切換後端,或在 config.yaml 中設定:

terminal:
  backend: docker      # or: local, ssh, singularity, modal, daytona
  cwd: "."             # Working directory
  timeout: 180         # Command timeout in seconds

SSH 後端(基於安全性建議使用—agent 無法修改自身程式碼):10

terminal:
  backend: ssh
# In ~/.hermes/.env
TERMINAL_SSH_HOST=my-server.example.com
TERMINAL_SSH_USER=myuser
TERMINAL_SSH_KEY=~/.ssh/id_rsa

Docker 後端:

terminal:
  backend: docker
  docker_image: python:3.11-slim

容器資源(適用於 docker、singularity、modal、daytona):10

terminal:
  container_cpu: 1
  container_memory: 5120          # MB (default 5GB)
  container_disk: 51200           # MB (default 50GB)
  container_persistent: true      # Persist filesystem across sessions

設定 container_persistent: true 後,已安裝的套件、檔案與設定會跨工作階段保留。10

所有容器後端都會採用安全強化:唯讀根檔案系統(Docker)、移除所有 Linux capability,僅保留 DAC_OVERRIDECHOWNFOWNER、禁止權限提升、PID 限制(256 個程序)、完整 namespace 隔離,以及透過 volume 提供持久工作區。10

背景程序

終端機工具支援背景執行,並提供明確的程序管理:10

terminal(command="pytest -v tests/", background=true)
# Returns: {"session_id": "proc_abc123", "pid": 12345}

process(action="list")                            # Show all running processes
process(action="poll", session_id="proc_abc123")  # Check status
process(action="wait", session_id="proc_abc123")  # Block until done
process(action="log", session_id="proc_abc123")   # Full output
process(action="kill", session_id="proc_abc123")  # Terminate
process(action="write", session_id="proc_abc123", data="y")  # Send input

PTY 模式(pty=true)可啟用 Codex 與 Claude Code 等互動式 CLI 工具。10

Sudo

若命令需要 sudo,Hermes 會提示輸入密碼(在該工作階段中快取)。也可以在 ~/.hermes/.env 中設定 SUDO_PASSWORD10


Multi-Agent Kanban(v0.13.0+)

v0.13.0 將多 agent 協作提升為一等基礎能力:一個持久 Kanban 看板,可跨 agent 與跨重新啟動追蹤工作、狀態與工作者身分。18這個看板讓一群 Hermes worker 能真正完成工作,而不是卡在失效的交接上。

機制 作用
Heartbeats 每個 worker 持有工作時都會發出脈衝。若漏掉 heartbeat,該 worker 會被標記為可疑,並釋放工作以供取回。
Reclaim 其他 worker 可以接手被放棄的工作,並取得完整工作狀態與先前的部分輸出。
Zombie detection 未將工作標記為完成就退出的 worker,會自動被封鎖而無法認領新工作,避免 swarm 累積失效身分。
Hallucination gate 未通過 gate 的輸出不會被標記為完成,而是附上原因後送回看板。
每項工作的 max_retries 對您知道較脆弱的工作覆寫預設重試額度。
多專案看板 一個 Hermes home 可以託管多個彼此獨立的看板。

Kanban 看板很自然地搭配 /goal(鎖定目標的 Ralph 迴圈)作為目標端,也可搭配既有的 delegate_task 工具處理生成語意。其結果是一種 swarm 模式:每個 agent 都共享同一個事實來源,知道下一步要做什麼、誰正在處理,以及哪些項目卡住。

Skills System

Skills 是代理程式可在需要時載入的隨選知識文件。它們採用漸進式揭露模式,以盡量降低 token 使用量,並相容於 agentskills.io 開放標準。11

所有 skills 都位於 ~/.hermes/skills/,這是主要目錄與唯一可信來源。全新安裝時,內建 skills 會從 repo 複製過來。透過 Hub 安裝及代理程式建立的 skills 也會放在這裡。11

漸進式揭露

Level 0: skills_list()            [{name, description, category}, ...]   (~3k tokens)
Level 1: skill_view(name)         Full content + metadata                 (varies)
Level 2: skill_view(name, path)   Specific reference file                 (varies)

代理程式只有在實際需要時,才會載入完整的 skill 內容。11

SKILL.md 格式

---
name: my-skill
description: Brief description of what this skill does
version: 1.0.0
platforms: [macos, linux]      # Optional — restrict to OS platforms
metadata:
  hermes:
    tags: [python, automation]
    category: devops
    fallback_for_toolsets: [web]     # Conditional activation
    requires_toolsets: [terminal]    # Conditional activation
    config:                          # Config.yaml settings
      - key: my.setting
        description: "What this controls"
        default: "value"
        prompt: "Prompt for setup"
---

# Skill Title

## When to Use
Trigger conditions for this skill.

## Procedure
1. Step one
2. Step two

## Pitfalls
- Known failure modes and fixes

## Verification
How to confirm it worked.

條件式啟用

Skills 可以根據可用工具顯示或隱藏自己。這對備援 skills 特別有用,也就是只有在付費工具無法使用時才應出現的免費或本機替代方案:11

欄位 行為
fallback_for_toolsets 列出的 toolsets 可用時隱藏 skill
fallback_for_tools 相同,但檢查個別工具
requires_toolsets 列出的 toolsets 無法使用時隱藏 skill
requires_tools 相同,但檢查個別工具

範例:內建的 duckduckgo-search skill 使用 fallback_for_toolsets: [web]。當您設定了 FIRECRAWL_API_KEY,web toolset 就會可用,代理程式會使用 web_search,DuckDuckGo skill 則維持隱藏。若沒有 API key,DuckDuckGo skill 會自動以備援方案出現。11

代理程式管理的 Skills

代理程式可以透過 skill_manage 工具建立、更新與刪除自己的 skills。這是代理程式的程序性記憶:當它摸索出非平凡的工作流程時,會將做法儲存為 skill,供日後重複使用。11

代理程式建立 skills 的時機:11 - 成功完成複雜任務後(5 次以上工具呼叫) - 曾遇到錯誤或死路,並找到可行路徑時 - 使用者修正其做法時 - 發現非平凡的工作流程時

動作:11

動作 用途
create 從零建立新 skill
patch 針對性修正(建議使用,最節省 token)
edit 大幅結構重寫
delete 完整移除 skill
write_file 新增/更新支援檔案
remove_file 移除支援檔案

Skill Hub

從線上登錄檔瀏覽、搜尋、安裝與管理 skills:611

hermes skills browse                          # Browse all hub skills
hermes skills browse --source official        # Browse official optional skills
hermes skills search kubernetes               # Search all sources
hermes skills search react --source skills-sh # Search skills.sh directory
hermes skills inspect openai/skills/k8s       # Preview before installing
hermes skills install openai/skills/k8s       # Install with security scan
hermes skills install skills-sh/anthropics/skills/pdf --force
hermes skills check                           # Check for upstream updates
hermes skills update                          # Reinstall changed hub skills
hermes skills audit                           # Re-scan installed hub skills
hermes skills uninstall k8s
hermes skills publish skills/my-skill --to github --repo owner/repo
hermes skills tap add myorg/skills-repo       # Add custom GitHub source

整合的 hub 來源:11

來源 範例 備註
official official/security/1password 隨 Hermes 提供的選用 skills(builtin trust)
skills-sh skills-sh/vercel-labs/agent-skills/vercel-react-best-practices Vercel 的公開 skills 目錄
well-known well-known:https://mintlify.com/docs/.well-known/skills/mintlify 由發布 /.well-known/skills/index.json 的網站進行 URL 型探索
github openai/skills/k8s 直接安裝 GitHub repo/path
clawhub 第三方 skills 市集
claude-marketplace 相容於 Claude 的 plugin/市集 manifests
lobehub LobeHub 代理程式目錄轉換

預設 GitHub taps(無需設定即可瀏覽):openai/skillsanthropics/skillsVoltAgent/awesome-agent-skillsgarrytan/gstack11

安全性掃描

所有透過 hub 安裝的 skills 都會經過安全性掃描器檢查,涵蓋資料外洩、prompt injection、破壞性命令、供應鏈訊號與其他威脅。11

信任層級:11

層級 來源 政策
builtin 隨 Hermes 提供 一律信任
official repo 中的 optional-skills/ Builtin trust,無第三方警告
trusted 受信任登錄檔(openai/skillsanthropics/skills 較寬鬆的政策
community 其他所有來源 非危險發現可用 --force 覆寫;dangerous 判定仍會封鎖

--force 可以覆寫 community skills 的非危險政策封鎖。它無法覆寫 dangerous 掃描判定。11

外部 Skill 目錄

您可以讓 Hermes 指向額外的 skill 目錄,並與本機目錄一併掃描:11

skills:
  external_dirs:
    - ~/.agents/skills
    - /home/shared/team-skills
    - ${SKILLS_REPO}/skills

路徑支援 ~ 展開與 ${VAR} 環境變數替換。外部目錄為唯讀;當代理程式建立或編輯 skill 時,一律寫入 ~/.hermes/skills/。如果兩個位置都有相同 skill 名稱,會以本機優先。11


持久記憶

Hermes具備有界且經整理的記憶,可跨工作階段持續存在。代理的記憶由2個檔案組成,兩者都儲存在~/.hermes/memories/12

檔案 用途 字元限制
MEMORY.md 代理的個人筆記——環境事實、慣例、已學到的事項 2,200字元(約800 tokens)
USER.md 使用者設定檔——偏好、溝通風格、期望 1,375字元(約500 tokens)

兩者都會以工作階段開始時的凍結快照注入系統提示。代理會透過memory工具自行管理記憶——addreplaceremove12

凍結快照模式:系統提示注入只會在工作階段開始時擷取一次,工作階段中不會變更。這是有意為之——它會保留LLM的前置快取以提升效能。工作階段中所做的變更會立即持久化到磁碟,但直到下一個工作階段才會出現在系統提示中。12

要儲存什麼

儲存這些項目(代理會主動執行):12 - 使用者偏好:「我偏好TypeScript而不是JavaScript」→ user - 環境事實:「此伺服器執行Debian 12與PostgreSQL 16」→ memory - 修正事項:「不要對Docker命令使用sudo,使用者在docker群組中」→ memory - 慣例:「專案使用tab、120字元行寬、Google風格docstrings」→ memory - 已完成工作:「已於2026年1月15日將資料庫從MySQL遷移至PostgreSQL」→ memory

略過這些項目:12 - 瑣碎或顯而易見的資訊 - 容易重新發現的事實 - 原始資料傾印(對記憶來說過大) - 工作階段特定的短暫資訊 - 已在脈絡檔案中的資訊

工作階段搜尋

除了MEMORY.mdUSER.md之外,代理也能使用session_search工具搜尋過去的對話。所有CLI和訊息工作階段都會儲存在SQLite(~/.hermes/state.db)中,並提供FTS5全文搜尋。查詢會透過Gemini Flash摘要化,傳回相關的過去對話。12

功能 持久記憶 工作階段搜尋
容量 總計約1,300 tokens 無限制(所有工作階段)
速度 即時(在系統提示中) 需要搜尋+LLM摘要
使用情境 永遠可用的關鍵事實 尋找特定過去對話
管理方式 由代理手動整理 自動——儲存所有工作階段
Token成本 每個工作階段固定(約1,300 tokens) 隨需使用

外部記憶提供者

若需要比MEMORY.mdUSER.md更深入的持久記憶,Hermes隨附8個外部記憶提供者外掛:Honcho、OpenViking、Mem0、Hindsight、Holographic、RetainDB、ByteRover和Supermemory12

外部提供者會與內建記憶並行運作(絕不取代內建記憶),並加入知識圖譜、語意搜尋、自動事實擷取、跨工作階段使用者建模等能力:612

hermes memory setup         # Pick a provider and configure it
hermes memory status        # Check what's active
hermes memory off           # Disable external provider (built-in only)

一次只能啟用1個外部提供者。內建記憶永遠啟用。6

工作階段自動續接(v0.13.0+)

v0.13.0讓代理執行中斷不再造成災難。gateway會在重新啟動後自動續接中斷的工作階段;/update重新啟動會在升級期間保留工作階段狀態;開發期間重新載入原始檔時,會保持作用中的工作階段,而不是強制建立新的工作階段。18實際效果是:長時間執行的gateway工作和cron驅動的工作,在程序重新啟動時不再重設其脈絡視窗。

Checkpoints v2(v0.13.0+)

v0.13.0將狀態持久化重寫為單一儲存設計,具備真正的修剪、磁碟防護欄,且不再產生孤立的影子repo18先前的checkpoint系統會在長時間執行的profile中於磁碟累積狀態;v2儲存會對本機checkpoint儲存設定硬性上限,並移除造成成長的重複簿記。無需變更任何面向使用者的設定;下一次checkpoint寫入就會使用v2路徑。


Personality與SOUL.md

SOUL.md是Hermes實例的主要身分。它佔用系統提示中的第1個插槽,取代硬編碼的預設身分。13

Hermes會在~/.hermes/SOUL.md(或自訂profile的$HERMES_HOME/SOUL.md)自動植入預設SOUL.md。既有使用者檔案絕不會被覆寫。Hermes只會從HERMES_HOME載入SOUL.md——不會查看目前工作目錄。這讓不同專案中的personality保持可預期。13

SOUL.md應包含什麼

用於持久的語氣和personality指引:13 - 語氣 - 溝通風格 - 直接程度 - 預設互動風格 - 風格上應避免的事項 - Hermes應如何處理不確定性、意見分歧、模稜兩可

較不適合用於:13 - 一次性的專案指示 - 檔案路徑 - repo慣例 - 暫時性的工作流程細節

這些應放在AGENTS.md,而不是SOUL.md

SOUL.md與AGENTS.md

這是Hermes身分管理中最重要的區分:13

SOUL.md——身分、語氣、風格、溝通預設、personality層級行為。

AGENTS.md——專案架構、程式碼慣例、工具偏好、repo特定工作流程、命令、連接埠、路徑、部署備註。

一個實用規則:如果它應該到哪都跟著您,就放在SOUL.md。如果它屬於某個專案,就放在AGENTS.md13

內建Personalities

Hermes隨附內建personalities,您可以用/personality切換:13

名稱 說明
helpful 友善、通用型助理
concise 簡短、直截了當的回應
technical 詳細、精準的技術專家
creative 創新、跳脫框架的思考
teacher 有耐心的教育者,提供清楚範例
kawaii 可愛表達、閃亮感、熱情
catgirl 帶有貓咪式表達的Neko-chan
pirate Captain Hermes,懂技術的海盜
shakespeare 帶戲劇張力的吟遊詩人式散文
surfer 放鬆的bro氛圍
noir 硬派偵探敘事
uwu 最高可愛度,使用uwu語氣
philosopher 對每個查詢都深入沉思
hype 最大能量

config.yaml中的自訂personalities:13

agent:
  personalities:
    codereviewer: >
      You are a meticulous code reviewer. Identify bugs, security issues,
      performance concerns, and unclear design choices. Be precise and constructive.

然後用/personality codereviewer切換。

SOUL.md與/personality

SOUL.md是基準聲音。/personality是工作階段層級的疊加。13建議保留務實的預設SOUL.md,然後在教學對話使用/personality teacher,或在腦力激盪時使用/personality creative


Nous Tool Gateway(v0.10.0+)

自Hermes Agent v0.10.0(2026年4月16日)起,付費Nous Portal訂閱者可透過既有Portal憑證,受管理地存取一組精選工具——不需要管理額外的API金鑰。26Hermes CLI本身仍維持MIT授權,且完全開放原始碼。改變之處在於,您的Portal驗證現在解鎖的不只模型推論。

gateway包含什麼

工具 提供者 使用情境
Web search Firecrawl 為需要新鮮資訊的代理擷取資料
Image generation FAL / FLUX 2 Pro 不設定FAL金鑰也能行內產生圖片
Text-to-speech OpenAI TTS 在messaging gateways上提供語音輸出
Browser automation Browser Use 無頭導覽與爬取

運作方式

gateway透過新的use_gateway設定欄位,採取每個工具各自選擇加入。如果您在hermes auth中有Portal憑證,且為某個工具啟用gateway,該工具的呼叫就會透過Portal路由。否則會使用您的直接API金鑰(若存在)。

# config.yaml — per-tool gateway opt-in
tools:
  web_search:
    provider: firecrawl
    use_gateway: true          # route via Nous Portal subscription
  image_generation:
    provider: fal
    use_gateway: true

執行階段優先順序:當gateway可用且某個工具設有use_gateway: true時,即使您也設定了直接API金鑰,Hermes仍會優先使用gateway。這對計費很重要——gateway呼叫會從您的Portal訂閱扣用,而不是從直接API金鑰的餘額扣用。

啟用gateway

hermes model                      # select Nous Portal (OAuth flow)
hermes tools                      # per-platform tool picker integrates gateway tools
hermes status                     # confirms gateway/subscription detection

沒有獨立的hermes subscribehermes login --portal命令。訂閱會從您已在hermes auth中擁有的Portal OAuth憑證自動偵測。

定價與存取

定價和方案名稱會公布在Nous Portal定價頁面(https://portal.nousresearch.com/pricing)。本指南不列舉方案,因為它們由Portal產品負責,而不是Hermes CLI負責,且會獨立於Hermes版本變更。請在https://portal.nousresearch.com/註冊,並查看定價頁面以取得目前方案。

棄用通知

  • HERMES_ENABLE_NOUS_MANAGED_TOOLS環境變數已在v0.10.0中移除。Managed tools現在會透過每個工具的use_gateway設定欄位啟用,並依據您的Portal訂閱狀態進行控管。26

定位:此版本不是什麼

Hermes Agent CLI不是由訂閱鎖住。此專案仍採MIT授權,所有核心功能(CLI、skills、memory、messaging gateway、cron、MCP、本機dashboard、每個提供者的BYOK)都能在不付費給任何人的情況下端到端運作。v0.10.0為已經付費使用Nous Portal的使用者新增便利路徑——並沒有從免費路徑移除任何東西。


Messaging Gateway

Hermes可以作為長時間執行的gateway程序,從單一gateway程序連接到22個messaging platforms:Telegram、Discord、Slack、WhatsApp、Signal、SMS、Email、Home Assistant、Mattermost、Matrix、DingTalk、Feishu/Lark、WeCom、Weixin (WeChat)、BlueBubbles (iMessage)、QQBot、Microsoft Teams、Tencent Yuanbao、Google Chat、LINE、SimpleX Chat,以及通用Webhook配接器。325171819 v0.9.0透過BlueBubbles加入iMessage(自動webhook註冊、設定精靈、當機韌性),並透過iLink Bot API加入原生WeChat支援,且為企業app提供WeCom callback模式。16 v0.11.0加入QQBot。25 v0.12.0加入Microsoft Teams與Tencent Yuanbao。17 v0.13.0加入Google Chat作為第20個平台,沿用同一套可插拔配接器架構;IRC與Microsoft Teams也遷移到新的配接器模式,並具備通用env_enablement_fn / cron_deliver_env_var plugin hooks。18 v0.14.0加入LINE與SimpleX Chat,並以Graph auth、webhook listener、pipeline runtime與outbound delivery,完整補齊Microsoft Teams堆疊。19 v0.17.0(2026年6月19日)加入透過Photon Spectrum實現的免relay iMessage(device-code OAuth搭配hermes photon login——不需要Mac/BlueBubbles relay)、官方WhatsApp Business Cloud API配接器(取代bridge-process需求)、SimpleX groups與原生attachments,並將Raft作為內建平台plugin。21

設定

hermes gateway setup                # Interactive platform configuration
hermes gateway install              # Install as user service (systemd/launchd)
hermes gateway start                # Start the installed service
hermes gateway stop
hermes gateway restart
hermes gateway status
hermes gateway run                  # Run in foreground (debugging)

互動式設定會引導您連接各平台:API tokens、bot IDs、channel mappings、allowlists。6

訊息流程

來自上游架構文件:3

Platform event → Adapter.on_message() → MessageEvent
  → GatewayRunner._handle_message()
    → authorize user
    → resolve session key
    → create AIAgent with session history
    → AIAgent.run_conversation()
    → deliver response back through adapter

每個messaging platform都會經過與CLI相同的AIAgent對話迴圈。這就是為什麼slash commands在兩處都以相同方式運作,也解釋了為什麼在Telegram排程的cron job可以將輸出傳送到Discord——平台差異只存在於邊界。3

使用者授權與配對

hermes pairing list                    # Show pending and approved users
hermes pairing approve <platform> <code>
hermes pairing revoke <platform> <user-id>
hermes pairing clear-pending

配對碼可避免陌生人任意與您的gateway對話。使用者從自己的messaging platform傳送配對碼;您使用hermes pairing approve核准後,該使用者自此便取得授權。6


排程任務(Cron)

Hermes具備一級cron系統,其中jobs是agent tasks,不是shell commands。每個scheduled job都會透過全新的AIAgent執行,使用已設定的prompt、可選的附加skills,並將結果傳送到任一平台:36

hermes cron list
hermes cron create --prompt "Check HN for AI news and summarize" --schedule "0 9 * * *" --deliver telegram
hermes cron edit <id>
hermes cron pause <id>
hermes cron resume <id>
hermes cron run <id>         # Trigger now on the next tick
hermes cron remove <id>
hermes cron status           # Check if scheduler is running
hermes cron tick             # Run due jobs once and exit

或是在messaging chat中以對話方式建立:

Every morning at 9am, check Hacker News for AI news and send me a summary on Telegram.

agent會透過其tools設定cron job。Jobs會保存在JSON中,並在重新啟動後持續存在。3


MCP整合

Hermes同時支援作為client與server使用Model Context Protocol:6

作為client——將Hermes連接到外部MCP servers,以擴充其tool表面:

hermes mcp add <name> --url https://example.com/mcp
hermes mcp add <name> --command npx --args "-y,@modelcontextprotocol/server-github"
hermes mcp list
hermes mcp test <name>
hermes mcp remove <name>
hermes mcp configure <name>   # Toggle individual tool selection

或在config.yaml中手動設定:14

mcp_servers:
  github:
    command: npx
    args: ["-y", "@modelcontextprotocol/server-github"]
    env:
      GITHUB_PERSONAL_ACCESS_TOKEN: "ghp_xxx"

作為server——將Hermes對話暴露給其他agents:

hermes mcp serve
hermes mcp serve -v    # Verbose

Context Compression

Hermes會自動壓縮長對話,以維持在模型context window內。compression summarizer是獨立的LLM呼叫——您可以將它指向任何provider或endpoint。4

compression:
  enabled: true
  threshold: 0.50                           # Compress at this % of context limit
  target_ratio: 0.20                        # Fraction to preserve as recent tail
  protect_last_n: 20                        # Min recent messages to keep uncompressed
  summary_model: "google/gemini-3-flash-preview"
  summary_provider: "auto"                  # "auto", "openrouter", "nous", "codex", "main", etc.
  summary_base_url: null                    # Custom OpenAI-compatible endpoint

Provider選項:4

summary_provider summary_base_url 結果
auto(預設) 未設定 自動偵測最佳可用provider
nous / openrouter / etc. 未設定 強制使用該provider,並使用其auth
any 已設定 直接使用自訂endpoint(忽略provider)

summary_model必須支援至少與主模型一樣大的context length,因為它會收到對話的完整中段內容以進行壓縮。4

Budget Pressure Warnings

當agent處理需要大量tool calls的複雜任務時,可能在未察覺的情況下耗盡iteration budget(預設:90 turns)。Budget pressure會自動警告模型:4

閾值 層級 模型看到的內容
70% Caution [BUDGET: 63/90. 27 iterations left. Start consolidating.]
90% Warning [BUDGET WARNING: 81/90. Only 9 left. Respond NOW.]

Stream Timeouts

LLM streaming connection有兩層timeout,會針對local providers(localhost、LAN IPs)自動調整:4

Timeout 預設 Local providers Env var
Socket read timeout 120s 自動提高至1800s HERMES_STREAM_READ_TIMEOUT
Stale stream detection 180s 自動停用 HERMES_STREAM_STALE_TIMEOUT
API call(non-streaming) 1800s 不變 HERMES_API_TIMEOUT

對local endpoints而言,socket read timeout會提高到30分鐘,因為local LLMs在大型contexts上可能需要數分鐘進行prefill,才會產生第一個token。4


本機Web Dashboard(v0.9.0+)

這是以瀏覽器為基礎的dashboard,用於在本機管理Hermes Agent。無須接觸config檔案或terminal,即可設定選項、監控sessions、瀏覽skills,並管理gateway。16 使用hermes dashboard啟動。對偏好GUI的新使用者而言,這是最容易上手的onboarding路徑。

Background Process Monitoring(v0.9.0+)

watch_patterns讓您設定要在background process輸出中監控的patterns,並在符合時即時收到通知。16 可監控errors、等待特定events(「listening on port」),或觀察build logs——全程無須polling。結合v0.8.0的notify_on_complete(在background task完成時通知),Hermes如今具備完整的background process observability layer。15

Pluggable Context Engine(v0.9.0+)

Context管理現在可透過hermes plugins作為可插拔slot。您可以替換自訂context engines,控制agent每一turn看到的內容——包括filtering、summarization,或注入domain-specific context。16 這將context策略與核心agent loop解耦,允許依project或domain客製context。

Backup & Restore(v0.9.0+)

hermes backup會建立包含config、sessions、skills與memory的完整封存檔。hermes import可從backup archive還原。16 可用於在不同機器間遷移、重大變更前建立snapshot,或與隊友共享已知良好的configuration。

Termux / Android支援(v0.9.0+)

Hermes可透過Termux在Android上原生執行。經調整的install paths、針對行動螢幕最佳化的TUI、voice backend支援,以及/image command都可在裝置端運作。16

安全強化(v0.13.0+)

v0.13.0 修補了8項P0安全問題,並將一項預設值改為更有利於使用者的設定。18 v0.14.0 接著又修補了12項P0與50項P1問題,包括sudo暴力破解/sudo-stdin強化、危險命令繞過修正、工具錯誤重新注入模型前的清理、dashboard plugin API驗證、skills-hub SSRF涵蓋範圍,以及安裝期間的供應鏈公告掃描。19

修正 變更內容
Secret遮蔽預設啟用 先前需要選擇性啟用。除非明確停用,否則記錄檔與hermes debug share上傳內容會遮蔽secret。v0.12.0曾因payload毀損回報而預設停用遮蔽;v0.13.0則重新啟用,作為更安全的基準。
Discord跨guild DM繞過(CVSS 8.1) Discord角色允許清單現在限定於guild範圍,修補了使用者在某個guild上的角色可授權所有guild DM的路徑。
WhatsApp預設限制 WhatsApp adapter預設拒絕陌生人,且絕不在self-chat中回應。
MCP OAuth TOCTOU視窗 修補了MCP OAuth流程中儲存憑證時的競態條件。
CLI auth.json TOCTOU 修補了CLI auth儲存區憑證寫入器中類似的TOCTOU視窗。
Browser SSRF底線 Hybrid routing會對嘗試連到169.254.169.254及等效位址的請求,強制套用cloud-metadata SSRF底線。
Cron prompt-injection掃描 在cron job執行前,會掃描組裝後的prompt(包含載入的skill內容)是否存在prompt injection。
hermes debug share遮蔽 Debug share上傳會在上傳時遮蔽記錄內容,而不只是寫入時遮蔽。

如果您維護Hermes部署,請將v0.13.0與v0.14.0視為安全相關升級,而不只是功能釋出。v0.13.0修補了Discord跨guild繞過與兩個TOCTOU視窗;v0.14.0則在sudo處理、工具錯誤重新注入、plugin API、skills-hub SSRF與相依套件公告方面再做一輪強化。


給實務工作者的架構說明

本節適合想了解底層運作的人,方便除錯、擴充,或推理效能。內容彙整自上游架構文件。3

進入點 → AIAgent

Hermes中的每個進入點最終都會呼叫AIAgent.run_conversation()

┌──────────────────────────────────────────────────────────────────┐
                        Entry Points                              
                                                                  
  CLI (cli.py)    Gateway (gateway/run.py)    ACP (acp_adapter/)  
  Batch Runner    API Server                  Python Library     
└──────────┬──────────────┬───────────────────────┬────────────────┘
                                                
                                                
┌──────────────────────────────────────────────────────────────────┐
                     AIAgent (run_agent.py)                       
                                                                  
  ┌─────────────┐  ┌──────────────┐  ┌──────────────┐             
   Prompt         Provider        Tool                      
   Builder        Resolution      Dispatch                  
  └──────┬──────┘  └──────┬───────┘  └──────┬───────┘             
                                                              
  ┌──────┴───────┐ ┌──────┴───────┐  ┌──────┴───────┐             
   Compression    3 API Modes     Tool Registry             
   & Caching      chat_compl      47 tools                  
                  codex_resp      20 toolsets               
                  anthropic                                 
  └──────────────┘ └──────────────┘  └──────────────┘             
└──────────────────────────────────────────────────────────────────┘

圖表改編自上游架構文件。3

您的banner中顯示「47 tools / 20 toolsets」與「28 tools」的差異。「47 tools」是上游儲存庫的工具註冊總數,也就是Hermes隨原始碼提供的所有toolset中的每個工具。實際執行中的CLI會在啟動banner中顯示較小的數字(我用來驗證本指南的安裝顯示為28 tools / 89 skills)。這不是錯誤。許多toolset是選擇性啟用,必須在config.yamltoolsets:下明確開啟,例如訊息平台adapter、瀏覽器自動化、較重的擷取工具等。註冊總數代表「可用項目」;banner數字代表「目前profile中已啟用的項目」。使用hermes tools --list檢查哪些toolset處於啟用狀態,並透過~/.hermes/config.yaml中的toolsets:區塊啟用或停用個別toolset(或在執行中的session內使用/tools list/tools enable <name>/tools disable <name>;移除工具會觸發session重設,讓agent重建其工具manifest)。

三種API模式

Hermes會將provider差異抽象為三種API模式,並在執行階段自動選擇:3

API模式 使用者
chat_completions OpenRouter, z.ai, Kimi, MiniMax, DeepSeek, Alibaba, 大多數自訂endpoint,以及任何OpenAI相容伺服器
codex_responses OpenAI Codex(透過ChatGPT OAuth)
anthropic_messages Anthropic API(native)、Anthropic OAuth、Anthropic相容proxy

runtime_provider.pyresolver會將(provider, model)tuple對應到(api_mode, api_key, base_url),支援18個以上provider,並處理OAuth流程、憑證pool與alias解析。3

CLI Session中的資料流程

User input  HermesCLI.process_input()
   AIAgent.run_conversation()
     prompt_builder.build_system_prompt()
     runtime_provider.resolve_runtime_provider()
     API call (chat_completions / codex_responses / anthropic_messages)
     tool_calls?  model_tools.handle_function_call()  loop
     final response  display  save to SessionDB

出自上游架構頁面。3

Prompt組裝順序

prompt stack包含:13

  1. SOUL.md(agent身分;若無法使用,則採用內建fallback)
  2. 具備工具意識的行為指引
  3. 記憶/使用者情境(MEMORY.mdUSER.md
  4. Skills指引
  5. 情境檔案(AGENTS.md.cursorrules
  6. 時間戳記
  7. 平台特定格式提示
  8. 選用的system-prompt overlay,例如/personality

SOUL.md是基礎,其他所有內容都建立在其上。13

Session儲存

以SQLite為基礎的session儲存,搭配FTS5全文搜尋。Session具備lineage tracking(compression之間的parent/child)、各平台隔離,以及具備競爭處理的atomic writes。3

Plugin系統

三個探索來源:~/.hermes/plugins/(使用者)、.hermes/plugins/(專案),以及pip entry points。Plugin會透過context API註冊工具、hook與CLI命令。Memory provider是plugins/memory/下的特殊plugin類型。3

hermes plugins                       # Interactive enable/disable UI
hermes plugins install <repo>        # Install from Git URL or owner/repo
hermes plugins enable <name>
hermes plugins disable <name>
hermes plugins list

設計原則

出自上游架構頁面:3

原則 實務上的意義
Prompt穩定性 System prompt不會在對話中途改變。除了明確的使用者動作(/model)外,不會有破壞cache的變更
可觀測執行 每次工具呼叫都會透過callback呈現給使用者。CLI(spinner)與gateway(chat messages)中都有進度更新
可中斷 API呼叫與工具執行可因使用者輸入或signal而在執行途中取消
平台無關核心 單一AIAgentclass服務CLI、gateway、ACP、batch與API server。平台差異留在進入點
低耦合 選用子系統(MCP、plugins、memory providers、RL environments)使用registry pattern與check_fn gating,而非硬性相依
Profile隔離 每個profile都有自己的HERMES_HOME、config、memory、sessions與gateway PID。多個profile可並行執行

從OpenClaw遷移

Hermes Agent是OpenClaw的後繼者。如果您要從既有OpenClaw安裝遷移:65

hermes claw migrate --dry-run                    # Preview what would be migrated
hermes claw migrate --preset full                # Full migration including API keys
hermes claw migrate --preset user-data --overwrite   # User data only, no secrets
hermes claw migrate --source /custom/path        # Non-default OpenClaw location

hermes claw migrate預設會從~/.openclaw讀取(也會自動偵測舊版~/.clawdbot~/.moldbot目錄),並寫入~/.hermes6

直接匯入(30多個類別):SOUL.mdMEMORY.mdUSER.mdAGENTS.md、來自4個來源目錄的skills、預設model、自訂providers、MCP servers、訊息平台token與允許清單(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,以及來自3個來源的API keys。6

封存供手動檢閱:cron jobs、plugins、hooks/webhooks、memory backend(QMD)、skills registry config、UI/identity、logging、multi-agent setup、channel bindings、IDENTITY.mdTOOLS.mdHEARTBEAT.mdBOOTSTRAP.md6

API key解析會依優先順序檢查三個來源:config values → ~/.openclaw/.envauth-profiles.json6


疑難排解

「API key not set」

執行hermes model以互動方式設定您的 provider,或執行hermes config set OPENROUTER_API_KEY your_keyhermes doctor命令會明確告訴您缺少哪些 key。7

啟動時出現「Context limit: 2048 tokens」(本機 models)

Hermes 會從您伺服器的/v1/models端點自動偵測 context 長度,但許多本機伺服器會回報偏低的預設值。請在config.yaml中明確設定:2

model:
  default: your-model
  provider: custom
  base_url: http://localhost:11434/v1
  context_length: 32768

Tool calls 顯示成文字,而不是執行

您的伺服器未啟用 tool calling,或該 model 不支援透過伺服器實作來使用此功能。2

伺服器 修正方式
llama.cpp 在啟動命令中加入--jinja
vLLM 加入--enable-auto-tool-choice --tool-call-parser hermes
SGLang 加入--tool-call-parser qwen(或適當的 parser)
Ollama Tool calling 預設已啟用——請用ollama show <model>確認您的 model 支援它
LM Studio 更新至 0.3.6 以上,並使用原生支援 tool 的 model

回應在句子中途被截斷

可能有 2 種原因:2

  1. 伺服器上的輸出上限偏低max_tokens)——SGLang 預設每則回應為 128 tokens。請在伺服器上設定--default-max-tokens,或在config.yaml中設定model.max_tokens
  2. Context 耗盡——model 填滿了自己的 context window。請提高model.context_length,或在 Hermes 中啟用 context compression。

從 WSL2 連到 Windows 主控的 model 伺服器時出現「Connection refused」

WSL2 使用具有自身子網路的虛擬網路介面卡——WSL2 內的localhost指的是 Linux VM,而不是 Windows 主機。有 2 種選項:2

Mirrored networking(Windows 11 22H2 以上):編輯%USERPROFILE%\.wslconfig

[wsl2]
networkingMode=mirrored

接著執行wsl --shutdown並重新啟動。現在localhost可雙向運作。

Host IP fallback(較舊的 Windows):從 WSL2 內取得 Windows 主機 IP,並改用它取代localhost

ip route show | grep -i default | awk '{ print $3 }'
# Use that IP as the base_url host

您也需要讓 model 伺服器綁定到0.0.0.0,而不是127.0.0.1——Ollama 請設定OLLAMA_HOST=0.0.0.0,llama-server/SGLang 請加入--host 0.0.0.0,或在 LM Studio 中啟用「Serve on Network」。2

所有東西在哪裡?

hermes statushermes dump在這裡很有幫助。hermes logs list會顯示所有 log 檔案及其大小。hermes config path會印出設定檔位置。hermes config env-path會印出.env位置。6


FAQ

Hermes Agent 和 Claude Code 有什麼不同?

Claude Code 是 Anthropic 官方的 CLI,綁定 Anthropic models。Hermes Agent 是 Nous Research 的開源 agent framework,可搭配任何 OpenAI-compatible provider 使用——Nous Portal、OpenRouter、Anthropic、GitHub Copilot、z.ai、Kimi、MiniMax、DeepSeek、Hugging Face、Google,或您自行託管的 endpoint。12 Hermes 也內建 Telegram/Discord/Slack/WhatsApp/Signal 的 messaging gateway,這是 Claude Code 所沒有的。

我可以用 Anthropic API key 搭配 Hermes 嗎?

可以。有 3 種方式:2

  1. ~/.hermes/.env中設定ANTHROPIC_API_KEY,並執行hermes chat --provider anthropic --model claude-sonnet-4-6
  2. 執行hermes model並選擇 Anthropic——可用時,Hermes 會使用 Claude Code 的 credential store
  3. 設定手動ANTHROPIC_TOKEN(setup-token 或 OAuth token)作為 fallback

如果您已在同一台機器上使用 Claude Code,建議採用選項 2——它會讓可重新整理的 Claude credentials 維持可重新整理。

如何在不遺失對話的情況下切換 providers?

在 session 中使用/model provider:model。對話歷史、memory 和 skills 都會一併保留:9

/model zai:glm-5
/model openrouter:anthropic/claude-sonnet-4
/model custom:local:qwen-2.5

我已設定 Anthropic,但 vision/web/compression 無法運作

您遇到的是 auxiliary model fallback。Vision、web summarization、compression 和其他側邊工作會使用獨立的 auxiliary LLM——預設透過自動偵測使用 Gemini Flash(OpenRouter → Nous → Codex)。如果這些都沒有設定,而您只設定了 Anthropic,這些功能會靜默降級。4

修正方式:加入OPENROUTER_API_KEY供 auxiliary tasks 使用,或將 auxiliary slots 重新設定為使用您的主要 provider。請注意,context compression 位於自己的頂層compression:區塊,並使用summary_provider,而不是auxiliary.compression.provider——auxiliary.compressionslot 只公開timeout。完整修正如下:

auxiliary:
  vision:      { provider: "main" }
  web_extract: { provider: "main" }

compression:
  summary_provider: "main"

SOUL.md 和 AGENTS.md 有什麼不同?

SOUL.md是您的 agent 身分——語氣、風格、溝通預設值。它位於~/.hermes/SOUL.md,會一路跟著您。AGENTS.md則是專案專用——架構、慣例、命令、路徑——並位於您的專案目錄中。13 如果內容應該處處跟著您,放在SOUL.md。如果它屬於某個專案,放在AGENTS.md

如何並行執行多個 Hermes instances?

使用 profiles。每個 profile 都有自己的HERMES_HOME、config、memory、sessions 和 gateway PID:6

hermes profile create work --clone
hermes profile use work                 # Sticky default
hermes -p work chat -q "..."            # One-off without switching
hermes profile alias work --name h-work # Wrapper script

Hermes 支援本機 LLMs 嗎?

支援,透過 custom endpoint 路徑即可。Hermes 可搭配任何 OpenAI-compatible server 使用:Ollama、vLLM、SGLang、llama.cpp/llama-server、LM Studio、LocalAI、Jan,或您自己的伺服器。2 請參閱Custom & Self-Hosted Endpoints了解各伺服器設定。

為什麼我的啟動畫面顯示的 tools 比指南所說的 Hermes 擁有數量更少?

本指南引用的是 upstream architecture registry 中的 47 tools / 20 toolsets——這是 Hermes 在所有 toolset 中提供原始碼的完整 tools 數量。您的執行中安裝版本會在啟動畫面顯示較小的數字(本指南使用的參考安裝回報 28 tools),因為 Hermes 啟動時只會啟用預設 toolset 集合。許多 toolsets 是選擇性啟用:messaging gateway adapters、browser automation、較重的 scraping stacks,以及數個專門 integrations,都必須先在~/.hermes/config.yamltoolsets:下明確列出才會載入。Registry total =「啟用後可用的項目」。Banner total =「目前 profile 實際載入的項目」。使用hermes tools --list查看哪些 toolsets 已啟用,以及哪些可用但停用。可在執行時用/tools enable <name>/tools disable <name>切換個別 toolsets(停用會觸發 session reset,讓 agent 以新的形狀重建 tool manifest)。

當主要 provider 失敗時,Hermes 如何處理 model fallback?

config.yaml中設定fallback_model區塊:2

fallback_model:
  provider: openrouter
  model: anthropic/claude-sonnet-4

當主要 provider 失敗(rate limit、server error、auth failure)時,Hermes 會在 session 中途切換到 fallback,而不會遺失對話歷史。每個 session 最多觸發一次。

Agent 可以隨時間改善自己的 skills 嗎?

可以——這正是 Hermes Agent「self-improving」的部分。Agent 可以透過skill_managetool 建立、更新和刪除 skills。當它找出非平凡的 workflow 時,會把做法保存為 skill,以便日後重複使用。11 Agent 會在複雜任務後(5 次以上 tool calls)、遇到錯誤並找到可行路徑時、您修正它的做法時,或它發現非平凡 workflow 時建立 skills。

是否有 IDE integration?

有——Hermes 可以作為 VS Code、Zed 和 JetBrains 的 ACP(Agent Client Protocol)伺服器執行:6

pip install -e '.[acp]'
hermes acp

變更記錄

日期 變更 來源
2026-07-01 指南v1.10:v0.18.0「The Judgment Release」(2026年7月1日,標籤v2026.7.1)。新增「v0.18.0新功能」章節:完整P0/P1待辦清單已結案(約692項);Mixture-of-Agents升級為一級功能,支援標記化的逐模型ensemble輸出與即時串流;completion contracts——/goal會執行專案檢查來驗證自身成果;/learn(描述工作流程→可重複使用的skill,符合CONTRIBUTING.md);/journey記憶/skill時間軸+桌面記憶圖;背景subagent展開(並行委派任務);Desktop Projects(project/repo/lane);scale-to-zero gateway搭配drain協調;Google Vertex AI(透過GCP服務帳戶使用Gemini,自動重新整理OAuth2);/prompt \$EDITOR撰寫器。來源:hermes-agent releases 22
2026-06-21 指南v1.9:v0.17.0「The Reach Release」(2026年6月19日,標籤v2026.6.19)。新增「v0.17.0新功能」章節。Messaging:透過Photon Spectrum實現免relay的iMessage(hermes photon login、裝置碼OAuth)、官方WhatsApp Business Cloud API adapter(不需bridge)、SimpleX群組+附件、Raft平台plugin。Models:z-ai/glm-5.2(1M)、anthropic/claude-fable-5laguna-m.1nemotron-3-ultragrok-composer-2.5-fast(xAI OAuth,200k);xAI預設→grok-build-0.1;Anthropic自適應模型移除reasoning欄位。Desktop/dashboard:支援即時watch-windows的背景subagents(delegate_task(background=true))、完整profile建構器、重新設計的Skills Hub、Automation Blueprints、安全401登入、VS Code Marketplace主題、日文+繁體中文UI。Skills/tools:image_generate圖生圖編輯、memory原子化operations批次、simplify-codeskill、布林值write_approval(取代write_mode)。Architecture:MCP elicitation handler、可插拔CronScheduler+Chronos、Managed範圍(/etc/hermes)、Gateway-Gateway relay。Commands:/version/billinghermes curator run --consolidate(選用)。Security:已封閉shell-escape denylist繞過、fail-closed approval/gateway adapters、cron環境已清理、debug dumps中的secrets已遮蔽、MCP stdio外洩篩檢、urllib3+PyJWT CVE升級。 21
2026-06-08 指南v1.8:v0.16.0「The Surface Release」(2026年6月5日,標籤v2026.6.5)。將指南重新命名為v0.16,並新增「v0.16.0新功能」章節。重點:Hermes不再只限於終端機。原生Hermes Desktop app(Electron,macOS/Linux/Windows),提供一鍵安裝、應用程式內自我更新、串流聊天、拖放+剪貼簿圖片貼上、Cmd+K命令面板、session封存/搜尋、狀態列模型選擇器、透過安全WebSocket連線遠端gateway(OAuth或帳號/密碼、逐profile hosts、跨profile @session連結),以及透過typed i18n提供完整簡體中文翻譯。瀏覽器admin panel(web dashboard→完整admin):MCP目錄啟用/停用、憑證管理、webhook/hook建立、記憶設定、gateway控制、含更新前檢查+Debug Share的System頁面、新Channels頁面,以及可插拔auth(帳號/密碼、自架OIDC、hermes dashboard register)。New commands:/undo [N](CLI/TUI/messaging)、可設定的預設介面(cli/tui--cli)、TUI統一/model+Sessions覆疊層、hermes portalhermes prompt-sizehermes sessions optimizeNew models:deepseek-v4-flashMiniMax-M3(1M context)、qwen3.7-plusgemini-3.5-flash;桌面啟動器中的一級xAI Grok OAuth;模糊模型選擇器;每小時目錄重新整理。Skills:更精簡的預設集合(Spotify→原生plugin、Linear→hermes mcp install linear、移除失效skills)、environments:相關性閘門(kanban/docker/s6)、NVIDIA/skills預設可信tap、漸進式(scoped)MCP/plugin tool揭露。Security:CVE-2026-48710(Starlette BadHost)釘選≥1.0.1;SSRF檢查移出event loop;Bedrock bearer token從subprocess env移除;bws_cache.json加上讀取防護;docker restart/stop/kill加入危險模式;隱形Unicode清理。結案2項P0+62項P1(16項security-tagged)。 20
2026-05-31 指南v1.7.1:v0.15.1(2026年5月29日,01:12 UTC)— Velocity修補版。Velocity發布後同日hotfix;補上標籤v2026.5.29列。修復影響loopback mode部署的dashboard 401重新載入迴圈。Docker不再將--insecure視為隱含設定——若要重新啟用,需明確設定HERMES_DASHBOARD_INSECURE=1。MCP裸命令(npxnpmnode)再次能在Docker容器內正確解析。Skills頁面source pills與category sidebar可正常呈現。Kanban workers會乾淨回應SIGTERM,不再留下孤立程序。Skills.sh目錄透過sitemap探索,從858筆擴充至19,932筆。28個commits、21個merged PRs、9位contributors。v0.15.2(2026年5月29日,13:37 UTC)— Velocity封裝修補版。修復wheel與sdist發行套件,將plugin.yaml manifests一併打包,讓從PyPI安裝時不需旁載source tree。僅封裝hotfix,4位contributors。 23
2026-05-28 指南v1.7:新增v0.15.0(2026年5月28日)— The Velocity release(標籤v2026.5.28)。重點:大規模refactor通盤整理+新的orchestration primitives。Codebase refactoring:run_agent.py減少76%(16,083→3,821行),分散到14個內聚模組。Multi-agent Kanban v2:自動將高階目標拆解為subtasks、用於平行worker協調的swarm topology、逐任務模型覆寫、排程任務、worktree管理。Performance:冷啟動再省1秒;每次對話function calls減少47%;session_search重新設計後快4,500倍,並移除LLM相依性(同時消除其API成本)。Security:Promptware防禦在3個安全關卡保護系統免受Brainworm類prompt injection;Bitwarden Secrets Manager整合用單一bootstrap token取代多個逐provider API keys。Skill bundles:用單一slash command同時載入多個skills。TUI session orchestrator:在單一終端機視窗中管理多個sessions。New providers:Krea 2(Medium/Large)與FAL plugin支援影像生成;xAI整合輪新增web-search plugin、OAuth upstream、退役模型偵測與自然TTS停頓。統計:1,302個commits、747個merged PRs、321位community contributors。根據GitHub release notes,同日或隔日patch release處理dashboard 401重新載入迴圈、Docker --insecure明確env var、MCP在Docker中的裸命令解析(npxnpmnode)、Skills頁面恢復、Kanban worker SIGTERM處理,以及透過sitemap取得完整19,932筆Skills目錄。 24
2026-05-21 指南v1.6:新增v0.14.0(2026年5月16日)— The Foundation release。重點:更輕量的安裝/runtime基礎,加上更廣泛的provider、gateway、media與verification介面。新增SuperGrok OAuth搭配grok-4.3 1M context、供OAuth providers使用的OpenAI相容hermes proxy、一級x_searchpip install hermes-agent、lazy dependency installs、啟動快約19秒、browser CDP calls快180倍、LINE+SimpleX Chat達22個messaging platforms、Microsoft Teams端到端、/handoff/subgoal、Telegram/Discord原生clarify buttons、Discord history backfill、raw-pixel vision_analyze、逐turn檔案變更verifier footer、每次寫入時的LSP語意診斷、統一video_generate、供非Anthropic providers透過cua-driver使用的computer_use、OSC8可點擊URLs、Zed ACP Registry支援、OpenRouter Pareto Code router、NovitaAI、Codex app-server runtime、huggingface/skills可信tap、9個選用skills、plugin ctx.llm / tool_override、Brave/DDGS web search、Qwen Cloud重新命名、原生Windows beta,以及12項P0 / 50項P1結案。 19
2026-05-07 指南v1.5:新增v0.13.0(2026年5月7日)— The Tenacity release。重點:耐久的multi-agent Kanban board(heartbeat、reclaim、zombie detection、hallucination gate、逐任務max_retries、multi-project boards),將swarms從delegation pattern提升為一級primitive。/goal command讓agent跨turn鎖定目標(Ralph-loop pattern作為slash command)。新的video_analyze tool,Gemini優先,並支援可擴充的相容模型。xAI Custom Voices TTS provider支援voice cloning。7-language i18n(zh-Hans、ja、de、es、fr、uk、tr)用於CLI與gateway messages;docs僅zh-Hans。Google Chat作為第20個messaging platform,透過可插拔adapter pattern;IRC+Microsoft Teams已遷移到同一pattern。ProviderProfile ABC+plugins/model-providers/可在不修改核心的情況下插拔第三方providers。Session auto-resume跨gateway restart、/update與source-file reload。Checkpoints v2重寫為single-store設計,具備真正pruning與磁碟guardrails。8項P0 security closures:secret redaction預設啟用、Discord跨guild DM bypass(CVSS 8.1)、WhatsApp stranger-reject+self-chat-mute、MCP OAuth TOCTOU、CLI auth.json TOCTOU、browser SSRF floor、cron prompt-injection scanning、hermes debug share redaction。Post-write linting支援Python/JSON/YAML/TOML、cron no_agent script-only mode、跨Slack/Telegram/Mattermost/Matrix/DingTalk的平台allowlists、MCP增強(SSE transport、OAuth forwarding、image MEDIA tags)。自v0.12.0以來統計:864個commits、588個merged PRs、829個files changed、295位community contributors、282個issues closed(13項P0、36項P1)。 18
2026-05-06 指南v1.4:新增v0.12.0(2026年4月30日)— The Curator release。重點:在gateway的cron ticker上執行的自主背景Curator(預設7天週期),會根據rubric評分skill library、修剪失效skills、整併相關skills,並寫入逐次執行報告——Hermes會在active sessions之間自我維護。Self-improvement loop升級,加入rubric-based grading、active-update bias、正確runtime繼承,以及僅限memory與skills的scoped toolsets。4個新的inference providers:GMI Cloud、Azure AI Foundry、MiniMax OAuth與Tencent Tokenhub。LM Studio升級為一級支援。遠端model catalog manifests現在可在不發版的情況下自動更新。2個新的messaging platforms:Microsoft Teams(第19個,透過可插拔gateway架構)與Tencent Yuanbao(第18個,原生文字+媒體)。Native Spotify透過PKCE OAuth搭配內建skill;Google Meet plugin支援通話與轉錄;Piper local TTS provider。ComfyUI v5+TouchDesigner-MCP從選用改為預設內建。新skills:Humanizer、claude-design、design-md、airtable。CLI新增:hermes -z one-shot mode、hermes update --check preflight、/reload-skills slash command、可插拔busy-indicator styles。透過lazy agent init與lazy imports,可見TUI冷啟動縮短約57%。Security:secret redaction預設停用,以避免payload損毀;針對不可復原命令的強硬blocklist。統計:1,096個commits、550個merged PRs、213位community contributors。 17
2026-04-25 指南v1.3:新增v0.11.0(2026年4月23日)— The Interface release。完整以React/Ink重寫互動式TUI,搭配Python JSON-RPC後端(tui_gateway);sticky composer、支援OSC-52剪貼簿的即時串流、穩定picker keys、具逐turn秒錶與git branch的status bar、/clear確認、light-theme preset、subagent spawn觀察性覆疊層。可插拔transport architecture——將format conversion與HTTP transport抽出至agent/transports/,讓provider plumbing更清晰。Native AWS Bedrock透過Converse API。5條新的inference paths:NVIDIA NIM、Arcee AI、Step Plan、Google Gemini CLI OAuth與Vercel ai-gateway。透過Codex OAuth使用GPT-5.5——新的OpenAI旗艦模型現在可透過ChatGPT Codex OAuth存取,不需另外的API key。QQBot(第17個messaging platform)支援QR掃描設定與串流。Plugin surface expansion:slash commands、tool dispatch、execution blocking、result transformation。/steer <prompt>——執行中agent微調,會注入一則note,讓執行中的agent在下一次tool call後看見;不中斷turn,也不破壞prompt cache。Shell hooks將scripts接為lifecycle hooks,不需Python plugins。Webhook direct-delivery mode將payloads直接轉送到platform chat,繞過agent以進行fan-out。Smarter delegation具備orchestrator roles、可設定spawn depth與檔案協調。Dashboard新增plugin system、即時theme switching、i18n與行動裝置響應式支援。自v0.9.0以來統計:1,556個commits、761個merged PRs、1,314個files changed、224,174筆insertions、29位community contributors。 25
2026-04-16 指南v1.2:新增v0.10.0——Nous Tool Gateway。付費Nous Portal訂閱者現在無需額外API keys,即可使用managed tools(Firecrawl web search、FAL / FLUX 2 Pro image generation、OpenAI TTS、Browser Use browser automation)。透過新的use_gateway config欄位逐tool選用。當gateway與直接API keys都已設定時,runtime會優先使用gateway。移除HERMES_ENABLE_NOUS_MANAGED_TOOLS env var。Hermes Agent CLI維持MIT授權且完全免費。 26
2026-04-13 指南v1.1:新增v0.8.0與v0.9.0功能。Local web dashboard、/fast模式、iMessage+WeChat platforms(共16個)、background process monitoring(watch_patterns)、可插拔context engine、hermes backup/hermes import、Termux/Android、xAI+MiMo+Google AI Studio+Qwen providers、/debug command、全面security hardening。 15 16
2026-04-10 指南v1.0:首次發布,涵蓋Hermes Agent v0.7.0。Provider auth、config、CLI、slash commands、tools、skills、memory、gateway、cron、MCP、compression、architecture、OpenClaw migration、troubleshooting、FAQ。

參考資料


  1. Nous Research,“Hermes Agent”專案README,位於GitHub。產品說明(自我改進代理、多供應商、訊息gateway、終端後端、skill演進、cron排程器、委派)與“Quick Install”單行指令的主要來源。 

  2. Nous Research,Hermes Agent文件中的“AI Providers”。完整供應商清單、各供應商驗證方法(Nous Portal OAuth、Codex裝置碼、GitHub Copilot權杖類型、Anthropic三種驗證方法、中國AI供應商、Hugging Face路由、自訂端點)、三種驗證路徑(.env中的API金鑰、透過hermes model使用OAuth、config.yaml中的自訂端點)、/model斜線命令語法(包含custom:name:model)、Ollama/vLLM/SGLang/llama.cpp/LM Studio設定範本、WSL2網路指引、上下文長度偵測鏈、備援模型設定、智慧模型路由,以及具名自訂供應商的主要來源。本文所有供應商專屬環境變數名稱、權杖類型、base URL覆寫與模型識別碼,皆出自此頁。 

  3. Nous Research,Hermes Agent開發者指南中的“Architecture”。系統總覽圖、目錄結構、資料在CLI session與gateway訊息路徑中的流向、三種API模式(chat_completionscodex_responsesanthropic_messages)、透過runtime_provider.py進行供應商解析、透過SQLite + FTS5進行session持久化、訊息gateway平台清單、plugin system探索來源、profile隔離,以及6項設計原則的主要來源。 

  4. Nous Research,Hermes Agent使用者指南中的“Configuration”。設定目錄結構、config.yaml.env規則(「非秘密設定以config.yaml為準」)、設定優先順序鏈(CLI args → env → config.yaml → .env → defaults)、上下文壓縮設定(含thresholdtarget_ratioprotect_last_nsummary_modelsummary_providersummary_base_urlcompression.*區塊)、預算壓力門檻(70%注意、90%警告)、本機供應商自動調整的串流逾時,以及完整輔助模型設定區塊(auxiliary:,含visionweb_extractapprovalcompressionsession_searchskills_hubmcpflush_memories槽位)的主要來源。"main"供應商僅限用於輔助、壓縮、備援槽位的限制也出自此頁。 

  5. Nous Research,Hermes Agent指南中的“Migrate from OpenClaw”。OpenClaw → Hermes遷移流程的來源。 

  6. Nous Research,Hermes Agent參考文件中的“CLI Commands Reference”。本文記錄的每個頂層CLI命令之主要來源,包括hermes chathermes modelhermes gatewayhermes setuphermes authhermes statushermes cronhermes webhookhermes doctorhermes dumphermes logshermes confighermes pairinghermes skillshermes honchohermes memoryhermes acphermes mcphermes pluginshermes toolshermes sessionshermes insightshermes clawhermes profilehermes completionhermes updatehermes uninstall。本文所有子命令旗標、選項說明、憑證池行為、記錄篩選語法、OpenClaw遷移旗標、profile管理命令與服務安裝命令皆出自此頁。 

  7. Nous Research,Hermes Agent入門指南中的“Installation”。單行安裝指令、安裝程式行為(先決條件、平台支援、Termux自動偵測、Windows/WSL2需求)、選用extras表格、手動安裝步驟與驗證命令的主要來源。 

  8. Nous Research,“CLI Commands Reference”——請特別參閱hermes dump章節,其中說明該命令的輸出格式(標頭、環境、身分、模型、終端、API金鑰、功能、服務、工作負載、設定覆寫)以及用於分享診斷資訊的用途。 

  9. Nous Research,Hermes Agent參考文件中的“Slash Commands Reference”。本文列出的每個斜線命令、COMMAND_REGISTRY架構、CLI與訊息端的分工、動態skill斜線命令、config.yaml中的快速命令、前綴比對行為,以及僅限訊息端命令(/status/sethome/approve/deny/update/commands)的主要來源。 

  10. Nous Research,Hermes Agent使用者指南中的“Tools & Toolsets”。工具類別總覽、toolset使用命令、6種終端後端(local、docker、ssh、singularity、modal、daytona)、容器設定(cpu、memory、disk、persistent)、容器安全強化、背景程序管理API與sudo支援的主要來源。 

  11. Nous Research,Hermes Agent使用者指南中的“Skills System”。漸進式揭露、SKILL.md格式、平台專屬skills、條件式啟用(fallback_for_toolsetsrequires_toolsetsfallback_for_toolsrequires_tools)、透過skill_manage由代理管理skills、skill hub命令與來源清單(officialskills-shwell-knowngithubclawhubclaude-marketplacelobehub)、安全掃描與信任等級,以及外部skill目錄的主要來源。 

  12. Nous Research,Hermes Agent使用者指南中的“Persistent Memory”MEMORY.md / USER.md字元限制、凍結快照模式、memory工具動作(addreplaceremove)、應儲存與應略過的內容、memory與session search比較,以及8個外部memory供應商(Honcho、OpenViking、Mem0、Hindsight、Holographic、RetainDB、ByteRover、Supermemory)清單的主要來源。 

  13. Nous Research,Hermes Agent使用者指南中的“Personality & SOUL.md”SOUL.md行為(位於HERMES_HOME、永不覆寫、system prompt中的第1槽、納入前會進行安全掃描)、SOUL.md與AGENTS.md差異、內建personality清單(從helpfulhype共14種personality)、config.yaml中的自訂personality、/personality覆疊模式,以及完整prompt stack組裝順序的主要來源。 

  14. Nous Research,Hermes Agent指南與參考文件中的“Use MCP with Hermes”MCP Config Referenceconfig.yaml中含commandargsenv欄位的mcp_servers:設定格式來源。 

  15. Hermes Agent v0.8.0 Release Notes。2026年4月8日。背景程序自動通知、Nous Portal上的免費MiMo v2 Pro、跨平台即時/model切換、Google AI Studio原生供應商、Qwen OAuth、基於閒置的逾時、Slack/Telegram上的核准按鈕、MCP OAuth 2.1 PKCE、集中式記錄、plugin system擴充。 

  16. Hermes Agent v0.9.0 Release Notes。2026年4月13日。本機web dashboard、Fast Mode(/fast)、透過BlueBubbles使用iMessage、WeChat + WeCom、Termux/Android、背景程序監控(watch_patterns)、xAI + Xiaomi MiMo原生供應商、可插拔context engine、統一proxy支援、安全強化(修復path traversal、shell injection、SSRF、RCE)、hermes backup/hermes import/debug + hermes debug share、16個支援平台。487次commit、269個已合併PR、24位貢獻者。 

  17. Hermes Agent v0.12.0 Release Notes。2026年4月30日。「The Curator release。」自主背景Curator會在7天預設週期中,透過gateway的cron ticker為skill library評分、修剪並整併。自我改進迴圈升級:基於rubric的評分、active-update偏向、正確的runtime繼承、限制為memory與skills的scoped toolsets。4個新的推論供應商:GMI Cloud、Azure AI Foundry、MiniMax OAuth、Tencent Tokenhub。LM Studio提升為第一級支援。遠端模型catalog manifests可在不發版的情況下自動更新。2個新的訊息平台:Microsoft Teams(第19個,透過可插拔gateway架構)與Tencent Yuanbao(第18個,原生文字+媒體)。透過PKCE OAuth支援原生Spotify並內建skill;Google Meet plugin支援通話與轉錄;Piper本機TTS供應商。ComfyUI v5 + TouchDesigner-MCP預設內建。新skills:Humanizer、claude-design、design-md、airtable。CLI:hermes -z一次性模式、hermes update --check預檢、/reload-skills斜線命令、可插拔busy-indicator樣式。TUI冷啟動透過lazy initialization縮短約57%。安全性:預設停用secret redaction;針對不可復原命令的嚴格blocklist。自v0.11.0以來統計:1,096次commit、550個已合併PR、213位社群貢獻者。另請參閱:v2026.4.30 release tag。 

  18. Hermes Agent v0.13.0 Release Notes。2026年5月7日。「The Tenacity release。」多代理Kanban board,具heartbeat、reclaim、zombie detection、hallucination gate、每任務max_retries、多專案boards。用於跨回合目標鎖定的/goal斜線命令(Ralph loop原語),並可設定回合預算。video_analyze工具,Gemini優先並具相容的多模態擴充性。xAI Custom Voices TTS供應商,支援voice cloning。7語言i18n:zh-Hans、ja、de、es、fr、uk、tr(CLI + gateway訊息;文件僅zh-Hans)。Google Chat透過可插拔adapter pattern成為第20個訊息平台,具通用env_enablement_fn / cron_deliver_env_var plugin hooks;IRC與Microsoft Teams也遷移到同一模式。ProviderProfile ABC + plugins/model-providers/支援可插拔第三方供應商。Gateway重啟、/update與原始檔重新載入後可自動恢復session。Checkpoints v2單一儲存重寫,具實際修剪、磁碟guardrails、無孤立shadow repos。8項P0安全性修復:secret redaction預設開啟、Discord跨guild DM繞過(CVSS 8.1,role allowlists限guild範圍)、WhatsApp預設拒絕陌生人+永不在self-chat回應、MCP OAuth憑證儲存TOCTOU、CLI憑證寫入器中的auth.json TOCTOU、hybrid routing中的browser cloud-metadata SSRF底線、cron組裝prompt掃描(包含skill內容)以防prompt injection、hermes debug share上傳時log-content redaction。其他值得注意項目:Python/JSON/YAML/TOML寫入後lint、cron no_agent純script watchdog模式、Slack/Telegram/Mattermost/Matrix/DingTalk跨平台allowlists、MCP強化(SSE transport、OAuth forwarding、image results作為MEDIA tags)。自v0.12.0以來統計:864次commit、588個已合併PR、829個檔案變更、295位社群貢獻者、282個issues關閉(13個P0、36個P1)。 

  19. Hermes Agent v0.14.0 Release Notes。2026年5月16日。「The Foundation release。」自v0.13.0以來:808次commit、633個已合併PR、1,393個檔案變更、165,061行新增、545個issues關閉(12個P0、50個P1),以及215位社群貢獻者。新增SuperGrok OAuth,支援grok-4.3 1M上下文;hermes proxyx_search、PyPI封裝、lazy dependencies、跨session 1小時Claude prompt cache、啟動加快約19秒、browser CDP呼叫快180倍、LINE與SimpleX Chat使訊息平台達22個、/handoff、原生clarify按鈕、Discord歷史回填、raw-pixel vision_analyze、每回合file-mutation verifier footer、LSP語意診斷、統一video_generate、cua-driver computer_use、OSC8連結、Zed ACP Registry支援、OpenRouter Pareto Code router、NovitaAI、Codex app-server runtime、huggingface/skills、plugin ctx.llmtool_override、Brave/DDGS搜尋、dangerous-command hardening、/subgoal、Qwen Cloud更名、原生Windows beta、共16個locale,以及廣泛文件與測試更新。 

  20. Hermes Agent v0.16.0 release notes,「The Surface Release」,標籤v2026.6.5,發布於2026-06-06T00:55:58Z(release-tag日期為2026年6月5日);截至2026-06-08為最新版本。新的原生Hermes Desktop(Electron,macOS/Linux/Windows;透過安全WebSocket搭配OAuth或user/pass連線至遠端gateway;每個profile可設定遠端hosts;跨profile @session連結;透過typed i18n提供簡體中文UI,display.language)。Web dashboard擴充為完整admin panel(MCP catalog toggles、憑證管理、webhook/hook建立、memory設定、gateway控制、System頁面含check-before-update + Debug Share、Channels頁面;可插拔auth,含self-hosted OIDC與hermes dashboard register)。新命令:/undo [N]、可設定預設介面(cli/tui--cli)、TUI /model + Sessions overlay、hermes portalhermes prompt-sizehermes sessions optimize。新模型:deepseek-v4-flashMiniMax-M3(1M上下文)、qwen3.7-plusgemini-3.5-flash;xAI Grok OAuth;fuzzy picker;每小時catalog refresh。Skills:更精簡的預設集合、environments: relevance gate、NVIDIA/skills預設trusted tap、progressive tool disclosure、MCP false-OAuth-success修復。安全性:CVE-2026-48710(Starlette BadHost)釘選≥1.0.1、SSRF檢查移出event loop、Bedrock bearer token從subprocess env移除、bws_cache.json加讀取防護、docker restart/stop/kill新增dangerous-pattern、invisible-unicode sanitization;已關閉2個P0 + 62個P1(16個security-tagged)。排除release-note行銷敘事(PR/commit數、「none of this existed a week ago」);僅記錄與該tag相關的具體功能/版本事實。目前session驗證日期:2026年6月8日。 

  21. Hermes Agent v0.17.0 release notes,「The Reach Release」,標籤v2026.6.19,2026年6月19日;截至2026-06-21為最新版本。訊息:透過Photon Spectrum使用iMessage(device-code OAuth、hermes photon login、無Mac relay);官方WhatsApp Business Cloud API adapter(取代bridge process);SimpleX groups、原生attachments、text batching、auto-accept;Raft內建platform plugin。模型/供應商:z-ai/glm-5.2(1M上下文)、anthropic/claude-fable-5laguna-m.1nemotron-3-ultragrok-composer-2.5-fast(xAI OAuth、200k上下文);xAI預設→grok-build-0.1;Anthropic adaptive models使用modern thinking contract(無reasoning欄位)。CLI/slash:/version/billinghermes photon loginhermes curator run --consolidate(opt-in)、hermes model GUI、profile cloning。Desktop:背景subagent watch-windows(delegate_task(background=true))、Composer model selector、可重新綁定shortcuts、原生OS通知、per-thread drafts、VS Code Marketplace themes、日文+繁體中文UI。Dashboard:完整profile builder、global profile switcher、Skills Hub重整並加入security scan、Automation Blueprints、安全登入(OAuth後方401)。Skills/tools:image_generate跨供應商image-to-image editing、memory operations原子批次、simplify-code parallel-review skill、boolean write_approval取代write_mode。架構:背景subagents(立即回傳handle,結果以一個turn重新進入)、MCP elicitation handler用於tool-call中途確認、late-connecting MCP tools在turn之間公開、可插拔CronScheduler + Chronos managed-cron、Managed scope(/etc/hermes admin-pinned)、Gateway-Gateway relay。安全性:shell-escape denylist繞過已關閉、approval module缺失與own-policy gateway adapters採fail-closed、cron job-script env已清理、debug dumps中redact secrets、public status隱藏host metadata、MCP stdio exfil-pattern screening、urllib3 + PyJWT CVE升級。排除release marketing framing(commit/PR數)。目前session驗證日期:2026年6月21日。 

  22. Hermes Agent v0.18.0 release notes(標籤v2026.7.1),2026年7月1日——「The Judgment Release。」優先待辦清掃(所有P0/P1關閉,12天內約692項);Mixture-of-Agents成為所有介面中可選的第一級模型,每個reference model的完整輸出會以各自標記區塊呈現,並支援即時答案串流;/goal的completion contracts(agent透過執行專案檢查驗證自身工作);/learn命令(只要描述即可將任何內容轉為可重用skill,並自動遵循CONTRIBUTING.md);/journey視覺化memory/skill時間軸,支援編輯與desktop memory graph;背景subagent fan-out(多個並行delegated tasks);Desktop Projects(project/repo/lane model);具drain coordination的scale-to-zero gateway;Google Vertex AI支援(透過GCP service accounts使用Gemini,自動OAuth2 token refresh);/prompt $EDITOR命令。目前session於2026年7月1日(PST)對GitHub releases頁面驗證;v0.18.0為最新release。 

  23. Hermes Agent v0.15.1 release notesHermes Agent v0.15.2 release notes。v0.15.1(2026年5月29日01:12 UTC)是同日Velocity hotfix:修復loopback mode下dashboard 401 reload-loop;Docker現在需要明確設定HERMES_DASHBOARD_INSECURE=1;MCP bare commands(npxnpmnode)可在Docker containers中解析;Skills頁面的source pills + category sidebar已復原;Kanban workers會回應SIGTERM;Skills.sh catalog透過sitemap從858筆增至19,932筆。28次commit、21個已合併PR、9位貢獻者。v0.15.2(2026年5月29日13:37 UTC)是僅限封裝的hotfix,將plugin.yaml manifests納入wheel與sdist發行,使PyPI安裝不必側載原始碼即可運作。4位貢獻者。 

  24. Hermes Agent v0.15.0 release notesHermes Agent releases page。「The Velocity release」,標籤v2026.5.28。統計:1,302次commit、747個已合併PR、321位社群貢獻者。重構run_agent.py達76%(跨14個模組由16,083行降至3,821行)。新增multi-agent Kanban platform(auto-decomposition、swarm topology、per-task model overrides、scheduled tasks、worktree management)。session_search重新設計後快4,500倍,並移除LLM相依。針對Brainworm類prompt injection,在3個security chokepoints提供Promptware防護。Bitwarden Secrets Manager整合以單一bootstrap token取代多個各供應商API金鑰。Skill bundles可讓多個skills透過單一斜線命令載入。TUI session orchestrator可在同一個終端視窗管理多個session。Krea 2(Medium/Large)與FAL plugin支援image generation。xAI整合回合新增web-search plugin、OAuth upstream、retired-model detection,以及voice output中的自然TTS pauses。GitHub上提及的patch release處理dashboard 401 reload-loop、Docker --insecure需明確設定HERMES_DASHBOARD_INSECURE=1環境變數、MCP bare command resolution(npxnpmnode)於Docker中、Skills頁面呈現、Kanban worker SIGTERM處理、透過sitemap取得完整19,932筆Skills catalog,以及一小批.md delivery、gateway probe safety、web URL redaction、kanban-worker vision capability與hindsight observation defaults修正。 

  25. Hermes Agent v0.11.0 Release Notes。2026年4月23日。「The Interface release」——interactive CLI完整React/Ink重寫,搭配Python JSON-RPC後端(tui_gateway);可插拔transport架構(agent/transports/);透過Converse API原生支援AWS Bedrock;5個新推論路徑(NVIDIA NIM、Arcee AI、Step Plan、Google Gemini CLI OAuth、Vercel ai-gateway);透過Codex OAuth支援GPT-5.5;QQBot成為第17個訊息平台,採QR-scan設定;擴充plugin surface(slash commands、tool dispatch、execution blocking、result transformation);/steer <prompt>用於執行中agent nudge,會在下一次tool call後注入上下文,且不破壞prompt cache;不使用Python plugins的lifecycle events shell hooks;webhook direct-delivery mode會將payload直接轉發至平台chat;更智慧的delegation,具orchestrator roles + configurable spawn depth + file coordination;dashboard plugin system、live theme switching、i18n、mobile responsiveness。自v0.9.0以來統計:1,556次commit · 761個已合併PR · 1,314個檔案變更 · 224,174行新增 · 29位社群貢獻者。另請參閱:Hermes Agent v0.11.0 GitHub release tag。 

  26. Hermes Agent v0.10.0 Release Notes。2026年4月16日。「The Tool Gateway Release。」Nous Tool Gateway整合提供給付費Nous Portal訂閱者——無需額外API金鑰,即可託管存取Firecrawl web search、FAL / FLUX 2 Pro image generation、OpenAI TTS與Browser Use瀏覽器自動化。透過新的use_gateway設定欄位,逐工具選擇啟用。當gateway與直接API金鑰皆已設定時,runtime優先使用gateway。完整整合hermes toolshermes status。取代已棄用的HERMES_ENABLE_NOUS_MANAGED_TOOLS環境變數。由@jquesnelle(emozilla)實作。Hermes Agent CLI維持MIT授權且完全開源;gateway是與既有Portal訂閱產品的整合,不是對CLI設下的付費牆。另請參閱:Nous Portal以了解訂閱價格與註冊。 

NORMAL hermes.md EOF