分类: Hermes Agent 教程

Hermes Agent 接入 DeepAI、OpenAI Compatible API、自定义模型端点、部署和排错教程。

Hermes 代理后访问网页被 Blocked?198.18.0.0/15 Fake-IP 被当成私网的排查Hermes 代理后访问网页被 Blocked?198.18.0.0/15 Fake-IP 被当成私网的排查

Clash、Mihomo、Sing-box、Surge 开启 TUN/Fake-IP 后,Hermes 访问普通网站却报 Blocked: URL targets a private or internal address?本文解释 198.18.0.0/15 RFC2544 网段、Python ipaddress.is_private、SSRF 防护误拦和 allow_private_urls 的安全取舍。

让 Hermes 别回复却收到 Codex incomplete?空响应被重试 3 次的原因让 Hermes 别回复却收到 Codex incomplete?空响应被重试 3 次的原因

Hermes openai-codex 路径中,用户要求机器人不回复时,completed empty final answer 曾被归一化成 incomplete 并重试 3 次。本文解释空响应不等于未完成、finish_reason 误判、continuation loop 和群聊机器人“沉默成功”的重要性。

Matrix/Telegram 突然报 cannot import cfg_get?Hermes Gateway 升级后旧代码未重启排查Matrix/Telegram 突然报 cannot import cfg_get?Hermes Gateway 升级后旧代码未重启排查

Hermes 升级后 Matrix、Telegram、飞书突然报 cannot import name cfg_get?这通常不是平台配置或模型 API 问题,而是 Gateway 仍在运行旧代码/旧 import 状态。本文解释为什么 /reset 无效、gateway restart 有效,以及多 profile/system service 排查方法。

Telegram 一直提示 Interrupting current task?Hermes Gateway busy lock 卡死排查Telegram 一直提示 Interrupting current task?Hermes Gateway busy lock 卡死排查

Hermes Telegram 反复提示 Interrupting current task,但 /stop 又说 No active task to stop?这通常是 Gateway adapter._active_sessions 与 runner._running_agents 状态分裂导致的 stale busy lock。本文解释症状、/restart 临时恢复和 #14513 修复方向。

Telegram 里 /model 不生效?Hermes Gateway 远程切换模型失效排查Telegram 里 /model 不生效?Hermes Gateway 远程切换模型失效排查

Hermes Telegram Gateway 里 /model 看得到却不生效?本文解释 /model 被移除、CLI 切换不影响 Telegram session、Agent 幻觉式声称已切换,以及如何用日志和 provider 账单验证真实模型。

OpenRouter / NVIDIA 模型一接入就 400?Hermes Agent reasoning 参数误发排错指南OpenRouter / NVIDIA 模型一接入就 400?Hermes Agent reasoning 参数误发排错指南

Hermes 接入 OpenRouter、MiniMax 或 NVIDIA 模型时一发请求就 BadRequestError 400?问题可能不是 API Key,而是 reasoning extra_body 被发给了不支持 reasoning 扩展的模型。本文教你读 request_dump 并分层排查。

Hermes 输入 @ 就报 NameError: self is not defined?fuzzy file completions 排错指南Hermes 输入 @ 就报 NameError: self is not defined?fuzzy file completions 排错指南

Hermes CLI 输入 @ 触发文件补全时抛出 NameError: self is not defined?本文解释 _context_completions、@staticmethod、fuzzy file completions 的根因、临时绕过和升级修复路径。

Hermes Docker 里读不到 GITHUB_TOKEN?~/.hermes/.env 环境变量转发排错指南Hermes Docker 里读不到 GITHUB_TOKEN?~/.hermes/.env 环境变量转发排错指南

Hermes config set GITHUB_TOKEN 后,Docker terminal 里仍读不到环境变量?这可能是 Docker exec 只转发当前 shell env,却没加载 ~/.hermes/.env。本文解释 GITHUB_TOKEN、docker_forward_env、~/.gitconfig 挂载和容器内 printenv 排查方法。

Hermes Agent 启动报 Invalid key: c-S-c?prompt_toolkit 快捷键崩溃排错指南Hermes Agent 启动报 Invalid key: c-S-c?prompt_toolkit 快捷键崩溃排错指南

Hermes Agent 运行 hermes 或 hermes chat 刚显示 banner 就崩溃,报 Error: Invalid key: c-S-c?这通常不是 API Key 或模型问题,而是 prompt_toolkit 不支持 Ctrl+Shift+C 的 c-S-c keybinding。本文解释原因、判断方法、临时 workaround 和升级建议。

Hermes Agent provider:auto 选错辅助模型?title_generation 走 fallback provider 报 404 排错指南Hermes Agent provider:auto 选错辅助模型?title_generation 走 fallback provider 报 404 排错指南

Hermes Agent 主模型正常,但 title_generation 报 HTTP 404?可能是 auxiliary provider:auto 没跟随主 provider,而是选到 fallback provider(如 minimax),导致 SDK、api_mode 或 endpoint path 不匹配。本文解释 provider:auto、fallback_model、WeChat 错误泄露和显式配置 workaround。

Hermes Agent auxiliary 报 HTTP 404?anthropic_messages、base_url 与 /v1 路径改写排错指南Hermes Agent auxiliary 报 HTTP 404?anthropic_messages、base_url 与 /v1 路径改写排错指南

Hermes Agent auxiliary title_generation 报 HTTP 404、Cannot POST /v1/chat/completions?如果你配置的是 api_mode: anthropic_messages 和 /anthropic/ endpoint,可能是 custom auxiliary client 把 URL 改写成 OpenAI /v1 路径。本文解释根因、修复 commit 4e296dcdd 和排查方法。