Aider Setup
Aider is an AI pair programming tool that runs in your terminal, allowing you to edit code in your local Git repository.Prerequisites
- Python 3.8+ installed
- Your API key and endpoint URL from admin
Installation
Setup
Alternative: Project Config
Create a.env file in your project root:
aider without flags.
Command Line Usage
Model Aliases
Aider uses short aliases for models:| Alias | Full Model |
|---|---|
sonnet | claude-sonnet-4-5-thinking |
opus | claude-opus-4-5-thinking |
Troubleshooting
API key not found
API key not found
- Check environment variable is set:
echo $ANTHROPIC_API_KEY - Restart your terminal after adding to shell config
Connection error
Connection error
- Verify
ANTHROPIC_BASE_URLis set correctly - Test:
curl YOUR_ENDPOINT_URL/health
Model not recognized
Model not recognized
- Use
sonnetoropusaliases - Or full model name:
claude-sonnet-4-5-thinking