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

# Cline for VS Code 配置指南

> AceDataCloud Coding Plan 集成指南 - Ace Data Cloud

## 1. 获取 API Key

打开 [Ace Data Cloud 应用列表](https://platform.acedata.cloud/console/applications)，进入可用的应用并复制 API Key。

![获取 Ace Data Cloud API Key](https://cdn.acedata.cloud/dvc3cg.jpg)

## 2. 配置 Cline

在 VS Code 安装并打开 Cline，然后通过 Cline 面板中的设置按钮进入 Provider 配置，填写：

| 字段                                | 值                              |
| --------------------------------- | ------------------------------ |
| API Provider                      | `OpenAI Compatible`            |
| Base URL                          | `https://api.acedata.cloud/v1` |
| API Key                           | 刚刚复制的 API Key                  |
| Model ID                          | Coding Plan 当前提供的模型 ID         |
| Custom Headers                    | 留空                             |
| Set Azure API version             | 留空                             |
| Use Azure Identity Authentication | 关闭                             |

![Cline OpenAI Compatible 配置界面](https://cdn.acedata.cloud/8f356c2f1378.png)

其余模型能力配置先保持默认；需要图片或更大的上下文时，再按所选模型实际能力调整。

## 3. 验证

保存后新建任务并发送 `Reply only OK`。再让 Cline 读取一个测试文件，确认模型支持工具调用；调用记录可在 [使用历史](https://platform.acedata.cloud/console/usages) 查看。

401 通常表示 Key 错误；404 通常表示 Base URL 或模型 ID 不正确。如果模型能聊天但不能操作文件，检查该模型的工具调用能力。

## 官方参考

* [Cline OpenAI Compatible Provider](https://docs.cline.bot/provider-config/openai-compatible)
* [Cline Model Providers](https://docs.cline.bot/sdk/model-providers)
