Open WebUI
Open WebUI is a popular self-hosted AI chat interface. Connect it to Openference as an OpenAI-compatible endpoint.Add the connection
- Open Admin Settings → Connections.
- Add a new OpenAI API connection (or edit an existing one).
- Set the Base URL and API key:
- Add a custom header in the connection’s headers JSON:
- Save the connection and select your Openference models in chat.
The User-Agent header is required
Open WebUI does not send a distinctive User-Agent on outbound API calls — requests typically use a default Python HTTP client User-Agent, which is rejected with a 403 “coding agent required” error. Adding the customUser-Agent header identifies your requests as coming from Open WebUI.
Troubleshooting
- 403 coding agent required — the custom User-Agent header is missing. Edit the connection and add the headers JSON shown above.
- Models not appearing — Open WebUI fetches
GET /v1/modelsfrom the connection. Verify the base URL includes/v1and the key is valid.