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/v1

Or set it as an environment variable:

1export OPENAI_API_BASE=http://localhost:4100/v1
2aider

Using Smart Routing

Use RelayPlane model aliases with Aider's --model flag:

1# Automatic complexity-based routing
2aider --openai-api-base http://localhost:4100/v1 --model relayplane:auto
3
4# Always use the cheapest model
5aider --openai-api-base http://localhost:4100/v1 --model rp:cheap
6
7# Or use a specific model through the proxy
8aider --openai-api-base http://localhost:4100/v1 --model claude-sonnet-4-6

Shell 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.