Hermes Agent 是 Nous Research 出的多供应商 AI Agent 框架,支持 OAuth、API key、自定义 endpoint 等多种接入方式,可以接 Telegram / Discord / Slack / WhatsApp / Signal 等通讯平台。 对接 RuAPI 最稳妥的方式是用 Hermes 的 “Custom endpoint”(OpenAI 兼容)模式。Documentation Index
Fetch the complete documentation index at: https://docs.ruapi.ai/llms.txt
Use this file to discover all available pages before exploring further.
前置条件
安装 Hermes
- Linux / macOS / WSL2
- Windows (PowerShell)
一行安装:装完重载 shell:
配置 RuAPI 端点
跑配置向导:选 'Custom endpoint'
向导会列出所有内置 provider(Nous Portal / OpenRouter / Anthropic / OpenAI / …)。下拉到底部,选 Custom endpoint (self-hosted / VLLM / etc.)。
选模型
向导会问要默认用哪个 model。常用:
gpt-5(OpenAI 系)claude-sonnet-4-6(Anthropic 系,OpenAI 兼容协议下也能调)deepseek-chat、kimi-k2.5、glm-5等
~/.hermes/config.yaml:
第一次验证
启动 CLI:切换模型
会话内:hermes model 改默认。
配置 Telegram / Discord 等渠道
模型对接完之后,跑 gateway 设置:常见问题
401 Unauthorized
401 Unauthorized
404 / model not found
404 / model not found
- 模型 ID 没在 RuAPI 上线。去 模型广场 看可用列表。
base_url末尾要带/v1。
为什么不用 Hermes 的 'Anthropic' 内置 provider?
为什么不用 Hermes 的 'Anthropic' 内置 provider?
Hermes 内置的 Anthropic 走 OAuth + Claude Max 订阅,对接第三方 Anthropic 兼容网关需要额外的 base URL 覆盖、不一定稳。Custom endpoint(OpenAI 兼容) 在 RuAPI 上是最直接的路径,Claude 系列模型同样可用。
想同时用 Nous Portal + RuAPI
想同时用 Nous Portal + RuAPI
Hermes 支持多 provider 共存。再跑
hermes model 加一个就行,会话内 /model 切换。Tools / function calling 不工作
Tools / function calling 不工作
OpenAI 兼容协议下,function calling 完整透传。如果某个工具调用失败,先检查模型本身是否支持 tool use(
gpt-5、claude-sonnet-4-6 都支持)。进阶
- Auxiliary models:Hermes 的 vision / web search / MoA 用辅助模型,默认跟主模型走,要省钱可单独换便宜模型,参考 Auxiliary Models。
- Credential pools:多 key 轮询、自动 failover,配置见 Credential Pools。