Installing Open WebUI
Open WebUI supports multiple installation methods to suit your deployment needs. Choose the method that best fits your infrastructure and requirements.Before installing, ensure you’re using Python 3.11 or 3.12 for pip installations. Docker installations work on any system with Docker installed.
Installation Methods
Docker
Recommended for most users - quick and isolated
Python pip
Direct installation using Python package manager
Docker Compose
Multi-container setup with Ollama included
Kubernetes
Production deployments with kubectl, kustomize, or helm
Docker Installation
Docker is the recommended installation method for most users, providing isolation and easy management.Prerequisites
- Docker installed on your system
- (Optional) NVIDIA CUDA container toolkit for GPU support
With Local Ollama
If Ollama is running on your computer:With Remote Ollama
If Ollama is on a different server:With GPU Support (NVIDIA)
To run Open WebUI with Nvidia GPU support:OpenAI API Only
If you’re only using OpenAI API:Bundled with Ollama
This installation method uses a single container image that bundles Open WebUI with Ollama:Python pip Installation
Install Open WebUI directly using pip for development or custom deployments.Run Open WebUI
After installation, start the server:The server will start and be accessible at http://localhost:8080
With PostgreSQL Support
To install with PostgreSQL support:With All Optional Dependencies
For a complete installation with all optional features:Docker Compose
Docker Compose provides a convenient way to run Open WebUI with Ollama in a multi-container setup.Access Open WebUI
Open your browser and navigate to http://localhost:3000
Kubernetes
Deploy Open WebUI in Kubernetes for production-grade scalability and reliability.Kubernetes deployments support kubectl, kustomize, and Helm. Refer to the Open WebUI documentation for detailed Kubernetes deployment guides.
Environment Configuration
For Kubernetes deployments, set theK8S_FLAG environment variable:
Network Configuration
Using Host Network
If you’re experiencing connection issues, use the--network=host flag. Note that the port changes from 3000 to 8080:
Using Dev Branch
To try bleeding-edge features:Offline Mode
If running Open WebUI in an offline environment, set theHF_HUB_OFFLINE environment variable:
Environment Variables
Key environment variables for installation:| Variable | Description | Default |
|---|---|---|
OLLAMA_BASE_URL | URL for Ollama server | http://localhost:11434 |
OPENAI_API_KEY | OpenAI API key | - |
OPENAI_API_BASE_URL | OpenAI API base URL | - |
WEBUI_SECRET_KEY | Secret key for sessions | Generated |
DATA_DIR | Data directory path | /app/backend/data |
HF_HUB_OFFLINE | Offline mode for HuggingFace | false |
Next Steps
Quick Start
Get started with your first chat
Configuration
Configure Open WebUI settings
Troubleshooting
Connection Issues If you experience connection issues, the WebUI docker container may not be able to reach the Ollama server. Try using--network=host or verify your OLLAMA_BASE_URL setting.
Data Persistence
Always use volume mounts (-v open-webui:/app/backend/data) to ensure data persistence across container restarts.
GPU Not Detected
Ensure the NVIDIA CUDA container toolkit is properly installed and use the :cuda tagged image.
For more troubleshooting help, visit the Open WebUI Documentation or join our Discord community.