Connect an OpenAI-Compatible Service
Use OpenAI Compatible for OpenAI and for any provider that exposes an OpenAI-compatible chat API.
Add the service
- Open Settings and go to Services.
- Add a new service or edit an existing one.
- Set API Format to OpenAI Compatible.
- Enter a Name you will recognize.
- Enter the Service Address from your provider.
- Choose Address Type.
- Enter and save the Access Key.
- Add the Model ID your provider expects.
- Click Test Connection.
Address examples
Use Service Root when the provider gives you a base address:
text
https://api.openai.com/v1Use Full Request Address when the provider gives you the complete chat endpoint:
text
https://api.openai.com/v1/chat/completionsOther providers may use different paths. Copy the exact base address or full endpoint from your provider's documentation.
Add the model
The model list can be refreshed when the service uses Service Root and exposes a models endpoint. If discovery is not available, add the model manually:
- Under the service, select Add Model.
- Enter a Display Name for the model picker.
- Enter the exact Model ID the API expects.
- Choose whether answers should stream into the window.
- Select Use for Chat when ready.
After setup
Close Settings, press ⌥ + Space, and ask a question. If the connection test passes but a question fails, see Troubleshooting.
Related: Service Root vs Full Request Address, Providers & Models