Aider is AI pair programming in your terminal.
1.1 Usage
Method 1: Environment Variables (Recommended)
# macOS / Linux
export OPENAI_API_BASE="https://api.rygen.io/v1"
export OPENAI_API_KEY="your-rygen-api-key"
# Windows
setx OPENAI_API_BASE "https://api.rygen.io/v1"
setx OPENAI_API_KEY "your-rygen-api-key"
# Restart your shell after running setxMethod 2: Command-Line Arguments
# Pass API endpoint and key directly
aider --model your-model-name \
--openai-api-base https://api.rygen.io/v1 \
--openai-api-key your-rygen-api-keyMethod 3: Global Config File
Configure in ~/.aider.conf.yml:
model: your-model-name
openai-api-base: https://api.rygen.io/v1
openai-api-key: your-rygen-api-keyMethod 4: Reasoning Model Setup
For reasoning-focused models (e.g., o1-class models):
# Adjust reasoning effort level
aider --model your-model-name \
--reasoning-effort highMethod 5: Multi-Model Setup
You can assign different models for chat and editing tasks:
# Main conversational model
aider --model your-model-name
# Separate model for code editing
aider --model your-model-name \
--editor-model your-model-name
