Aider
1.1 Usage
Method 1: Environment Variables (Recommended)
# Mac/Linux
export OPENAI_API_BASE="https://api.hpc-ai.com/inference/v1"
export OPENAI_API_KEY="your-hpc-ai-api-key"
# Windows
setx OPENAI_API_BASE "https://api.hpc-ai.com/inference/v1"
setx OPENAI_API_KEY "your-hpc-ai-api-key"
# ... restart shell after setx commands
Method 2: Command-Line Arguments
# Specify API endpoint and key directly
aider --model minimax/minimax-m2.5 \
--openai-api-base https://api.hpc-ai.com/inference/v1 \
--openai-api-key your-hpc-ai-api-key
Method 3: Global Config File
Configure in ~/.aider.conf.yml:
model: minimax/minimax-m2.5
openai-api-base: https://api.hpc-ai.com/inference/v1
openai-api-key: your-hpc-ai-api-key
Method 4: Reasoning Model Configuration
For reasoning models (e.g., o1-class models):
# Set reasoning effort
aider --model minimax/minimax-m2.5 \
--reasoning-effort high
Method 5: Multi-Model Configuration
Aider supports separate main and editor models:
# Main model for chat
aider --model minimax/minimax-m2.5
# Editor model for code edits
aider --model minimax/minimax-m2.5 \
--editor-model minimax/minimax-m2.5