aider README

The project's README from github.com/Aider-AI/aider. As one markdown file: README.md.

Aider Logo

AI Pair Programming in Your Terminal

Aider lets you pair program with LLMs to start a new project or build on your existing codebase.

aider screencast

GitHub Stars PyPI Downloads Tokens per week OpenRouter Ranking Singularity

Features

Cloud and local LLMs

Aider works best with Claude 3.7 Sonnet, DeepSeek R1 & Chat V3, OpenAI o1, o3-mini & GPT-4o, but can connect to almost any LLM, including local models.


Maps your codebase

Aider makes a map of your entire codebase, which helps it work well in larger projects.


100+ code languages

Aider works with most popular programming languages: python, javascript, rust, ruby, go, cpp, php, html, css, and dozens more.


Git integration

Aider automatically commits changes with sensible commit messages. Use familiar git tools to easily diff, manage and undo AI changes.


Use in your IDE

Use aider from within your favorite IDE or editor. Ask for changes by adding comments to your code and aider will get to work.


Images & web pages

Add images and web pages to the chat to provide visual context, screenshots, reference docs, etc.


Voice-to-code

Speak with aider about your code! Request new features, test cases or bug fixes using your voice and let aider implement the changes.


Linting & testing

Automatically lint and test your code every time aider makes changes. Aider can fix problems detected by your linters and test suites.


Copy/paste to web chat

Work with any LLM via its web chat interface. Aider streamlines copy/pasting code context and edits back and forth with a browser.

Getting Started

python -m pip install aider-install
aider-install

# Change directory into your codebase
cd /to/your/project

# DeepSeek
aider --model deepseek --api-key deepseek=<key>

# Claude 3.7 Sonnet
aider --model sonnet --api-key anthropic=<key>

# o3-mini
aider --model o3-mini --api-key openai=<key>

See the installation instructions and usage documentation for more details.

More Information

Documentation

Community & Resources

Kind Words From Users

aider (Aider-AI/aider)

Searching Database…

49.6K ·GitHub
这是什么?Aider 是一款 AI 结对编程工具,在终端中运行。你可以与 LLM 对话,用它来搭建新项目,或修改已有的代码库。
它是命令行工具,还是装在我的编辑器里?它主要是一个在终端里运行的命令行工具,但也可以在 IDE 或编辑器中调用:只需在代码里添加注释,aider 就会据此进行操作。
我该怎么把它跑起来?安装它,然后按照 README 中链接的官方《安装指南》和《使用文档》操作,将其连接到 LLM,就可以开始与你的代码库对话。
我需要某个 LLM 服务商的 API 密钥吗?Aider 与 Claude 3.7 Sonnet、DeepSeek R1 & Chat V3、OpenAI o1/o3-mini/GPT-4o 配合效果最好,但它几乎可以连接任何云端或本地的 LLM,因此你需要所选服务商的访问凭证。
它支持所有编程语言,还是只支持少数几种?它支持大多数主流语言,包括 Python、JavaScript、Rust、Ruby、Go、C++、PHP、HTML 和 CSS,另外还有几十种其他语言。
它能在哪些操作系统上运行?它是跨平台的,可在 Linux、macOS 和 Windows 上运行,因为它是一个 Python 终端应用。
aider 会替我管理 git 提交吗?会的。aider 会自动提交它所做的修改,并附上合理的提交信息,这样你就可以用熟悉的 git 工具查看差异、管理并撤销它的编辑。
我可以给它截图或网页作为上下文吗?可以。你可以把图片和网页添加到对话中,为 aider 提供视觉上下文,例如截图或参考文档。
我能用说话代替打字来写代码吗?可以。aider 支持语音转代码:你可以口述新功能、测试用例或 bug 修复的需求,aider 会实现相应的修改。
它能帮忙做代码检查和测试吗?可以。Aider 可以在每次修改后自动进行代码检查(lint)和测试,并尝试修复其代码检查工具或测试套件发现的问题。
Creator
Aider-AI
Size
137.1 MB
Stars
49.6K
Age
3y
Commits · 90 Days