Aider works with OpenAI-compatible endpoints through
environment variables.
export OPENAI_API_BASE="https://api.ethereal.llc/v1"
export OPENAI_API_KEY="eth-..."
aider --model openai/claude-sonnet-4-6
Other models:
aider --model openai/claude-opus-4-8 # complex tasks
aider --model openai/claude-haiku-4-5 # fast and cheap
The openai/ prefix tells Aider to use the OpenAI-compatible path to the model
via the configured OPENAI_API_BASE.