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
Drop these values into the client. Your key auto-fills when you are signed in.
text
Base URL: https://api.unorouter.ai/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.ai/v1 export OPENAI_API_KEY=YOUR_API_KEY - 2Run aider with the openai/ prefix
LiteLLM uses the openai/ prefix to route the request through its OpenAI driver. Append your UnoRouter model id.
bashaider --model openai/YOUR_MODEL_ID - 3Optional: persist in .aider.conf.yml
Drop a config in your project root so you do not have to repeat the flags.
yamlopenai-api-base: https://api.unorouter.ai/v1 openai-api-key: YOUR_API_KEY model: openai/YOUR_MODEL_ID
Recommended models
Free models that work well here. Paste any model id into the client.
tiny-aya-earthmistral-small-3.2-24b-instruct-2506voxtral-small-2507dolphin-mistral-24b-venice-editionmistral-7b-instruct-v0.3
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 if it gets noisy.