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

# Aider CLI 自定义模型配置

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

Aider 通过 LiteLLM 的 `openai/` 模型前缀连接 OpenAI-compatible API。

## 配置

```bash theme={null}
export OPENAI_API_BASE="https://api.acedata.cloud/v1"
export OPENAI_API_KEY="$ACEDATACLOUD_API_KEY"
aider --model openai/MODEL_ID
```

把 `MODEL_ID` 替换为 Coding 配置向导中选择的模型。也可以把对应选项写入本地 `.env` 或 `.aider.conf.yml`，但不要提交真实 Token。

## 验证

```bash theme={null}
aider --model openai/MODEL_ID --message "Reply only OK"
```

首次使用未知模型时，Aider 可能提示缺少模型元数据；这不等同于鉴权失败。401 检查 Token，404 检查模型 ID 和 `/v1` Base URL。

## 官方参考

* [Aider OpenAI-compatible APIs](https://aider.chat/docs/llms/openai-compat.html)
* [Aider Options](https://aider.chat/docs/config/options.html)

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