Website • Documentation • GitHub • Discord
Open WebUI is a free and open-source web interface for interacting with Large Language Models. A privacy-friendly, self-hosted alternative to ChatGPT.
- Multi-Model Support — Connect to Ollama, OpenAI, and other providers
- Conversation History — All chats stored locally
- Multi-User Ready — Role-based access control
- RAG Support — Upload documents for context
- Model Management — Download and manage Ollama models
- Customizable — Themes, personas, and custom prompts
- API Compatible — Works with OpenAI-compatible APIs
- Docker and Docker Compose
- External Docker network
- Reverse proxy (Caddy, Nginx, Traefik)
- Ollama or OpenAI API access
Edit docker-compose.yml:
- Replace
your-networkwith your Docker network name
docker compose up -d- Access Open WebUI at
http://your-server:8071 - Create an admin account (first user becomes admin)
- Configure your LLM backend in Settings → Connections
| Variable | Description | Default |
|---|---|---|
PUID |
User ID for file permissions | 1000 |
PGID |
Group ID for file permissions | 1000 |
OLLAMA_BASE_URL |
Ollama API URL | - |
OPENAI_API_KEY |
OpenAI API key | - |
WEBUI_AUTH |
Enable authentication | true |
chat.example.com {
reverse_proxy http://localhost:8071
}
| Port | Service | Description |
|---|---|---|
| 8071 | HTTP | Web interface |
| Path | Description |
|---|---|
./data |
Database, uploads, and settings |
If Ollama runs on the same host:
environment:
- OLLAMA_BASE_URL=http://host.docker.internal:11434If Ollama runs in Docker on the same network:
environment:
- OLLAMA_BASE_URL=http://ollama:11434Uncomment and configure OAuth settings in docker-compose.yml:
- ENABLE_OAUTH_SIGNUP=true
- OAUTH_MERGE_ACCOUNTS_BY_EMAIL=true
- OAUTH_PROVIDER_NAME=authentik
- OPENID_PROVIDER_URL=https://auth.example.com/application/o/openwebui/
- OAUTH_CLIENT_ID=your-client-id
- OAUTH_CLIENT_SECRET=your-client-secret
- OAUTH_SCOPES=openid email profile
- OPENID_REDIRECT_URI=https://chat.example.com/oauth/oidc/callbackOpen WebUI is released under the MIT License.
