Aider
Aider Setup Guide
Aider is LiteLLM-backed, so UnoRouter's OpenAI-compatible base URL works with two env vars.
Overview
Aider is LiteLLM-backed, so any OpenAI-compatible base URL works. Set two env vars and pass openai/MODEL_ID as the model.
Quick Config
Paste these into the client. Your key auto-fills when signed in.
text
Base URL: https://api.unorouter.com/v1
API Key: YOUR_API_KEYCompatibility
Chat CompletionsStreamingTool calling
Step-by-step setup
- 1Set environment variables
Aider reads OPENAI_API_BASE and OPENAI_API_KEY from your shell.
bashexport OPENAI_API_BASE=https://api.unorouter.com/v1 export OPENAI_API_KEY=YOUR_API_KEY - 2Run aider with the openai/ prefix
LiteLLM routes through its OpenAI driver on the openai/ prefix. Append your UnoRouter model id.
bashaider --model openai/YOUR_MODEL_ID - 3Optional: persist in .aider.conf.yml
Add a config in your project root to skip the flags.
yamlopenai-api-base: https://api.unorouter.com/v1 openai-api-key: YOUR_API_KEY model: openai/YOUR_MODEL_ID
Recommended models
Free models that work here. Paste any model id into the client.
glm-5.3-search:freeglm-5.3-think-search:freeglm-5.3-thinking:freeglm-5.3:freeqwen-3.8-27b:free
Gotchas
- Always include /v1 in the base URL.
- LiteLLM may print unknown model warnings. Use --no-show-model-warnings, or supply a context window via --model-metadata-file.