[{"data":1,"prerenderedAt":426},["ShallowReactive",2],{"tool-meta-aider":3,"content-query-ZYJz8dVxU1":5},{"lastUpdated":4},"2026-04-27",{"_path":6,"_dir":7,"_draft":8,"_partial":8,"_locale":9,"title":10,"description":11,"lastUpdated":4,"icon":12,"category":13,"vendor":14,"features":15,"pricing":21,"network":22,"useCases":23,"body":24,"_type":420,"_id":421,"_source":422,"_file":423,"_stem":424,"_extension":425},"\u002Ftools\u002Faider","tools",false,"","Aider","开源终端 AI pair programming 工具，支持 20+ LLM 后端","🛠️","国外","开源社区",[16,17,18,19,20],"四种聊天模式（code\u002Fask\u002Farchitect\u002Fhelp）","Architect 双模型模式","Git 原生集成","20+ LLM 后端支持","语音输入 \u002F IDE 监听 \u002F 浏览器模式","完全开源免费（需自备 LLM API Key）","取决于所用模型","终端 pair programming，Architect 复杂重构，灵活切换 LLM，IDE AI 注释驱动",{"type":25,"children":26,"toc":410},"root",[27,36,45,51,169,190,196,201,226,231,236,344,349,354,359,387,392],{"type":28,"tag":29,"props":30,"children":32},"element","h1",{"id":31},"aider-️",[33],{"type":34,"value":35},"text","Aider 🛠️",{"type":28,"tag":37,"props":38,"children":39},"blockquote",{},[40],{"type":28,"tag":41,"props":42,"children":43},"p",{},[44],{"type":34,"value":11},{"type":28,"tag":46,"props":47,"children":49},"h2",{"id":48},"四种聊天模式",[50],{"type":34,"value":48},{"type":28,"tag":52,"props":53,"children":54},"table",{},[55,79],{"type":28,"tag":56,"props":57,"children":58},"thead",{},[59],{"type":28,"tag":60,"props":61,"children":62},"tr",{},[63,69,74],{"type":28,"tag":64,"props":65,"children":66},"th",{},[67],{"type":34,"value":68},"模式",{"type":28,"tag":64,"props":70,"children":71},{},[72],{"type":34,"value":73},"用途",{"type":28,"tag":64,"props":75,"children":76},{},[77],{"type":34,"value":78},"说明",{"type":28,"tag":80,"props":81,"children":82},"tbody",{},[83,106,127,148],{"type":28,"tag":60,"props":84,"children":85},{},[86,96,101],{"type":28,"tag":87,"props":88,"children":89},"td",{},[90],{"type":28,"tag":91,"props":92,"children":93},"strong",{},[94],{"type":34,"value":95},"code",{"type":28,"tag":87,"props":97,"children":98},{},[99],{"type":34,"value":100},"编辑代码",{"type":28,"tag":87,"props":102,"children":103},{},[104],{"type":34,"value":105},"默认模式，直接修改文件",{"type":28,"tag":60,"props":107,"children":108},{},[109,117,122],{"type":28,"tag":87,"props":110,"children":111},{},[112],{"type":28,"tag":91,"props":113,"children":114},{},[115],{"type":34,"value":116},"ask",{"type":28,"tag":87,"props":118,"children":119},{},[120],{"type":34,"value":121},"只读问答",{"type":28,"tag":87,"props":123,"children":124},{},[125],{"type":34,"value":126},"讨论代码、获取建议，不修改文件",{"type":28,"tag":60,"props":128,"children":129},{},[130,138,143],{"type":28,"tag":87,"props":131,"children":132},{},[133],{"type":28,"tag":91,"props":134,"children":135},{},[136],{"type":34,"value":137},"architect",{"type":28,"tag":87,"props":139,"children":140},{},[141],{"type":34,"value":142},"双模型架构",{"type":28,"tag":87,"props":144,"children":145},{},[146],{"type":34,"value":147},"主模型规划方案 + 编辑模型执行文件编辑",{"type":28,"tag":60,"props":149,"children":150},{},[151,159,164],{"type":28,"tag":87,"props":152,"children":153},{},[154],{"type":28,"tag":91,"props":155,"children":156},{},[157],{"type":34,"value":158},"help",{"type":28,"tag":87,"props":160,"children":161},{},[162],{"type":34,"value":163},"工具帮助",{"type":28,"tag":87,"props":165,"children":166},{},[167],{"type":34,"value":168},"询问 aider 本身的使用、配置、排障",{"type":28,"tag":41,"props":170,"children":171},{},[172,174,180,182,188],{"type":34,"value":173},"推荐工作流：先用 ",{"type":28,"tag":95,"props":175,"children":177},{"className":176},[],[178],{"type":34,"value":179},"\u002Fask",{"type":34,"value":181}," 讨论方案，再切 ",{"type":28,"tag":95,"props":183,"children":185},{"className":184},[],[186],{"type":34,"value":187},"\u002Fcode",{"type":34,"value":189}," 执行——比直接编辑效果更好。",{"type":28,"tag":46,"props":191,"children":193},{"id":192},"architect-模式",[194],{"type":34,"value":195},"Architect 模式",{"type":28,"tag":41,"props":197,"children":198},{},[199],{"type":34,"value":200},"Architect 模式将规划和编辑分离：",{"type":28,"tag":202,"props":203,"children":204},"ul",{},[205,216],{"type":28,"tag":206,"props":207,"children":208},"li",{},[209,214],{"type":28,"tag":91,"props":210,"children":211},{},[212],{"type":34,"value":213},"主模型",{"type":34,"value":215},"（architect）：分析需求，提出修改方案",{"type":28,"tag":206,"props":217,"children":218},{},[219,224],{"type":28,"tag":91,"props":220,"children":221},{},[222],{"type":34,"value":223},"编辑模型",{"type":34,"value":225},"（editor）：将方案转化为具体的文件编辑指令",{"type":28,"tag":41,"props":227,"children":228},{},[229],{"type":34,"value":230},"特别适合 o1\u002Fo3 系列模型（推理强但编辑弱），搭配 GPT-4o 或 Sonnet 作为编辑模型效果最佳。",{"type":28,"tag":46,"props":232,"children":234},{"id":233},"核心功能",[235],{"type":34,"value":233},{"type":28,"tag":202,"props":237,"children":238},{},[239,256,266,276,286,304,314,324,334],{"type":28,"tag":206,"props":240,"children":241},{},[242,246,248,254],{"type":28,"tag":91,"props":243,"children":244},{},[245],{"type":34,"value":18},{"type":34,"value":247},"：自动 commit 所有变更，",{"type":28,"tag":95,"props":249,"children":251},{"className":250},[],[252],{"type":34,"value":253},"\u002Fundo",{"type":34,"value":255}," 一键回退",{"type":28,"tag":206,"props":257,"children":258},{},[259,264],{"type":28,"tag":91,"props":260,"children":261},{},[262],{"type":34,"value":263},"Repository Map",{"type":34,"value":265},"：自动分析代码库结构，无需手动添加所有文件",{"type":28,"tag":206,"props":267,"children":268},{},[269,274],{"type":28,"tag":91,"props":270,"children":271},{},[272],{"type":34,"value":273},"20+ LLM 后端",{"type":34,"value":275},"：OpenAI \u002F Anthropic \u002F Gemini \u002F DeepSeek \u002F Ollama \u002F GROQ \u002F xAI \u002F Azure \u002F Cohere \u002F OpenRouter \u002F GitHub Copilot \u002F Vertex AI \u002F Amazon Bedrock 等",{"type":28,"tag":206,"props":277,"children":278},{},[279,284],{"type":28,"tag":91,"props":280,"children":281},{},[282],{"type":34,"value":283},"语音输入",{"type":34,"value":285},"：Voice-to-Code，用语音与 aider 讨论代码",{"type":28,"tag":206,"props":287,"children":288},{},[289,294,296,302],{"type":28,"tag":91,"props":290,"children":291},{},[292],{"type":34,"value":293},"IDE 监听",{"type":34,"value":295},"：",{"type":28,"tag":95,"props":297,"children":299},{"className":298},[],[300],{"type":34,"value":301},"--watch",{"type":34,"value":303}," 模式下，aider 监听文件变化，响应你在 IDE 中添加的 AI 注释",{"type":28,"tag":206,"props":305,"children":306},{},[307,312],{"type":28,"tag":91,"props":308,"children":309},{},[310],{"type":34,"value":311},"浏览器运行",{"type":34,"value":313},"：不仅限于终端，也可在浏览器中使用",{"type":28,"tag":206,"props":315,"children":316},{},[317,322],{"type":28,"tag":91,"props":318,"children":319},{},[320],{"type":34,"value":321},"Prompt 缓存",{"type":34,"value":323},"：支持 prompt caching 降低成本、加速响应",{"type":28,"tag":206,"props":325,"children":326},{},[327,332],{"type":28,"tag":91,"props":328,"children":329},{},[330],{"type":34,"value":331},"Linting\u002FTesting 自动修复",{"type":34,"value":333},"：自动检测并修复 lint 和测试错误",{"type":28,"tag":206,"props":335,"children":336},{},[337,342],{"type":28,"tag":91,"props":338,"children":339},{},[340],{"type":34,"value":341},"LLM 排行榜",{"type":34,"value":343},"：在 aider.chat 提供代码编辑与重构排行榜",{"type":28,"tag":46,"props":345,"children":347},{"id":346},"推荐模型",[348],{"type":34,"value":346},{"type":28,"tag":41,"props":350,"children":351},{},[352],{"type":34,"value":353},"Claude 3.5 Sonnet、DeepSeek R1 & Chat V3、OpenAI o1、o3-mini、GPT-4o",{"type":28,"tag":46,"props":355,"children":357},{"id":356},"适用场景",[358],{"type":34,"value":356},{"type":28,"tag":202,"props":360,"children":361},{},[362,367,372,377,382],{"type":28,"tag":206,"props":363,"children":364},{},[365],{"type":34,"value":366},"✅ 终端 AI pair programming",{"type":28,"tag":206,"props":368,"children":369},{},[370],{"type":34,"value":371},"✅ Architect 模式处理复杂重构",{"type":28,"tag":206,"props":373,"children":374},{},[375],{"type":34,"value":376},"✅ 需要灵活切换 LLM 后端的开发者",{"type":28,"tag":206,"props":378,"children":379},{},[380],{"type":34,"value":381},"✅ 预算有限但想用 Agent 编程",{"type":28,"tag":206,"props":383,"children":384},{},[385],{"type":34,"value":386},"✅ 在 IDE 中通过 AI 注释驱动代码修改",{"type":28,"tag":46,"props":388,"children":390},{"id":389},"局限性",[391],{"type":34,"value":389},{"type":28,"tag":202,"props":393,"children":394},{},[395,400,405],{"type":28,"tag":206,"props":396,"children":397},{},[398],{"type":34,"value":399},"需要自备 LLM API Key，成本取决于模型选择",{"type":28,"tag":206,"props":401,"children":402},{},[403],{"type":34,"value":404},"终端操作对新手有门槛",{"type":28,"tag":206,"props":406,"children":407},{},[408],{"type":34,"value":409},"没有原生 GUI（但支持浏览器模式）",{"title":9,"searchDepth":411,"depth":411,"links":412},3,[413,415,416,417,418,419],{"id":48,"depth":414,"text":48},2,{"id":192,"depth":414,"text":195},{"id":233,"depth":414,"text":233},{"id":346,"depth":414,"text":346},{"id":356,"depth":414,"text":356},{"id":389,"depth":414,"text":389},"markdown","content:tools:aider.md","content","tools\u002Faider.md","tools\u002Faider","md",1777287374111]