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

# Roo Code 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. 配置

Roo Code 官方提供 OpenAI-compatible Provider，并要求模型支持原生 OpenAI tools/function calling。

1. 在 VS Code 打开 Roo Code 设置。
2. 将 **API Provider** 设为 **OpenAI Compatible**。
3. 填写：

| 字段       | 值                              |
| -------- | ------------------------------ |
| Base URL | `https://api.acedata.cloud/v1` |
| API Key  | 刚刚复制的 API Key                  |
| Model ID | 在 Coding 配置向导中选择的模型 ID         |

![Roo Code OpenAI Compatible 配置界面](https://cdn.acedata.cloud/b6a0e7156438.png)

接着根据模型实际能力设置 context、max output、图片和 computer-use 选项。最后保存配置并重新加载 VS Code。

## 3. 验证

先发送 `Reply only OK`，再让 Roo Code 读取一个测试文件。若普通聊天成功但 Agent 工具失败，请更换支持原生 tool calling 的模型，并确认兼容端点能正确流式返回工具参数与结果。

## 官方参考

* [Roo Code OpenAI-compatible Provider](https://roocodeinc.github.io/Roo-Code/providers/openai-compatible/)
* [Roo Code 官方源文档](https://github.com/RooCodeInc/Roo-Code/blob/main/apps/docs/docs/providers/openai-compatible.md)

返回 [Coding Plan 配置中心](https://platform.acedata.cloud/documents/coding-plan-integration)。
