> ## Documentation Index
> Fetch the complete documentation index at: https://doc.xbhuiz.com/llms.txt
> Use this file to discover all available pages before exploring further.

# aider

> 通过 OpenAI 兼容 base URL 把 aider 接入 XMAI。

aider 可以通过 OpenAI 兼容入口使用 XMAI。

## 环境变量

```bash theme={null} theme={null}
export OPENAI_API_BASE="https://xmapi.site/v1"
export OPENAI_API_KEY="your-XMAI-api-key"
```

运行：

```bash theme={null} theme={null}
aider --model openai/claude-opus-4-8
```

## Gemini 模型

Gemini 模型也可以通过 OpenAI 兼容入口使用：

```bash theme={null} theme={null}
aider --model openai/gemini-3.1-pro-preview
```
