Skip to main content
Install and run Open WebUI directly using Python pip for development or lightweight deployments.

Prerequisites

  • Python 3.11 or 3.12 (Python 3.13 is not yet supported)
  • pip package manager
  • Git (for development installation)
Open WebUI requires Python 3.11 or 3.12. Make sure you’re using a compatible version to avoid compatibility issues.

Quick Installation

1

Install Open WebUI

Install using pip:
2

Start the Server

Run Open WebUI:
The server will start on http://localhost:8080

Installation Options

Standard Installation

Basic installation with core dependencies:

PostgreSQL Support

Install with PostgreSQL support:
This includes:
  • psycopg2-binary - PostgreSQL adapter
  • pgvector - PostgreSQL vector extension

All Optional Dependencies

Install with all optional dependencies:
Includes additional packages for:
  • 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\
Customize with the 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:
1

Clone the Repository

2

Install Backend Dependencies

3

Install Frontend Dependencies

4

Run Development Server

Backend (in backend/ directory):
Frontend (in root directory):

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.
Use a virtual environment to isolate dependencies:

Using venv

Using conda

GPU Support (CUDA)

For CUDA GPU acceleration:
1

Install CUDA Toolkit

Install NVIDIA CUDA Toolkit for your platform.
2

Install PyTorch with CUDA

3

Install Open WebUI

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