Article·aider.chat
ai-codingterminalpair-programminggit-integration
Aider
Aider is a terminal-based AI pair programming tool. It offers deep Git integration, automated commits, and diff-based editing. It supports multiple LLM providers to streamline code development directly in your local repository.
beginner5 min4 steps
The play
- Install AiderUse pip to install aider. Make sure you have Python installed.
- Configure your LLM ProviderSet your OpenAI API key or configure another supported LLM provider.
- Run Aider in your Git RepoNavigate to your git repository in the terminal and run aider. Add the files you want Aider to work on.
- Start Chatting with AiderStart giving instructions. For example: "Add a function that calculates the average of a list of numbers". Aider will modify the files and automatically commit changes to git.
Starter code
# No specific starter code needed, Aider works with existing projects.
Source