> ## 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.

# Cline

## 什么是Cline？

Cline 是一个开源、可自带模型的自主编程 Agent，最初以 Claude Dev 的名字于 2024 年发布，现由 Cline Bot Inc. 维护。它能读取项目结构、跨文件协同修改代码，并把每一处改动以可审阅的 diff 呈现；配合基于隐藏 Git 仓库的 Checkpoint 机制，可以随时回滚文件或对话，让试错成本接近于零。

Cline 可以直接在终端执行命令并读取输出，处理 dev server、测试和部署这类长时进程；Plan 与 Act 两种模式把“规划”和“执行”分开，每一步都可逐条批准或开启 auto-approve。它支持 `.clinerules` 项目规范、MCP 服务器与插件市场，并以 VS Code、Cursor、Windsurf、JetBrains、Zed、Neovim 扩展以及 CLI、桌面端、云端任务等多种形态分发。

官网：[https://cline.bot/](https://cline.bot/)

Github：[https://github.com/cline/cline](https://github.com/cline/cline)

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

### 获取 API Key

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

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

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

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

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

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

### 将接口AI接入Cline

1. 安装好Cline后，在设置中的Provider找到BYOK，在供应商列表中寻找或搜索到Jiekou.AI
2. 填入刚刚复制的API Key，默认URL是海外用户专用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/cline-03.png?fit=max\&auto=format\&n=eY20tqhq6niA3Adp\&q=85\&s=c6aea73648333c5585c8b5fb4996bad6)

3. 在对话中将接口AI作为供应商，即可选择所需模型进行调用

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


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