Aider-AI/aider

GitHub: Aider-AI/aider

终端 AI 结对编程工具,支持多模型接入、自动 Git 提交、代码库智能映射,让开发者在命令行中与 LLM 协作完成代码编写与修改。

Stars: 41373 | Forks: 3954

Aider Logo

终端中的 AI 结对编程

Aider 让你与 LLM 结对编程,无论是开启新项目还是在现有代码库上构建。

aider screencast

GitHub Stars PyPI Downloads Tokens per week OpenRouter Ranking Singularity

## 功能 ### [云端和本地 LLM](https://aider.chat/docs/llms.html) Aider 配合 Claude 3.7 Sonnet、DeepSeek R1 & Chat V3、OpenAI o1、o3-mini & GPT-4o 使用效果最佳,但也支持连接几乎任何 LLM,包括本地模型。
### [映射你的代码库](https://aider.chat/docs/repomap.html) Aider 会为你整个代码库建立地图,这有助于它在大型项目中更好地工作。
### [支持 100 多种编程语言](https://aider.chat/docs/languages.html) Aider 支持大多数流行的编程语言:python、javascript、rust、ruby、go、cpp、php、html、css 等几十种。
### [Git 集成](https://aider.chat/docs/git.html) Aider 自动提交更改并生成合理的提交信息。使用熟悉的 git 工具可以轻松 diff、管理和撤销 AI 的更改。
### [在你的 IDE 中使用](https://aider.chat/docs/usage/watch.html) 在你喜欢的 IDE 或编辑器中使用 aider。通过在代码中添加注释来请求更改,aider 就会开始工作。
### [图像与网页](https://aider.chat/docs/usage/images-urls.html) 将图像和网页添加到聊天中,以提供视觉上下文、截图、参考文档等。
### [语音转代码](https://aider.chat/docs/usage/voice.html) 用语音与 aider 谈论你的代码!使用语音请求新功能、测试用例或错误修复,让 aider 实施更改。
### [Linting 与测试](https://aider.chat/docs/usage/lint-test.html) 每次 aider 进行更改时自动 lint 和测试你的代码。Aider 可以修复你的 linter 和测试套件检测到的问题。
### [复制/粘贴到 Web 聊天](https://aider.chat/docs/usage/copypaste.html) 通过 Web 聊天界面使用任何 LLM。Aider 简化了在浏览器之间来回复制/粘贴代码上下文和编辑的过程。 ## 快速开始 ``` python -m pip install aider-install aider-install # 切换到你的 codebase 目录 cd /to/your/project # DeepSeek aider --model deepseek --api-key deepseek= # Claude 3.7 Sonnet aider --model sonnet --api-key anthropic= # o3-mini aider --model o3-mini --api-key openai= ``` 有关更多详细信息,请参阅[安装说明](https://aider.chat/docs/install.html)和[使用文档](https://aider.chat/docs/usage.html)。 ## 更多信息 ### 文档 - [安装指南](https://aider.chat/docs/install.html) - [使用指南](https://aider.chat/docs/usage.html) - [教程视频](https://aider.chat/docs/usage/tutorials.html) - [连接到 LLM](https://aider.chat/docs/llms.html) - [配置选项](https://aider.chat/docs/config.html) - [故障排除](https://aider.chat/docs/troubleshooting.html) - [常见问题](https://aider.chat/docs/faq.html) ### 社区与资源 - [LLM 排行榜](https://aider.chat/docs/leaderboards/) - [GitHub 仓库](https://github.com/Aider-AI/aider) - [Discord 社区](https://discord.gg/Y7X7bhMQFV) - [发布说明](https://aider.chat/HISTORY.html) - [博客](https://aider.chat/blog/) ## 来自用户的好评 - *"我的生活改变了……Aider……它将颠覆你的世界。"* — [Eric S. Raymond on X](https://x.com/esrtweet/status/1910809356381413593) - *"最好的免费开源 AI 编程助手。"* — [IndyDevDan on YouTube](https://youtu.be/YALpX8oOn78) - *"迄今为止最好的 AI 编程助手。"* — [Matthew Berman on YouTube](https://www.youtube.com/watch?v=df8afeb1FY8) - *"Aider ……轻松地将我的编程效率提高了四倍。"* — [SOLAR_FIELDS on Hacker News](https://news.ycombinator.com/item?id=36212100) - *"这是一个很酷的工作流程……Aider 的人体工程学设计非常适合我。"* — [qup on Hacker News](https://news.ycombinator.com/item?id=38185326) - *"真的就像让你的资深开发人员直接住在你的 Git 仓库里一样——真的很神奇!"* — [rappster on GitHub](https://github.com/Aider-AI/aider/issues/124) - *"多么惊人的工具。简直不可思议。"* — [valyagolev on GitHub](https://github.com/Aider-AI/aider/issues/6#issue-1722897858) - *"Aider 真是一个令人震惊的东西!"* — [cgrothaus on GitHub](https://github.com/Aider-AI/aider/issues/82#issuecomment-1631876700) - *"这比我自己动手从零开始并制作前几个可用版本要快得多了。"* — [Daniel Feldman on X](https://twitter.com/d_feldman/status/1662295077387923456) - *"谢谢你创造了 Aider!真的感觉像是窥见了编程的未来。"* — [derwiki on Hacker News](https://news.ycombinator.com/item?id=38205643) - *"真是太棒了。它让我能够自由地去做那些以前觉得超出我舒适区的事情。"* — [Dougie on Discord](https://discord.com/channels/1131200896827654144/1174002618058678323/1174084556257775656) - *"这个项目非常出色。"* — [funkytaco on GitHub](https://github.com/Aider-AI/aider/issues/112#issuecomment-1637429008) - *"惊人的项目,绝对是我用过的最好的 AI 编程助手。"* — [joshuavial on GitHub](https://github.com/Aider-AI/aider/issues/84) - *"我非常喜欢使用 Aider……它让软件开发这种体验变得轻松了许多。"* — [principalideal0 on Discord](https://discord.com/channels/1131200896827654144/1133421607499595858/1229689636012691468) - *"我一直在从……手术中恢复……aider……让我能够继续保持生产力。"* — [codeninja on Reddit](https://www.reddit.com/r/OpenAI/s/nmNwkHy1zG) - *"我是一个 aider 上瘾者。我完成了更多的工作,但时间却更少了。"* — [dandandan on Discord](https://discord.com/channels/1131200896827654144/1131200896827654149/1135913253483069470) - *"Aider……毫不费力地秒杀其他所有工具,完全没有竞争对手。"* — [SystemSculpt on Discord](https://discord.com/channels/1131200896827654144/1131200896827654149/1178736602797846548) - *"Aider 太神奇了,加上 Sonnet 3.5 简直令人大开眼界。"* — [Josh Dingus on Discord](https://discord.com/channels/1131200896827654144/1133060684540813372/1262374225298198548) - *"毫无疑问,这是迄今为止最好的 AI 编程助手工具。"* — [IndyDevDan on YouTube](https://www.youtube.com/watch?v=MPYFPvxfGZs) - *"[Aider] 改变了我日常的编程工作流程。令人惊奇的是……(它)……可以改变你的生活。"* — [maledorak on Discord](https://discord.com/channels/1131200896827654144/1131200896827654149/1258453375620747264) - *"在现有代码库中进行实际开发工作的最佳 agent。"* — [Nick Dobos on X](https://twitter.com/NickADobos/status/1690408967963652097?s=20) - *"我最喜欢的软件之一。在新范式上开辟道路!"* — [Chris Wall on X](https://x.com/chris65536/status/1905053299251798432) - *"Aider 对我和我的工作来说是革命性的。"* — [Starry Hope on X](https://x.com/starryhopeblog/status/1904985812137132056) - *"试试 aider!这是最好的 vibe coding 方式之一。"* — [Chris Wall on X](https://x.com/Chris65536/status/1905053418961391929) - *"真他妈喜欢 Aider。"* — [hztar on Hacker News](https://news.ycombinator.com/item?id=44035015) - *"Aider 绝对是最好的。而且它是免费开源的。"* — [AriyaSavakaLurker on Reddit](https://www.reddit.com/r/ChatGPTCoding/comments/1ik16y6/whats_your_take_on_aider/mbip39n/) - *"Aider 也是我最好的朋友。"* — [jzn21 on Reddit](https://www.reddit.com/r/ChatGPTCoding/comments/1heuvuo/aider_vs_cline_vs_windsurf_vs_cursor/m27dcnb/) - *"试试 Aider,它值得。"* — [jorgejhms on Reddit](https://www.reddit.com/r/ChatGPTCoding/comments/1heuvuo/aider_vs_cline_vs_windsurf_vs_cursor/m27cp99/) - *"我喜欢 aider :)"* — [Chenwei Cui on X](https://x.com/ccui42/status/1904965344999145698) - *"Aider 是 LLM 代码生成的精密工具……极简、深思熟虑,能够进行手术般的精确更改……同时让开发者保持掌控。"* — [Reilly Sweetland on X](https://x.com/rsweetland/status/1904963807237259586) - *"简直不敢相信 aider 今天一口气 vibe coded 一个跨越 service 和 cli 的 650 行代码功能。"* - [autopoietist on Discord](https://discord.com/channels/1131200896827654144/1131200896827654149/1355675042259796101) - *"哦不,秘密泄露了!是的,Aider 是目前最好的编程工具。我强烈、强烈推荐给任何人。"* — [Joshua D Vander Hook on X](https://x.com/jodavaho/status/1911154899057795218) - *"多亏了 aider,我在过去两天内已经启动并完成了三个个人项目"* — [joseph stalzyn on X](https://x.com/anitaheeder/status/1908338609645904160) - *"我已经使用 aider 作为我的主力工具一年多了……我绝对喜欢这个工具,无法用语言形容。"* — [koleok on Discord](https://discord.com/channels/1131200896827654144/1273248471394291754/1356727448372252783) - *"Aider ……是用来作为基准对比的工具。"* — [BeetleB on Hacker News](https://news.ycombinator.com/item?id=43930201) - *"aider 真的很酷"* — [kache on X](https://x.com/yacineMTB/status/1911224442430124387)
标签:AI编程, ChatGPT, Claude, CLI, CVE检测, DeepSeek, DLL 劫持, DNS解析, Git, IPv6支持, Promptflow, Python, WiFi技术, 代码生成, 代码编辑, 代码补全, 大语言模型, 威胁情报, 开发者工具, 开发辅助, 开源项目, 数据管道, 文档结构分析, 无后门, 智能助手, 渗透测试工具, 熵值分析, 生产力工具, 终端工具, 结对编程, 网络安全研究, 网络调试, 自动化, 自动编程, 软件工程, 逆向工具