Aider 接入 / Aider API gateway
Aider 接入 Routin
Aider on Routin: OPENAI_API_BASE
Aider 读取 OPENAI_API_BASE / OPENAI_API_KEY。把它们指到 Routin 即可。
Aider reads OPENAI_API_BASE and OPENAI_API_KEY. Point both at Routin.
接入要点 / Setup facts
- 协议 / Protocol: OpenAI-compatible /v1
- Base URL:
https://api.routin.ai/v1 - export OPENAI_API_BASE=https://api.routin.ai/v1 / export OPENAI_API_BASE=https://api.routin.ai/v1
步骤 / Steps
- 安装 Aider / Install Aider
按 Aider 文档安装 CLI。
Install the Aider CLI from its docs.
- 导出环境变量 / Export environment variables
设置 OPENAI_API_BASE 与 OPENAI_API_KEY(Routin 密钥)。
Set OPENAI_API_BASE and OPENAI_API_KEY to the Routin values.
- 指定 openai/ 模型 / Pass an openai/ model