Use Redline with Aider
Aider reaches an OpenAI-compatible endpoint through the OPENAI_API_BASE variable and an openai/ model prefix. Set both and Aider talks to Redline.
Set the base URL and prefix the model
# Windows (new shell required after setx)
setx OPENAI_API_BASE https://redline-gateway.pages.dev/v1
setx OPENAI_API_KEY rl-...
aider --model openai/deepseek/deepseek-chat-v3.1
Or put it in .aider.conf.yml:
model: openai/deepseek/deepseek-chat-v3.1 openai-api-base: https://redline-gateway.pages.dev/v1 openai-api-key: rl-...
The openai/ prefix is required Aider routes on the model prefix. Without openai/ it does not know to use OPENAI_API_BASE. Aider may warn "Unknown context window size"; add a .aider.model.metadata.json entry or pass --no-show-model-warnings.