Aider icon

Aider

Visit

Aider is an open-source command-line AI pair programming assistant created by Paul Gauthier. Running directly inside a developer's local terminal, it maps entire repositories, coordinates multi-file code edits, and automatically commits every change to Git history.

Screenshot of Aider interface

Overview

Aider is built for developers who prefer working directly in the terminal rather than switching to a proprietary IDE. Instead of copying snippets back and forth between a browser chat and a code editor, it modifies files straight inside the local repository, presents clean diffs, and runs linters or tests within the same session.

A core technical strength is its tree-sitter-powered repository map, which parses classes, functions, and references to give the language model project-wide awareness without stuffing unnecessary full files into the context window. Native Git integration complements this by automatically creating descriptive commits for every AI edit, making it effortless to inspect diffs or roll back changes with /undo.

Because it is model-agnostic, Aider connects to major cloud LLMs via LiteLLM as well as completely offline local models hosted on Ollama or LM Studio. In architect mode, developers can pair a high-level reasoning model for planning changes with a faster editor model for applying code diffs.

Features and functionality

  • Multi-file direct editing: Apply coordinated edits across multiple files in a local codebase while displaying readable diffs in the terminal.
  • Native Git integration: Automatically commit each AI change with a descriptive commit message, simplifying code review and instant rollbacks via /undo.
  • Tree-sitter repository map: Index symbols, classes, and references across the codebase to keep broad context in larger repositories.
  • Specialized chat modes: Switch between code for direct file edits, architect to separate planning from editing, ask for read-only Q&A, and help for tool guidance.
  • Automated linting and test fixing: Run configured linters and test suites locally and let Aider propose fixes when checks fail.
  • Voice, web, and image inputs: Support voice-to-text coding (/voice), web page ingestion (/web), and screenshots or diagrams as visual context.

Use cases

  • Multi-file codebase refactoring: Developers reorganize modules, upgrade dependencies, and clean up technical debt across files while keeping each step isolated in Git commits.
  • Test-driven feature delivery: Engineers describe new functionality and let Aider iterate against local test suites until checks pass.
  • Offline privacy-first coding: Teams with strict data residency rules pair Aider with local models via Ollama or LM Studio so source code never leaves local hardware.
  • Hybrid reasoning and editing workflows: Software architects use architect mode to design complex structural changes with a reasoning model and delegate diff execution to a faster model.

How to use

  1. Install locally: Install Aider from the terminal using the official installer script (PowerShell on Windows or curl on macOS and Linux) or Python package tools such as pip, pipx, or uv.
  2. Configure a model: Export your API key for a supported provider (such as Anthropic, OpenAI, DeepSeek, Google Gemini, or OpenRouter) or point Aider to a local Ollama server.
  3. Launch inside a Git repo: Open your project directory in the terminal, start aider with the target files, and describe the coding task in plain language.
  4. Review and ship: Inspect generated diffs, run automated tests, revert any unwanted commit with /undo, and continue your normal Git pull request workflow.

Required experience level

Because Aider operates strictly from the command line and relies on Python environment setup, API key management, model selection, and Git fluency, it targets practicing developers. Productive use requires comfort with terminal workflows, diff inspection, and software architecture, placing it firmly at an advanced level.

Integrations

Aider runs locally on Windows, macOS, and Linux terminals without requiring a browser or separate graphical interface. Model connectivity runs through LiteLLM, supporting Anthropic, OpenAI, DeepSeek, Google Gemini, xAI, Mistral, Cohere, OpenRouter, AWS Bedrock, Vertex AI, GitHub Copilot, and local servers like Ollama and LM Studio, alongside native Git and project linter integration.

Plans and access

Aider is 100% free and open-source under the Apache 2.0 license with no paid subscription for the tool itself. It follows a BYOK (Bring Your Own Key) structure where developers pay their chosen LLM API provider directly for token usage, or run completely free and offline with local models on their own hardware.

Its architecture is local-first with no proprietary Aider backend servers storing code or chats. Anonymous analytics are strictly opt-in, can be permanently disabled with --analytics-disable, and never collect source code, prompts, API keys, or personal data. Paired with local models via Ollama, zero data leaves the machine.

Alternatives to Aider

Open-source coding agent for IDEs, desktop, and terminal featuring Plan and Act modes, multi-model support, and MCP integration.

Intelligent editor that understands your entire code and helps you program, refactor, and debug using natural language.