Docker is the usual way to run Open WebUI, but you do not need it. Open WebUI is a normal Python package on PyPI. You can install it with pip, uv or Conda and start it with one command.
That makes it a good fit for a Windows laptop without Docker Desktop, a Raspberry Pi, or a small Linux server where you want fewer moving parts.
This guide covers every non-Docker method, the Python version that works (3.13 does not), where your data is stored and how to keep it safe.
It also shows how to install the CPU-only PyTorch build to save gigabytes, run it as a service that starts at boot, update it, and fix the usual errors. It follows the official Open WebUI documentation as of December 2026.
- Python: use 3.12 (3.11 also works). 3.13 is not supported.
- pip:
python -m pip install open-webuithenopen-webui serve; openhttp://localhost:8080. - uv (no venv to manage):
DATA_DIR=~/.open-webui uvx --python 3.12 open-webui@latest serve. - Always set
DATA_DIRso chats live outside the Python environment. - No NVIDIA GPU? Install CPU PyTorch first to skip the CUDA libraries.
- Update:
pip install -U open-webui, then restart.
Docker vs Python Install
| Docker | Python (pip, uv, Conda) | |
|---|---|---|
| Setup | Needs Docker installed | Needs Python 3.11 or 3.12 |
| Default URL | http://localhost:3000 |
http://localhost:8080 |
| Extras included | ffmpeg and system libraries bundled | You install ffmpeg yourself |
| Isolation | Full container | Virtual environment |
| Best for | Production, easy rollbacks | Laptops, low-resource devices, no-Docker hosts |
The docs recommend Docker or Python 3.12 on Linux for production. A pip, uv or Conda install on Windows is fine for personal use.
Check Your Python Version
Open WebUI supports Python 3.11 and 3.12. Python 3.13 is not supported, because some dependencies have no 3.13 release, so installs fail or break at runtime. Check before you start:
python --version
python -m pip --version
Installing a new Python does not change an existing virtual environment. If the version is wrong, create a fresh environment with 3.12 as shown below.
Method 1: pip in a Virtual Environment
- Create a virtual environment with Python 3.12:
# Linux / macOS python3.12 -m venv venv # Windows (Python launcher) py -3.12 -m venv venv - Activate it:
# Linux / macOS source venv/bin/activate # Windows venv\Scripts\activate - Install Open WebUI:
python -m pip install open-webuiThe first install downloads a lot, including PyTorch, so give it a few minutes.
- Start it with a data folder:
# Linux / macOS DATA_DIR=~/.open-webui open-webui serve # Windows PowerShell $env:DATA_DIR="C:\open-webui\data"; open-webui serve - Open
http://localhost:8080in your browser. The first start can take a minute.
To use another port, run open-webui serve --port 3000. --host changes the bind address.
Method 2: uv
uv downloads the right Python for you and runs Open WebUI in a cached environment, so there is no venv to create or activate.
- Install uv:
# macOS / Linux curl -LsSf https://astral.sh/uv/install.sh | sh # Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" - Run Open WebUI:
# macOS / Linux DATA_DIR=~/.open-webui uvx --python 3.12 open-webui@latest serve # Windows PowerShell $env:DATA_DIR="C:\open-webui\data"; uvx --python 3.12 open-webui@latest serve
Do not skip DATA_DIR here. Without it, uvx may keep your data in a temporary or cached folder that can be cleared, taking your chats with it.
Method 3: Conda
conda create -n open-webui python=3.12
conda activate open-webui
python -m pip install open-webui
open-webui serve
Conda suits people who already use Anaconda or Miniconda for AI work. Set DATA_DIR the same way as above.
Save Space on Machines Without NVIDIA
On Linux x86_64, a plain install pulls the default PyTorch build, which brings several gigabytes of NVIDIA CUDA libraries even if you have no NVIDIA GPU. Install the CPU build first, in the same environment:
pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install open-webui
With uv, use uv pip install for the same command. For AMD GPUs, install the ROCm build from PyTorch’s install page instead. Open WebUI only uses PyTorch for local features such as embeddings and speech; the chat models themselves run in Ollama, llama.cpp or a cloud API.
Install ffmpeg
The Docker image includes ffmpeg; a Python install does not. Voice input and some text-to-speech engines need it, otherwise the log shows Couldn't find ffmpeg or avconv.
Install it with your package manager (sudo apt install ffmpeg, brew install ffmpeg or winget install ffmpeg) and make sure it is on the PATH of the shell that runs Open WebUI. Voice setup is covered in our Open WebUI voice guide.
Data Folder, Secret Key and Settings
- Where data lives: without
DATA_DIR, Open WebUI stores its database and uploads inside the environment atsite-packages/open_webui/data. Deleting the venv deletes your chats. Always setDATA_DIRto a folder you back up; see our Open WebUI backup guide. - Secret key:
open-webui servewrites a signing key to.webui_secret_keyin the folder you start it from. Start from a different folder and a new key is made, which signs everyone out. SetWEBUI_SECRET_KEYor always start from the same folder. .envfiles are ignored in your start folder. A pip, uv or Conda install only reads<env>/lib/python3.12/.env(<env>\Lib\.envon Windows). Export variables in your shell or service file instead.
Example with several settings on Linux:
export DATA_DIR=~/.open-webui
export WEBUI_SECRET_KEY="change-me-to-a-long-random-string"
export OLLAMA_BASE_URL=http://localhost:11434
open-webui serve --port 8080
First Start and Connecting Models
- Create the admin account on the first screen. The first user becomes the administrator, and new sign-ups are then switched off until you turn them on.
- Connect Ollama. If Ollama runs on the same machine, Open WebUI finds it at
http://localhost:11434automatically. See our Open WebUI Ollama setup. - Or connect llama.cpp or any OpenAI-compatible server under Admin Settings, Connections. Our Open WebUI llama.cpp guide has the exact URL.
- Start a chat and pick a model from the selector.
Want the whole stack fully offline after setup? Follow our Open WebUI offline guide.
Run Open WebUI as a Service
To start Open WebUI at boot on Linux, use systemd. This unit is based on the one in the Open WebUI docs:
- Install into a fixed path, for example a venv at
/opt/open-webui/venv, owned by a dedicatedopenwebuiuser. - Create
/etc/open-webui/envwith your variables:DATA_DIR=/var/lib/open-webui WEBUI_SECRET_KEY=change-me-to-a-long-random-string - Create
/etc/systemd/system/open-webui.service:[Unit] Description=Open WebUI After=network.target [Service] Type=simple User=openwebui EnvironmentFile=/etc/open-webui/env ExecStart=/opt/open-webui/venv/bin/open-webui serve Restart=always RestartSec=5 [Install] WantedBy=multi-user.target - Enable and start it:
sudo systemctl daemon-reload sudo systemctl enable --now open-webui sudo systemctl status open-webui
Make sure the openwebui user owns /var/lib/open-webui. To reach it from other devices with HTTPS, put a reverse proxy in front, as in our Open WebUI HTTPS guide. On Windows, the simplest option is a Task Scheduler task that runs the open-webui serve command at logon.
Update and Uninstall
Update
pip install -U open-webui
open-webui serve
With uvx and @latest, each start already fetches the newest release. Back up your DATA_DIR before big upgrades, because database migrations run on startup. If you run more than one worker (UVICORN_WORKERS above 1), start the new version with one worker until migrations finish. Our update Open WebUI guide covers pinning and rollback.
Uninstall
- pip:
pip uninstall open-webui, or delete the venv folder. - uv:
uv tool uninstall open-webui, thenuv cache clean. - Conda:
conda remove --name open-webui --all. - Data: delete your
DATA_DIRfolder only if you want to erase all chats and users.
Troubleshooting
open-webui: command not found
Activate the environment you installed into. The command lives in its bin folder (Scripts on Windows).
pip says the Python version is unsupported
You are on 3.13 or older than 3.11. Create a new venv with Python 3.12 and reinstall.
Install takes forever or runs out of disk
PyTorch with CUDA is large. On machines without NVIDIA, install the CPU build first.
Everyone gets logged out after a restart
The secret key changed. Set WEBUI_SECRET_KEY or start from the same folder each time.
Settings in my .env file are ignored
Python installs do not read .env from the start folder. Export the variables or use a service EnvironmentFile.
Port 8080 is already in use
Run open-webui serve --port 9999 or stop the other app.
Cannot reach Ollama
Check that Ollama is running and that the URL is http://localhost:11434. See Open WebUI connection error fixes.
FAQ
Can I run Open WebUI without Docker?
Yes. Install it with pip, uv or Conda on Python 3.11 or 3.12 and run open-webui serve.
Which Python version does Open WebUI need?
Python 3.12 is recommended; 3.11 works. Python 3.13 is not supported.
What port does a pip install use?
8080, at http://localhost:8080. Change it with --port.
Where does Open WebUI store data without Docker?
In DATA_DIR if you set it, otherwise inside the Python environment at site-packages/open_webui/data.
Does it work on Windows?
Yes, for personal use. The docs recommend Linux for production.
Does it work on a Raspberry Pi?
Yes. Open WebUI supports ARM64 Linux, including Raspberry Pi. Use the CPU PyTorch build and run models elsewhere or very small ones locally.
Is a pip install slower than Docker?
No. Speed depends on your model server, not on how Open WebUI is installed. If it feels slow, see why Open WebUI is slow.



