Skip to main content

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.
When using Docker to install Open WebUI, make sure to include the -v open-webui:/app/backend/data in your Docker command. This step is crucial as it ensures your database is properly mounted and prevents any loss of data.

Prerequisites

  • Docker installed on your system
  • (Optional) NVIDIA CUDA container toolkit for GPU support

With Local Ollama

If Ollama is running on your computer:
Access Open WebUI at http://localhost:3000

With Remote Ollama

If Ollama is on a different server:

With GPU Support (NVIDIA)

To run Open WebUI with Nvidia GPU support:
You must install the Nvidia CUDA container toolkit on your Linux/WSL system before using the :cuda image.

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.
Before proceeding, ensure you’re using Python 3.11 or 3.12 to avoid compatibility issues.
1

Install Open WebUI

Open your terminal and run:
2

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.
1

Create docker-compose.yaml

Create a docker-compose.yaml file with the following content:
2

Start the services

Run the following command:
3

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 the K8S_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:
Access at http://localhost:8080

Using Dev Branch

The :dev branch contains the latest unstable features and changes. Use it at your own risk as it may have bugs or incomplete features.
To try bleeding-edge features:

Offline Mode

If running Open WebUI in an offline environment, set the HF_HUB_OFFLINE environment variable:
Or in Docker:

Environment Variables

Key environment variables for installation: See the Configuration Guide for a complete list of environment variables.

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.