> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> JieKou AI model APIs are OpenAI-compatible. Base URL for users in mainland China (direct, no VPN): https://api.highwayapi.ai/openai; elsewhere: https://api.jiekou.ai/openai. Anthropic-compatible base URL: https://api.highwayapi.ai/anthropic or https://api.jiekou.ai/anthropic.
> Authenticate with `Authorization: Bearer <API_KEY>`; with Anthropic SDKs or Claude Code, pass the same key as `ANTHROPIC_AUTH_TOKEN`. Users create keys at https://jiekou.ai/settings/key-management. Never print or hardcode a real key.
> Get current model IDs from GET https://api.jiekou.ai/openai/v1/models instead of reusing model names from memory.

# Hermes

## 什么是Hermes？

Hermes 是 Nous Research 推出的开源自托管自主 Agent，官方定位是“会和你一起成长的 Agent”，最大的特点是内置学习闭环：它会从完成任务的经验中自动创建技能，在使用中自我改进，并用全文检索加 LLM 摘要回溯历史会话，从而跨会话记住项目和用户偏好。它提供完整的终端 TUI，同时内置消息网关，可以把同一个 Agent 接到 Telegram、Discord、Slack、WhatsApp、Signal 和邮件，共享同一份记忆。

Hermes 内置 cron 调度器，可用自然语言设定每日报告、夜间备份等无人值守任务，也支持派发隔离子 Agent 并行工作；执行环境可在本地、Docker、SSH、Modal、Daytona、Vercel Sandbox 之间切换，因此能跑在廉价 VPS 或云端。模型侧不锁定厂商，支持 Nous Portal、OpenRouter、OpenAI 及自定义接口地址。

官网：[https://hermes-agent.nousresearch.com/](https://hermes-agent.nousresearch.com/)

Github：[https://github.com/NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent)

## 如何将接口AI接入Hermes？

### 获取 API Key

1. 登录官网 jiekou.ai 注册。

2. 进入管理后台，点击右上方“我的”，在下拉列表中选择“API 密钥管理”。

   ![](https://mintcdn.com/jiekou/f-T_E3hNj8sGYUsR/images/hermes-01.png?fit=max\&auto=format\&n=f-T_E3hNj8sGYUsR\&q=85\&s=8a3154aa6619c1d39a93c6030bfa024a)

3. 点击“创建”，输入密钥名称。建议填写便于识别的名称，方便后续在控制台区分不同用途的密钥。

   ![](https://mintcdn.com/jiekou/f-T_E3hNj8sGYUsR/images/hermes-02.png?fit=max\&auto=format\&n=f-T_E3hNj8sGYUsR\&q=85\&s=f7fb594f8b82ba45d41ed98e72d1ee46)

4. 点击复制并记录生成的 Key。控制台不可再次查看，请妥善保存Key以便后续使用。

### 将接口AI接入Hermes

1. 安装好Hermes之后，进入终端，运行：

```bash theme={null}
hermes model
```

2. 在弹出的选项中，选择“Custom Endpoint”这一项

   ![](https://mintcdn.com/jiekou/eY20tqhq6niA3Adp/images/hermes-03.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=f1e4392bf1cff0c0e401bcef99d6263a)

3. 填入接口AI的URL

* 国内直连URL：[https://api.highwayapi.ai/openai](https://api.highwayapi.ai/openai)
* 海外URL：[https://api.jiekou.ai/openai](https://api.jiekou.ai/openai)

  ![](https://mintcdn.com/jiekou/eY20tqhq6niA3Adp/images/hermes-04.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=f6a880e2b699736fb9f18ce662bb96e4)

4. 填入刚刚复制的Key

   ![](https://mintcdn.com/jiekou/eY20tqhq6niA3Adp/images/hermes-05.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=37d7a63dc5a9724fe585a10af4adab6f)

5. 选择模型支持的API协议，按回车后弹出接口AI的模型列表

   ![](https://mintcdn.com/jiekou/eY20tqhq6niA3Adp/images/hermes-06.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=671730a15a2751ad2fbf86a093778e64)

6. 选择你想要调用的模型，输入序号

   ![](https://mintcdn.com/jiekou/eY20tqhq6niA3Adp/images/hermes-07.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=117a7d38d4652a124b54a5656608d262)

7. 输入模型支持的上下文长度，为服务商命名

   ![](https://mintcdn.com/jiekou/eY20tqhq6niA3Adp/images/hermes-08.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=447ac8de93505242ab1872ddc4861afb)

8. 选择思考深度后，即可在Hermes中使用接口AI提供的模型服务

   ![](https://mintcdn.com/jiekou/eY20tqhq6niA3Adp/images/hermes-09.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=c09ec649706684bd87893682174df934)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.