Code with LLMs from the command line. Edit files, auto-commit, map codebases. Supports Claude, GPT, Gemini, DeepSeek, and local models. 42K+ stars.
TO
TokRepo精选 · Community
Quick Use
Use it first, then decide how deep to go
This block should tell both the user and the agent what to copy, install, and apply first.
```bash
pip install aider-install
aider-install
```
```bash
# Start coding with Claude
export ANTHROPIC_API_KEY=sk-ant-...
cd your-project
aider
# Or use other providers
aider --model gpt-4o
aider --model gemini/gemini-2.5-pro
aider --model deepseek/deepseek-chat
```
Ask Aider to make changes: `/add src/main.py` then type "add error handling to the parse function".
## Introduction
Aider is the **original AI pair programming CLI** — a terminal-based tool that lets you collaborate with LLMs to write, edit, and refactor code in real projects. It understands your entire codebase, makes targeted edits across multiple files, and automatically creates sensible git commits.
Core capabilities:
- **Whole Codebase Awareness** — Builds a map of your entire repository so the AI understands architecture, imports, and dependencies before making changes
- **Smart File Editing** — Makes surgical edits to existing files, not just generating new code. Handles multi-file changes in a single request
- **Automatic Git Commits** — Every change gets a descriptive git commit. Easy to review, revert, or build upon
- **100+ Languages** — Works with Python, JavaScript, TypeScript, Go, Rust, Java, C++, and any language the LLM understands
- **Model Flexibility** — Switch between Claude, GPT-4o, Gemini, DeepSeek, Ollama, and 50+ other providers mid-session
- **Lint & Test Integration** — Automatically runs linters and tests after changes, fixes issues if they arise
- **Voice-to-Code** — Speak your coding instructions using built-in voice input
- **IDE Integration** — Works alongside VS Code, NeoVim, and other editors via file watching
42,000+ GitHub stars. 4+ million installations. Processes 15 billion tokens per week across its user base.
## FAQ
**Q: How does Aider compare to Claude Code or Cursor?**
A: Aider is terminal-native and model-agnostic — you bring any LLM provider. Claude Code is Anthropic-specific, Cursor is IDE-specific. Aider works in any terminal with any model, and its git-first workflow makes changes easy to review.
**Q: Does it work with large codebases?**
A: Yes. Aider's repo-map feature creates a compact summary of your codebase structure, so the LLM understands context without reading every file. It scales to repos with thousands of files.
**Q: Can I use it with local models?**
A: Yes. Aider supports Ollama, LM Studio, and any OpenAI-compatible local server. Performance depends on model quality — larger models (70B+) work best for complex edits.
**Q: How much does it cost?**
A: Aider itself is free and open source. LLM costs depend on provider: ~$0.01-0.10 per coding task with most models. Local models are free.
## Works With
- Claude / GPT-4o / Gemini / DeepSeek / Ollama / 50+ LLM providers
- Git for version control and automatic commits
- Any programming language
- VS Code / NeoVim / any editor (file watcher mode)
🙏
Source & Thanks
- GitHub: [Aider-AI/aider](https://github.com/Aider-AI/aider)
- License: Apache 2.0
- Stars: 42,000+
- Maintainer: Paul Gauthier & Aider team
Thanks to Paul Gauthier for pioneering the AI pair programming CLI category and building the most battle-tested terminal coding assistant, proving that AI-assisted development works best when integrated into existing developer workflows.
Discussion
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.