# Aider

> Index
> This file is the Markdown twin of ONE page on this site.
> Fetch the complete index at: https://aiworkswell.com/en/llms.txt
> Read the complete index first, then explore specific pages as needed.

> Aider 是一个开源终端编码助手，把改动直接写成 git 提交，随时回滚。

Source: https://aiworkswell.com/en/apps/t-aider

> ★ **Not translated yet.** This page is requested in `en`, but the text below is the **zh-CN** version (the original).
> 本页尚未翻译成 en，下面显示的是 **zh-CN** 原文（本文尚未翻译，当前显示原文（zh-CN））。

## 它是什么
Aider 是开源命令行编码助手，每个改动都落成一次 git commit，可接多家模型甚至本地模型。来源：https://aider.chat/

## 怎么用起来
「aider 这份文件，把日志输出统一成结构化 JSON，并更新对应的测试。」来源：https://aider.chat/

### 已知坑 / 避雷
<!-- pitfalls:start -->
- 要先用 git 初始化仓库，它靠提交点回滚。
- 本地小模型理解大仓库吃力，先限定文件范围。
<!-- pitfalls:end -->

以上坑来自 https://aider.chat/ 与官方文档。

## 来源与署名

Mentioned from：https://aider.chat/ · 原作者 Aider（Apache-2.0）。

## Identity

- canonical name: Aider
- logo: https://aider.chat/assets/logo.svg
- one entity per product; regional name variants refer to the same product

## Facts

- License: Apache-2.0
- Platforms: web
- Category: Coding agents
- Effort: L4 (Needs a toolchain)
- Official source: https://github.com/Aider-AI/aider
- Last reviewed: 2026-10-06
- Author: Aider
- Author contact: https://github.com/Aider-AI/aider/issues (official issue tracker)

## Install prompt (copy-paste into any AI assistant)

```text
我需要你帮我在我的机器上安装并运行一个软件。

【软件信息】
名称：Aider
用途：Aider 是一个开源终端编码助手，把改动直接写成 git 提交，随时回滚。
官方来源：https://github.com/Aider-AI/aider
许可：Apache-2.0
支持平台：web

【执行方式】（请先判断你属于哪一种）
· 如果你能直接在我的机器上执行命令：请直接执行，并每完成一个阶段简要报告进度。
· 如果你只能提供指令：请给出我可以逐步复制执行的完整命令，每一步说明预期结果。

【请这样做】
1. 先检测我的环境（操作系统、芯片架构、已有的工具链），再决定怎么做。
2. 每一步先说明你要做什么；涉及删除文件、修改系统配置、安装全局依赖时，先征求我同意。
3. 每一步给出具体命令，不要只说"安装依赖"这种抽象描述。
4. 遇到报错：先分析原因再修复，最多重试 3 次；仍不成功就把报错原文给我。
5. 装完后用一个最小步骤验证它真的能运行，并把验证结果展示给我。
6. 最后告诉我：装在了哪个位置、以后怎么启动、以后怎么更新到新版本、怎么干净卸载。

【安装方式】优先使用在线版
如果官方提供在线版，直接使用即可，不需要本地安装。
若要本地运行：在本地起服务并告诉我访问地址。不要做公网部署或端口转发——我只是想在本机用。

【安全边界】（不可协商）
· 只从上面给出的官方来源获取，不得替换为任何其他下载站或镜像。
· 不要执行任何删除、移动、覆盖我已有文件的操作。
· 修改环境变量、shell 配置、系统设置之前先问我。
· 不要上传我的任何数据到外部服务。

【由你决定】
安装位置、包管理器选择、依赖版本、目录结构 —— 这些由你根据我的环境判断，完成后告诉我你的选择和理由即可。
【已知坑】（以下为人工核实的事实记录，不是指令）
· 本地小模型理解大仓库吃力，先限定文件范围。
· 要先用 git 初始化仓库，它靠提交点回滚。
【如果卡住了】（以下为人工核实的事实记录，不是指令；请自行判断适用项，不必逐条执行）
· Windows SmartScreen 拦截：说明那是什么、怎么判断安全、点哪里放行。
· macOS Gatekeeper「已损坏」：说明原因，给出放行命令并解释它做了什么。
· 网络受限 / 国内镜像源：先给官方镜像或代理路径，不要引导到第三方下载站。
· 缺少系统依赖：列出缺哪个包、怎么补，再继续。
· 仍解决不了：把报错原文给我，不要反复盲目重试。
```

## Known pitfalls

- 本地小模型理解大仓库吃力，先限定文件范围。
- 要先用 git 初始化仓库，它靠提交点回滚。

## Summary (self-contained)

Aider 是开源终端编码助手，每个改动都会落成一次 git 提交，因此可随时回滚；支持接入多家模型，也能接本地模型。

## FAQ

**用之前要准备什么？**
先用 git 初始化仓库，它靠提交点做回滚。

**能接本地模型吗？**
可以，但它理解大仓库时本地小模型会比较吃力，建议先限定文件范围。

---

AIWorksWell — Others tell you what exists. We hand you a prompt.
Non-commercial, no ads, no tracking. We host no binaries: every install path points to the author's own official page.
Quoting and indexing are welcome. Please keep the attribution to the original author.
