Aider

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 setx

Method 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-key

Method 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-key

Method 4: Reasoning Model Setup

For reasoning-focused models (e.g., o1-class models):

# Adjust reasoning effort level
aider --model your-model-name \
      --reasoning-effort high

Method 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

1.2 References