OD OllamaDoctor
INTEGRATION GUIDE · WEB INTERFACES

How to Install Open WebUI with Ollama on Windows

By Web Applications Team Updated: October 30, 2026 Open WebUI Docker Desktop Native Python Read Time: 11 min

Ollama's terminal CLI is great for quick tests, but for day-to-day productivity, having a self-hosted, ChatGPT-grade web interface with document RAG uploads, chat history, prompt templates, and voice integration transforms your experience. Open WebUI is the premier open-source frontend for Ollama. Here is how to install it on Windows using either Docker Desktop or native Python without network bridge errors.

Prerequisite: Configure Ollama CORS on Windows

Before launching Open WebUI, you must configure Ollama to accept cross-origin requests from external web ports (like port 3000 or 8080). Otherwise, your browser will block API communication with CORS policy: No 'Access-Control-Allow-Origin' header.

Run these two commands in PowerShell:

[Environment]::SetEnvironmentVariable('OLLAMA_ORIGINS', '*', 'User')
[Environment]::SetEnvironmentVariable('OLLAMA_HOST', '0.0.0.0', 'User')

Quit Ollama from the Windows taskbar system tray and restart it.

Method 1: The Docker Desktop Way (Recommended)

If you already have Docker Desktop installed on Windows, running Open WebUI as a container guarantees isolated dependencies, automatic data persistence, and effortless updates.

Open PowerShell and run the official container:

docker run -d -p 3000:8080 `
  --add-host=host.docker.internal:host-gateway `
  -v open-webui-data:/app/backend/data `
  --name open-webui `
  --restart always `
  ghcr.io/open-webui/open-webui:main
Understanding --add-host=host.docker.internal:host-gateway: Because Docker containers run in an isolated Linux virtual network, the container cannot reach your Windows PC via localhost:11434. The host.docker.internal DNS route maps directly to your Windows host machine, allowing the container to talk to Ollama without hassle.

Method 2: Native Python Way (No Docker Required!)

If you don't want the resource overhead of Docker Desktop or Hyper-V, Open WebUI can be installed natively as a standard Python package using pip.

Step 1: Check Python Version (Python 3.11 Recommended)

python --version

Step 2: Install Open WebUI via Pip

pip install open-webui

Step 3: Launch Open WebUI

open-webui serve

Step 3: Accessing Open WebUI in Your Browser

Once started, open your web browser and navigate to:

http://localhost:3000/

(Or http://localhost:8080/ if running via Python native serve).

  1. Create your initial local administrator account (all data remains 100% on your local disk).
  2. Click on the Model selector at the top-left. All your local Ollama models (e.g. llama3.1:8b, qwen2.5:14b) will automatically appear in the drop-down menu!

Troubleshooting Connection Errors

Error Message in Web UI Underlying Cause Direct Fix
WebUI: Server connection failed Ollama is not running or blocked by Windows Firewall. Verify http://127.0.0.1:11434 returns "Ollama is running".
Connection refused: host.docker.internal Ollama bound only to 127.0.0.1 instead of 0.0.0.0. Set OLLAMA_HOST=0.0.0.0 and restart Ollama tray app.
CORS error: Blocked by origin policy OLLAMA_ORIGINS variable not active. Set OLLAMA_ORIGINS=* in User environment variables.

Frequently Asked Questions

Can other devices on my home Wi-Fi access Open WebUI?

Yes! Simply find your host PC's local IP address (e.g. 192.168.1.150) and navigate to http://192.168.1.150:3000 from any phone, tablet, or laptop on the same network.

Where are my chats and uploaded documents stored?

In Docker, they are stored inside the persistent volume named open-webui-data. In Python native, they are stored in C:\Users\<YourUsername>\.open-webui\data\.

← LAN Remote Access Error Codes Directory →
Advertisement