Free to read. Sign up to save your progress and take knowledge-check quizzes.

Sign up free
5 min read·Updated March 24, 2026

Aider

Aider is an open-source, git-integrated CLI coding assistant that works with any LLM — every AI change is auto-committed to git with an explanatory message, giving you a clean history and easy rollback.

Listen to this lesson

Free preview · first 0:30
0:00 / 0:30

Audio & video lessons are paid features

Plus unlocks audio streaming. Pro adds downloadable audio, video, certificates, and more.

Plus adds:
  • Audio streaming
  • Downloadable PDFs
  • All AI Playbooks
  • Personalized content
Pro also adds:
  • Certificates of completion
  • Audio MP3 downloads
  • Video lessonssoon
  • & More…soon

Watch this lesson

Video coming soon

Learning Objectives

  • Understand how Aider's git-first approach provides safety and traceability for AI-assisted coding
  • Identify the key capabilities: multi-model support, auto-commits, and architect/editor mode
  • Evaluate when to use Aider versus Claude Code, GitHub Copilot CLI, or Cursor

What Is Aider?

Aider is an open-source (Apache 2.0) command-line coding assistant that integrates directly with git. Every change the AI makes is automatically committed to your git repository with a descriptive commit message — giving you a clean, rollback-friendly history of all AI-generated code.

Aider works with any LLM — Claude (Opus, Sonnet), OpenAI (GPT-4.1, o3), Google (Gemini 3.1 Pro), Mistral (Large 3), and local models via Ollama, LiteLLM, or any OpenAI-compatible API. You bring your own API key and choose your model.

What makes Aider distinctive is its git-native workflow. Unlike tools that generate code for you to copy or that make changes you need to manually stage, Aider treats every AI edit as a proper git commit. You can git diff, git log, git revert, or git cherry-pick any AI change just like any human commit. Aider writes approximately 70% of its own new code — a testament to its capabilities.

Currently at version 0.86.0, Aider is actively maintained and has a growing community of developers who prefer its transparent, git-integrated approach.

Tip

Get started: Install with pip install aider-install && aider-install — then run aider in any git repository

Pricing

Aider (open source)Free
  • Full tool — Apache 2.0 license
  • All features
LLM API costsUsage-based
  • You pay your chosen LLM provider directly (OpenAI, Anthropic, Google, etc.)
Local models (Ollama)Free
  • Run models locally — no API costs
  • Full privacy

Aider itself is completely free. Your only cost is the LLM API usage, which varies by provider and model. Using local models via Ollama eliminates API costs entirely.

Core Capabilities

Git-Integrated Auto-Commits

Every AI change is automatically committed to git with a clear, descriptive message. Your git log shows exactly what the AI did, when, and why. Roll back any change with git revert. This makes AI-assisted coding as traceable and safe as manual development.

Multi-Model Support

Aider works with virtually any LLM. Switch models mid-session with /model — use Claude Opus for complex architecture, GPT-4.1 for quick edits, or a local model via Ollama for privacy-sensitive code. Aider benchmarks different models and publishes leaderboards so you can choose based on actual coding performance.

Architect and Editor Modes

Aider supports a two-model workflow: an Architect model plans the approach and an Editor model implements the changes. Use a powerful reasoning model (like Claude Opus) as the architect and a fast model (like Sonnet or GPT-4.1) as the editor — balancing quality and cost.

File Management

Add files to the chat context with /add — Aider reads them and makes changes in place. Use /read-only to provide reference files the AI can see but not modify. The AI understands your project structure and makes changes across multiple files coherently.

Repository Map

Aider builds a map of your entire repository — understanding file relationships, function signatures, and import chains. This gives the AI project-wide context without sending every file to the LLM, keeping costs manageable while maintaining accuracy.

Strengths

  • Git-native safety: Every change is a proper commit — full traceability, easy rollback, clean history
  • Model agnostic: Works with any LLM provider or local models — no vendor lock-in
  • Open source: Apache 2.0 license, active community, transparent development
  • Cost control: Choose your model and provider; use local models for zero API cost
  • Lightweight: Single CLI tool with no heavy IDE or browser requirement
  • Proven: Writes 70% of its own code — a strong signal of practical capability

Limitations & Considerations

  • CLI only: No visual IDE, no inline suggestions — you work in the terminal with a chat interface
  • Setup required: You must configure API keys and choose models — more setup than turnkey solutions
  • No built-in MCP: Does not natively connect to external services the way Claude Code does
  • Learning curve: Understanding architect/editor modes, file management, and model selection takes time
  • No hosted option: Runs locally only — no cloud-based version for quick access from any machine

Best Use Cases

TaskWhy Aider
Git-first developmentEvery AI change has a clean commit — ideal for teams that value traceable history
Model experimentationEasily switch between LLM providers to find the best model for your codebase
Privacy-sensitive codeUse local models via Ollama — no code leaves your machine
Budget-conscious developmentOpen source with pay-per-use API costs — no subscription required
Open-source contributionsApache 2.0 license and community-driven development

When to choose alternatives:

  • Visual IDE experience → Cursor or Windsurf (AI-native editors with inline suggestions)
  • MCP and external service integration → Claude Code (native MCP, Supabase, Vercel, Stripe)
  • GitHub-native workflows → GitHub Copilot (Issues, PRs, Actions integration)
  • Zero-setup browser-based → Bolt.new or Replit (no local installation needed)

Getting Started

  1. Install Aider: pip install aider-install && aider-install
  2. Set your API key: export ANTHROPIC_API_KEY=your-key (or OpenAI, Google, etc.)
  3. Navigate to a git repository and run aider
  4. Add files to the context: /add src/main.py src/utils.py
  5. Describe your change — Aider edits the files and commits automatically
  6. Check git log to see the AI's commit with a descriptive message
  7. Try switching models: /model claude-3-opus or /model gpt-4.1

Tip

Power user tip: Use the architect/editor mode with /architect claude-3-opus and /editor claude-3-sonnet — the powerful model plans the approach while the fast model implements changes, giving you better results at lower cost.

Key Takeaways

  • Aider is an open-source CLI coding assistant where every AI change is automatically committed to git with a descriptive message
  • Model-agnostic design means you can use any LLM — cloud or local — with no vendor lock-in
  • Git-native workflow provides safety, traceability, and easy rollback that other tools lack
  • Best suited for developers who value git history, model flexibility, and open-source tools; for a visual IDE experience, consider Cursor or Windsurf

Save your progress & take the quiz

Sign up free to bookmark lessons, track which modules you've completed, and lock in what you learned with a quick knowledge-check quiz at the end of each lesson.

🧭Recommended for you