--openai-api-base
Aider takes the endpoint on the command line or through environment variables. It edits files and re-sends the repository context frequently, so a cache-friendly low-cost model is usually the right default.
export OPENAI_API_BASE="https://starseaapi.com/v1" export OPENAI_API_KEY="sk-your-key" aider --model openai/deepseek-v4.1-flash
ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN
Settings → Models → OpenAI API Key
OpenAI Compatible provider
OpenAI Compatible provider
~/.config/opencode/opencode.json
~/.continue/config.json
settings.json → language_models
OpenAI Compatible provider