> ## 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 AIDER_OPENAI_API_BASE="https://api.acedata.cloud/v1"
export AIDER_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)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.