website/integrations/miscellaneous/open-webui/index.md
Open WebUI is a simple, self-hosted AI platform that works entirely offline. It supports tools like Ollama and OpenAI-style APIs and has a built-in engine for RAG tasks.
The following placeholders are used in this guide:
openwebui.company is the FQDN of the Open WebUI installation.authentik.company is the FQDN of the authentik installation.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
To support the integration of Open WebUI with authentik, you need to create an application/provider pair in authentik.
Strict redirect URI to https://openwebui.company/oauth/oidc/callback.To configure Open WebUI to use authentik, add the following environment variables to your Open WebUI deployment:
:::warning
WEBUI_URL is persisted by Open WebUI and must be set before enabling SSO. If you change it later, disable persistent configuration or update the value in the Admin panel. More information is available in the Open WebUI documentation.
:::
OAUTH_CLIENT_ID=<client_id>
OAUTH_CLIENT_SECRET=<client_secret>
OAUTH_PROVIDER_NAME=authentik
OPENID_PROVIDER_URL=https://authentik.company/application/o/<application_slug>/.well-known/openid-configuration
OPENID_REDIRECT_URI=https://openwebui.company/oauth/oidc/callback
WEBUI_URL=https://openwebui.company
# Allows auto-creation of new users using OAuth. Must be paired with ENABLE_LOGIN_FORM=false.
ENABLE_OAUTH_SIGNUP=true
# Disables user/password login form. Required when ENABLE_OAUTH_SIGNUP=true.
ENABLE_LOGIN_FORM=false
OAUTH_MERGE_ACCOUNTS_BY_EMAIL=true
Then restart Open WebUI to apply the changes.
Replace <application_slug> with the authentik application slug created earlier.
https://openwebui.company.https://openwebui.company.:::info
Users are automatically created, but an administrator must update their role to at least User via the Web UI.
To do so, log in as an administrator and access the Admin Panel (URL: https://openwebui.company/admin/users).
Click the user whose role should be increased from Pending to at least User.
More details on how to administer Open WebUI can be found here: https://docs.openwebui.com/.
:::