Aider can connect to most LLMs
Best models
Aider works best with these models, which are skilled at editing code:
Free models
Aider works with a number of free API providers:
- OpenRouter offers free access to many models, with limitations on daily usage.
- Google’s Gemini 2.5 Pro Exp works very well with aider.
Local models
Aider can work also with local models, for example using Ollama. It can also access local models that provide an Open AI compatible API.
Use a capable model
Check Aider’s LLM leaderboards to see which models work best with aider.
Be aware that aider may not work well with less capable models. If you see the model returning code, but aider isn’t able to edit your files and commit the changes… this is usually because the model isn’t capable of properly returning “code edits”. Models weaker than GPT 3.5 may have problems working well with aider.