All skills
Skillintermediate

OpenAI compatible APIs

Aider can connect to any LLM which is accessible via an OpenAI compatible API endpoint.

Claude Code Knowledge Pack7/10/2026

Overview

OpenAI compatible APIs

Aider can connect to any LLM which is accessible via an OpenAI compatible API endpoint.

First, install aider:

{% include install.md %}

Then configure your API key and endpoint:

# Mac/Linux:

# Windows:
setx OPENAI_API_BASE <endpoint>
setx OPENAI_API_KEY <key>
# ... restart shell after setx commands

Start working with aider and your OpenAI compatible API on your codebase:

# Change directory into your codebase
cd /to/your/project

# Prefix the model name with openai/
aider --model openai/<model-name>

See the model warnings section for information on warnings which will occur when working with models that aider is not familiar with.