Configuration Guide
Open WebUI can be configured through environment variables, providing flexibility for different deployment scenarios. This guide covers all major configuration options.Setting Environment Variables
- Docker
- Docker Compose
- .env File
- Python/pip
Use the
-e flag to set environment variables:Core Configuration
Application Settings
Security Settings
Model Provider Configuration
Ollama Settings
OpenAI API Settings
Database Configuration
SQLite (Default)
PostgreSQL
Database Pool Settings
Redis Configuration
Redis is required for horizontal scaling and multi-worker deployments.Storage Configuration
Local Storage (Default)
Amazon S3
Google Cloud Storage
Azure Blob Storage
RAG & Vector Database
Vector Database Options
Open WebUI supports multiple vector databases for RAG:- ChromaDB (default)
- PGVector
- Qdrant
- Milvus
- Elasticsearch
- OpenSearch
- Pinecone
- S3Vector
- Oracle 23ai
RAG Settings
Authentication & OAuth
OAuth Providers
- Google OAuth
- Microsoft OAuth
- GitHub OAuth
- Generic OIDC
LDAP/Active Directory
LDAP integration is configured through the Admin Panel UI.SCIM 2.0 Provisioning
User Permissions
Default User Role
Chat Permissions
Workspace Permissions
Performance & Scaling
Worker Configuration
WebSocket Configuration
Caching
Observability
OpenTelemetry
Audit Logging
General Logging
Network & CORS
Advanced Features
Image Generation
Configure through Admin Panel UI. Supports:- OpenAI DALL-E
- Google Gemini
- ComfyUI (local)
- AUTOMATIC1111 (local)
Web Search
Configure search providers through Admin Panel UI. Supports 15+ providers including:- SearXNG
- Google Programmable Search Engine
- Brave Search
- DuckDuckGo
- Tavily
- Perplexity
Tool/Function Calling
Environment-Specific Examples
Next Steps
User Management
Set up roles, permissions, and access control
Model Configuration
Configure and manage AI models
API Reference
Integrate Open WebUI programmatically
Troubleshooting
Common issues and solutions
For a complete list of all environment variables, see the source code or check your
.env.example file.