Aider can connect to most LLMs

connecting to many 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:

  • Google’s Gemini 1.5 Pro works with aider, with code editing capabilities similar to GPT-3.5.
  • You can use Llama 3 70B on Groq which is comparable to GPT-3.5 in code editing performance.
  • Cohere also offers free API access to their Command-R+ model, which works with aider as a very basic coding assistant.

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.


Table of contents