What This Setup Gives You
Open WebUI is a self-hosted chat interface in the style people know from ChatGPT: conversation history, multiple models side by side in one selector, user accounts, and an admin panel. Everything it stores, chats, accounts and settings, lives in a Docker volume on the machine, so nothing leaves the house unless a cloud model is connected on purpose.
The backend is pluggable. The quick start lists Ollama for local models, plus OpenAI and Anthropic as first-class providers, OpenAI-compatible services such as Groq, Mistral and OpenRouter, and local servers such as llama.cpp, vLLM and LM Studio. One interface, any mix of local and cloud models.
The One-Command Docker Start (Checked 22 November 2026)
Docker is the officially recommended install. The command below assumes Ollama is already installed on the host machine; on a fresh box, jump to the bundled image command in Route 2. With Docker in place, the documented starting command is:
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:main
| Flag | What it does |
|---|---|
-p 3000:8080 | UI shows up on port 3000 of the machine; change the left number if 3000 is taken |
-v open-webui:/app/backend/data | Chats, users and settings persist in this named volume across updates |
--add-host=host.docker.internal:host-gateway | Lets the container reach Ollama or anything else running on the host machine |
-e WEBUI_SECRET_KEY=... | Generate it with openssl rand -hex 32 and keep it fixed; recreating the container with a fresh random value, or without the data volume, invalidates every existing login |
--restart always | Container comes back after a reboot |
Open http://localhost:3000 and the first visit asks for an administrator account. That account lands in the admin section, where model connections are configured.
Connecting Models: Three Routes
Route 1, Ollama already on the machine: the container looks for it at http://host.docker.internal:11434, the documented Docker default for OLLAMA_BASE_URL. The single most common failure is an empty model list, and the troubleshooting page pins the cause: when Open WebUI runs in Docker, the host Ollama has to listen on 0.0.0.0, not just localhost. Models are pulled from the interface itself: type the model name into a new chat's selector and confirm the download.
Route 2, one container for everything: the bundled ghcr.io/open-webui/open-webui:ollama image carries Open WebUI and Ollama together, with -v ollama:/root/.ollama for model storage and --gpus=all where a GPU exists.
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama
CPU-only machines drop the --gpus=all flag. NVIDIA's DGX Spark playbook uses exactly this image, budgeting about 7 GB for the image download, roughly 15 GB for gpt-oss:20b and about 25 GB for qwen3.6:latest, per the official playbook. The full command appears at the start of this route.
Route 3, cloud APIs: under the avatar, Settings > Connections takes a URL and key per provider, OpenAI-compatible endpoints included. This is also the answer for machines without a GPU: Groq or OpenRouter carry the model side while Open WebUI keeps the interface and history local.
Pick a Route and Ship It
Choose Route 1 if: Ollama is already installed and models are already pulled, and the UI is the only missing piece. One command adds the interface without moving a single model file, and the UI and the model server upgrade on their own schedules.
Choose Route 2 if: the machine is fresh, nothing is installed yet, and the goal is the shortest path to a working stack. One image, one container, one upgrade cycle, at the cost of coupling the two components.
Choose Route 3 if: the hardware is a laptop CPU or a small GPU that cannot carry the intended model locally. Local interface, cloud inference, and WEBUI_AUTH=False turns the login step off for a personal box, an option the quick start documents for single-user mode.
Whichever route, keep the volume and the fixed secret key; both are what make rebuilds painless.