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

# Kimi Code CLI 配置指南

> 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. 安装 Kimi Code

macOS / Linux：

```bash theme={null}
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
```

Windows PowerShell：

```powershell theme={null}
irm https://code.kimi.com/kimi-code/install.ps1 | iex
```

也可以通过 npm 安装：

```bash theme={null}
npm install -g @moonshot-ai/kimi-code
```

## 3. 配置 AceDataCloud

编辑 `~/.kimi/config.toml`，加入以下配置：

```toml theme={null}
default_model = "acedatacloud/MODEL_ID"

[providers.acedatacloud]
type = "openai"
base_url = "https://api.acedata.cloud/v1"
api_key = "你的 API Key"

[models."acedatacloud/MODEL_ID"]
provider = "acedatacloud"
model = "MODEL_ID"
```

将两处 `MODEL_ID` 替换为 Coding Plan 当前提供的同一个模型 ID。`type = "openai"` 使用 OpenAI Chat Completions 协议。

配置文件包含 Key，macOS / Linux 建议限制权限：

```bash theme={null}
chmod 600 ~/.kimi/config.toml
```

## 4. 验证并启动

```bash theme={null}
kimi doctor
kimi provider list
kimi -p "Reply only OK"
```

进入项目后运行 `kimi` 即可开始使用。如果返回 401，检查 API Key；如果提示 model not found，确认 `default_model`、模型表名和 `model` 字段使用同一个 ID。

## 官方参考

* [Kimi Code](https://www.kimi.com/code)
* [Provider 配置](https://moonshotai.github.io/kimi-code/zh/configuration/providers)
* [配置文件](https://moonshotai.github.io/kimi-code/zh/configuration/config-files)
