--- parent: Connecting to LLMs nav_order: 500 --- # OpenAI compatible APIs Aider can connect to any LLM which is accessible via an OpenAI compatible API endpoint. ``` pip install aider-chat # Mac/Linux: export OPENAI_API_BASE= export OPENAI_API_KEY= # Windows: setx OPENAI_API_BASE setx OPENAI_API_KEY # Prefix the model name with openai/ aider --model openai/ ``` See the [model warnings](warnings.html) section for information on warnings which will occur when working with models that aider is not familiar with.