Aider(CLI 编程 Agent) Aider 0.77
Aider系列 · Aider · 2023-05发布
模型介绍
Aider 是终端 AI 结对编程工具,支持多模型与 Git 集成,让 AI 直接在仓库中改代码、写测试、提交 commit。
模型基础信息
免费额度与收费政策
免费规则详情
Apache-2.0 免费。
收费标准简介
工具免费,模型按来源计费。
模型能力介绍
✅ 核心优势
- 纯 CLI
- Git 原生
- 多模型
- 轻量
⚠️ 短板与局限
- 无 IDE GUI
- 依赖模型质量
- 初学者入门门槛
🎯 适用场景
- 终端编程
- 代码重构
- 写测试
- 脚本自动化
模型使用教程
本章节整理 Aider(CLI 编程 Agent) 的在线体验、API调用、本地部署全套入门教程,快速上手使用该模型。
- 本地工具,安装后即可使用。
- 支持对接主流模型与本地推理引擎。
启动服务后按提示操作即可。
export HF_ENDPOINT=https://hf-mirror.com
模型权重通过 HuggingFace 镜像或 ModelScope 下载。
提供 HTTP API:
curl http://localhost:PORT/v1/chat/completions -H "Content-Type: application/json" -d '{"model":"default","messages":[{"role":"user","content":"你好"}]}'
Aider 是命令行 AI 编程助手,通过 git 协作改代码,可接入 Ollama/vLLM 本地模型。
- 安装:
pip install aider-chat 或 pipx install aider-chat
- 接入本地 Ollama:
aider --model ollama_chat/qwen2.5-coder:14b(Ollama 需先拉取模型)
- 开始编程:
在项目目录执行 aider,输入需求即可自动修改代码并提交 git。
Tips:接入 vLLM 时用 aider --model vllm/模型名 --openai-api-base http://localhost:8000/v1。
💡 使用小技巧
pip install aider 即可。
❓ 常见问题 FAQ
Q1:Aider 是什么?\nA1:终端 AI 结对编程。
访问备注与注意事项
- 终端党福音
Aitishiku.com