Aider
Route Aider requests through RelayPlane using the --openai-api-base flag.
Setup
Point Aider at RelayPlane's OpenAI-compatible endpoint:
1aider --openai-api-base http://localhost:4100/v1Or set it as an environment variable:
1export OPENAI_API_BASE=http://localhost:4100/v12aiderUsing Smart Routing
Use RelayPlane model aliases with Aider's --model flag:
1# Automatic complexity-based routing2aider --openai-api-base http://localhost:4100/v1 --model relayplane:auto34# Always use the cheapest model5aider --openai-api-base http://localhost:4100/v1 --model rp:cheap67# Or use a specific model through the proxy8aider --openai-api-base http://localhost:4100/v1 --model claude-sonnet-4-6Shell Alias
Create a convenient alias:
1alias aider-rp='aider --openai-api-base http://localhost:4100/v1'Note: Make sure your provider API keys are set as environment variables (
ANTHROPIC_API_KEY, OPENAI_API_KEY, etc.) so RelayPlane can route to any provider.