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

# Kilo Code CLI 自定义模型配置

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

Kilo CLI 同样读取 `kilo.jsonc`，但需要从启动 CLI 的 shell 读取 Token。

## 配置

在 `~/.config/kilo/kilo.jsonc` 写入：

```jsonc theme={null}
{
  "provider": {
    "acedatacloud": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://api.acedata.cloud/v1",
        "apiKey": "{env:ACEDATACLOUD_API_KEY}"
      },
      "models": { "MODEL_ID": { "name": "MODEL_ID" } }
    }
  },
  "model": "acedatacloud/MODEL_ID"
}
```

然后在当前 shell 导出 Token：

```bash theme={null}
export ACEDATACLOUD_API_KEY="PASTE_YOUR_ACEDATACLOUD_API_TOKEN_HERE"
```

## 验证

```bash theme={null}
kilo run -m acedatacloud/MODEL_ID "Reply only OK"
```

如果 CLI 读不到 Token，确认变量已经 `export`，而不只是写进未加载的 `.env` 文件。

## 官方参考

* [Kilo Code Custom Provider](https://kilo.ai/docs/ai-providers/openai-compatible)
* [Kilo Code CLI](https://kilo.ai/docs/code-with-ai/platforms/cli)

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