LLM Reference
CLITerminal & CLI harnessesOpen Source

Aider

by Paul Gauthier (independent)
Supports 8 models · CLI · Free open-source · Defaults: Claude Sonnet 4.6

Aider is the open-source CLI pair-programmer maintained by Paul Gauthier, with native git integration that auto-commits each AI edit with a descriptive message. Aider supports bring-your-own-key against any major provider, runs on every platform (cli, on-prem, offline-friendly), and is the de facto reference for measuring agentic coding ability - most SWE-bench evaluations route through Aider's harness. Free; you pay LLM API costs.

Overview

Open-source CLI tool for AI-driven code editing via natural language, with deep Git integration that automatically commits changes with descriptive messages.

Best LLMs for this agent

Aider's own leaderboard typically places Claude Sonnet 4.6 at the top for edit accuracy, and you can run it by setting the matching Anthropic API key.

Claude Opus 4.6Harder edits

Claude Opus 4.6 is the stronger Claude pairing for harder repo edits when accuracy is more important than token cost.

DeepSeek V4 ProCost alternative

DeepSeek V4 Pro is a strong open-weights alternative on cost for agentic coding workflows where you still want frontier-class coding strength.

GPT-5Alternative

GPT-5 remains close behind the top Claude pairings for Aider and is available through the OpenAI API key path.

Pricing and Provider Comparison

Hosted agents expose plan pricing. Bring-your-own-key agents pass the main cost through the model provider route you configure.

Agent access tiers

TierPriceIncludes
Free / Open SourceFreeOpen source, use any LLM via your own API keys

Provider routes for recommended models

ModelProviderInput / 1MOutput / 1MNotes
Claude Sonnet 4.6Anthropic$3.00$15.00Batch pricing listed; Cache reads listed
Claude Opus 4.6Anthropic$5.00$25.00Batch pricing listed; Cache reads listed
DeepSeek V4 ProDeepSeek Platform$0.435$0.87Cache reads listed
GPT-5OpenAI API$1.25$10.00Batch pricing listed; Cache reads listed

Featured Model Specs

ModelLabReleasedContextReasoningOpen source
Claude Sonnet 4.6Anthropic2026-02-171mYesNo
Claude Opus 4.6Anthropic2026-02-051mYesNo
Mistral Large 3 675B InstructMistralAI2025-12-01128kNoNo
Gemini 2.5 ProGoogle DeepMind2025-06-171mYesNo
GPT-4.1OpenAI2025-04-011.05mNoNo

Model Compatibility Matrix

ModelLabDefaultAccess tierNotes
Claude Sonnet 4.6AnthropicYesFreeRecommended default, via Anthropic API key
Claude Opus 4.6AnthropicNoFreeVia Anthropic API key
Mistral Large 3 675B InstructMistralAINoFreeVia Mistral API key
Gemini 2.5 ProGoogle DeepMindNoFreeVia Google API key
GPT-4.1OpenAINoFreeVia OpenAI API key
DeepSeek R1DeepSeekNoFreeVia DeepSeek API key
DeepSeek V3DeepSeekNoFreeVia DeepSeek API key
GPT-4o (2024-11-20)OpenAINoFreeVia OpenAI API key

Underlying Models

Compare to Similar Harnesses

FAQ

Which LLM works best with Aider?

Aider's own leaderboard typically places Claude Sonnet 4.6 and Claude Opus 4.6 at the top for edit accuracy, with DeepSeek V4 Pro and GPT-5 close behind. You can run Aider with any of these by setting the matching API key.

Can Aider use local models?

Yes. Aider supports local models via Ollama, llama.cpp, and any OpenAI-compatible endpoint. Local DeepSeek-Coder and Qwen3-Coder builds are common choices.

Does Aider require an API key?

Yes - Aider is the harness, not the model. You bring your own key for Anthropic, OpenAI, DeepSeek, OpenRouter, or whichever provider you prefer. Aider itself is free and open source.

How does Aider handle git?

Aider commits every change to git with an AI-generated descriptive commit message, so each AI edit lands as its own reviewable commit. You can git revert any change.

Is Aider better than Cline or Cursor?

Different tradeoffs. Aider is CLI-only and excels at scripted/repeatable workflows and pair-programming. Cline runs in VS Code with autonomous file/terminal access. Cursor is a forked editor. Aider's git-per-edit model is its strongest differentiator.

Explore Related Pages

Last reviewed: 2026-06-02. Data sourced from harness documentation and provider pages.