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

# Claude Code CC Switch 配置指南

> Claude Code 集成指南 - 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. 安装 CC Switch

从 [CC Switch Releases](https://github.com/farion1231/cc-switch/releases/latest) 下载，macOS 也可以运行：

```bash theme={null}
brew install --cask cc-switch
```

## 3. 添加 Provider

打开 CC Switch，选择 **Claude Code → Add Provider → Custom**，填写：

| 字段         | 值                           |
| ---------- | --------------------------- |
| Name       | `Ace Data Cloud`            |
| Base URL   | `https://api.acedata.cloud` |
| API Key    | 刚刚复制的 API Key               |
| API Format | `Anthropic Messages`        |

如需使用 JSON 编辑器，配置为：

```json theme={null}
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.acedata.cloud",
    "ANTHROPIC_AUTH_TOKEN": "{token}"
  }
}
```

CC Switch 会把配置写入 Claude Code 的用户设置。不要在团队仓库中保存真实 Key，也不要同时保留旧 `ANTHROPIC_API_KEY`。

## 4. 启用并验证

保存后启用 **Ace Data Cloud**，重新打开 Claude Code。发送一个简单的只读任务，并在 [使用历史](https://platform.acedata.cloud/console/usages) 核对调用。如果切换后仍使用旧配置，完全退出 Claude Code 和 CC Switch 后重试。

## 官方参考

* [CC Switch](https://github.com/farion1231/cc-switch)
* [添加 Provider](https://github.com/farion1231/cc-switch/blob/main/docs/user-manual/en/2-providers/2.1-add.md)
