Prerequisites
- Python 3.11 or 3.12 (Python 3.13 is not yet supported)
- pip package manager
- Git (for development installation)
Quick Installation
Start the Server
Installation Options
Standard Installation
Basic installation with core dependencies:PostgreSQL Support
Install with PostgreSQL support:psycopg2-binary- PostgreSQL adapterpgvector- PostgreSQL vector extension
All Optional Dependencies
Install with all optional dependencies:- Vector databases (Qdrant, Milvus, Pinecone, Weaviate, Elasticsearch, Oracle)
- Cloud storage emulators
- Testing frameworks
- Document processing tools
System Dependencies
Open WebUI requires several system packages. Install them based on your OS:Ubuntu/Debian
macOS
Windows
Install the following:Configuration
Environment Variables
Create a.env file in your working directory:
.env
Data Directory
By default, Open WebUI stores data in:- Linux/macOS:
~/.local/share/open-webui/data/ - Windows:
%APPDATA%\open-webui\data\
DATA_DIR environment variable:
Running Open WebUI
Basic Usage
Custom Port
With Environment Variables
Production Mode
For production, use a production-grade WSGI server:Development Installation
For development with hot-reload:Upgrading
Upgrade to Latest Version
Upgrade with Dependencies
Uninstalling
Uninstalling Open WebUI does not remove your data directory. Back up or manually delete it if needed.
Virtual Environment (Recommended)
Use a virtual environment to isolate dependencies:Using venv
Using conda
GPU Support (CUDA)
For CUDA GPU acceleration:Install CUDA Toolkit
Install NVIDIA CUDA Toolkit for your platform.
Apple Silicon (M1/M2) Support
For Apple Silicon Macs, use Metal Performance Shaders (MPS):Troubleshooting
Import Errors
If you encounter import errors, ensure you’re using Python 3.11 or 3.12:Permission Errors
Use--user flag to install in user directory:
Database Errors
If database migrations fail:Port Already in Use
Change the port:Missing System Dependencies
Ensure all system dependencies are installed (see System Dependencies section above).Environment-Specific Notes
WSL (Windows Subsystem for Linux)
On WSL, ensure you have the required system packages:Docker Alternative
If pip installation doesn’t work for your environment, consider using Docker deployment instead.Next Steps
Environment Variables
Configure Open WebUI with environment variables
Docker Deployment
Alternative Docker-based installation
Updating
Keep your installation up-to-date
Configuration
Configure Open WebUI features