Aider
Aider 是终端中的开源 AI 编程助手。它的官方文档支持使用 OPENAI_API_BASE、OPENAI_API_KEY 和 openai/<MODEL_ID> 连接 OpenAI 兼容服务。
macOS 或 Linux:
curl -LsSf https://aider.chat/install.sh | shWindows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"curl -sS https://youran-ai.du-fu.com/v1/models \
-H "Authorization: Bearer <YOURAN_API_KEY>"macOS 或 Linux:
export OPENAI_API_BASE="https://youran-ai.du-fu.com/v1"
export OPENAI_API_KEY="<YOURAN_API_KEY>"
aider --model "openai/<MODEL_ID>"Windows PowerShell:
$env:OPENAI_API_BASE = "https://youran-ai.du-fu.com/v1"
$env:OPENAI_API_KEY = "<YOURAN_API_KEY>"
aider --model "openai/<MODEL_ID>"<MODEL_ID> 必须替换为模型列表中的真实 ID。Aider 如果提示模型元数据未知,不代表连接失败;先确认是否已经收到模型回复,再根据需要补充 Aider 的模型元数据配置。
完整选项见 Aider OpenAI 兼容接口文档。