Use MagmaRouter 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 MagmaRouter.
- Base URL
- https://api.magmarouter.com/v1
- API key
- Get one, starts sk-mr-
- Example model
- glm-5.3-xploded
Set the base URL and prefix the model
Config
# Windows (new shell required after setx)
setx OPENAI_API_BASE https://api.magmarouter.com/v1
setx OPENAI_API_KEY sk-mr-...
aider --model openai/glm-5.3-xplodedOr put it in .aider.conf.yml:
YAML
model: openai/glm-5.3-xploded openai-api-base: https://api.magmarouter.com/v1 openai-api-key: sk-mr-...
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.
Pick a model
Each page has the Aider setup with that model's id and limits filled in, and what a session costs.
GLM 5.3 Xploded in Aider1M context, $2.00 in / $5.00 out per 1M
GLM 5.3 Flash Xploded in Aider1M context, $0.30 in / $1.00 out per 1M
DeepSeek V4.1 Flash 1017 Xploded in Aider1M context, $1.25 in / $2.50 out per 1M
DeepSeek Flash Lite Xploded in Aider512K context, $0.36 in / $1.44 out per 1M
MiMo V2.6 Flash Xploded in Aider1M context, $1.00 in / $2.00 out per 1M
Qwen3.8 27B Xploded in Aider1M context, $1.50 in / $5.00 out per 1M
Qwen3.8 27B Ultrafast Xploded in Aider524K context, $1.75 in / $5.50 out per 1M