Open WebUI provides a browser interface for working with connected model servers. It does not become a language model merely by being installed. This guide connects it to Ollama and stores your application data in a predictable location.

Choose either the native Python route or the optional Docker route. The Python route is useful when Ollama already runs on the same operating system. The Docker example creates a separate Ollama instance inside a private container network, so it has its own model downloads.

Prerequisites and installation choice

For the native route, first complete the Ollama guide and confirm that ollama run qwen3:4b works. Use Python 3.11 with a virtual environment for the steps below. The reviewed Open WebUI documentation supports Python 3.11 and 3.12 and identifies 3.11 as its most heavily tested option. Recheck compatibility before selecting a newer interpreter. Official quickstart

Download Python from its official website or use a trusted package manager appropriate to your system. Virtual environments isolate this application’s dependencies from other Python projects. Python virtual environments

The native instructions deliberately call the environment’s executable directly, so activating scripts or changing PowerShell execution policy is unnecessary.

Native Windows setup

In PowerShell, choose a new project directory and run:

New-Item -ItemType Directory -Path "$env:USERPROFILE\aifiddler-webui" -Force
Set-Location "$env:USERPROFILE\aifiddler-webui"
py -3.11 -m venv .venv
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\python.exe -m pip install open-webui
New-Item -ItemType Directory -Path '.\data' -Force
$env:DATA_DIR = (Resolve-Path '.\data').Path
$env:OLLAMA_BASE_URL = 'http://127.0.0.1:11434'
.\.venv\Scripts\open-webui.exe serve --host 127.0.0.1 --port 8080

Keep this terminal open and visit http://127.0.0.1:8080. The initial startup may take time to prepare the application and its dependencies. Read the terminal log before assuming it has stalled.

If py -3.11 cannot find the interpreter, install Python 3.11 and reopen the terminal. Do not substitute an unrelated Python installation without checking compatibility.

Native macOS setup

Install a supported Python 3.11, then open Terminal:

mkdir -p "$HOME/aifiddler-webui"
cd "$HOME/aifiddler-webui"
python3.11 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install open-webui
mkdir -p data
export DATA_DIR="$PWD/data"
export OLLAMA_BASE_URL="http://127.0.0.1:11434"
.venv/bin/open-webui serve --host 127.0.0.1 --port 8080

Open http://127.0.0.1:8080. Ollama can use its native macOS acceleration independently of the browser interface. Both servers need to be running.

Native Linux or WSL setup

Use your distribution’s supported way to install Python 3.11 and its virtual-environment support. Run the following inside Linux, including inside WSL if that is your chosen environment:

mkdir -p "$HOME/aifiddler-webui"
cd "$HOME/aifiddler-webui"
python3.11 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
.venv/bin/python -m pip install open-webui
mkdir -p data
export DATA_DIR="$PWD/data"
export OLLAMA_BASE_URL="http://127.0.0.1:11434"
.venv/bin/open-webui serve --host 127.0.0.1 --port 8080

The CPU PyTorch step keeps Open WebUI’s own local processing on the CPU in this learning setup. It does not disable GPU inference in a separate Ollama server. Use the documented accelerator-specific packages if you later need GPU processing for Open WebUI features.

For WSL, run Ollama in the same distribution for these instructions. A Windows-hosted Ollama service and a Linux client may need different networking, depending on WSL mode. Start with one environment before combining them.

First login and connection

Create the initial local account and confirm its administrative role. Keep authentication enabled. In the administrative connection settings, verify that the Ollama URL points to http://127.0.0.1:11434 for the native route. Save and test the connection.

Select qwen3:4b in a new chat and ask it to summarize a short fictional paragraph. If the model list is empty, check ollama list in the environment hosting Ollama. Open WebUI can show only models exposed by a working connection and allowed by its configuration; it does not discover every model file on your machine.

For a document exercise, upload a small fictional policy, ask one question answered by the policy and one that is absent, and inspect any cited passages. Attaching a document does not retrain the model or guarantee that every answer is supported. Open WebUI features

Continue with Chat with PDFs and documents locally for a complete walkthrough, local embedding configuration, and downloadable practice files with an answer checklist.

Optional Docker setup on all three platforms

Install Docker Desktop on Windows or macOS, or Docker Engine with the Compose plugin on Linux. Use Linux containers and verify docker version and docker compose version. On Windows, use the shell connected to your chosen Docker installation; Docker Desktop commands can run from PowerShell, while an Engine installed only inside WSL is used from that distribution. Docker Compose installation

Create a new directory and save this original two-service configuration as compose.yaml:

services:
  ollama:
    image: ollama/ollama:latest
    volumes:
      - ollama-data:/root/.ollama
    environment:
      OLLAMA_NO_CLOUD: "1"
    restart: unless-stopped
  webui:
    image: ghcr.io/open-webui/open-webui:main
    ports:
      - "127.0.0.1:3000:8080"
    environment:
      OLLAMA_BASE_URL: http://ollama:11434
      WEBUI_SECRET_KEY: ${WEBUI_SECRET_KEY:?Set WEBUI_SECRET_KEY in .env}
    volumes:
      - webui-data:/app/backend/data
    depends_on:
      - ollama
    restart: unless-stopped
volumes:
  ollama-data:
  webui-data:

Generate a random secret with Python 3.11: python3.11 -c "import secrets; print(secrets.token_hex(32))" on macOS/Linux, or py -3.11 -c "import secrets; print(secrets.token_hex(32))" on Windows. Save it in a local .env file as WEBUI_SECRET_KEY=your_generated_value. Keep this file private and retain it across container recreations.

From the directory containing both files, run:

docker compose up -d
docker compose exec ollama ollama pull qwen3:4b
docker compose ps
docker compose logs --tail=80 webui

Open http://127.0.0.1:3000. This CPU-only example leaves the Ollama API inside Docker’s network and exposes the browser UI on loopback. GPU passthrough needs a separate hardware-specific configuration; native Ollama is usually the simpler route for Apple-silicon acceleration. Ollama Docker documentation

The image tags shown are moving channels. Once you have a working setup, record the image digests and use fixed releases or digests for repeatable deployments. depends_on controls start order, not readiness; allow Ollama to finish starting before testing the connection.

Understand the connection address

Where Open WebUI runs Where Ollama runs Connection in this guide
Native Python Same operating-system environment http://127.0.0.1:11434
Docker Compose service Other service in the same Compose project http://ollama:11434

Inside a container, localhost refers to that container. A host gateway name alone does not make a loopback-only host service reachable on every platform. The paired-container configuration avoids that ambiguity. If you already changed connection settings in the admin UI, inspect them too; persisted settings can affect later configuration changes.

Restart, update, and back up

For Python, stop with Ctrl+C. To restart, return to the original directory, set DATA_DIR and OLLAMA_BASE_URL again, and run the same serve command. Retain the generated .webui_secret_key in that directory unless you explicitly configure a persistent WEBUI_SECRET_KEY.

Before a Python update, stop the server and copy the data directory and secret key to a backup. Record python -m pip show open-webui using your virtual environment’s interpreter, then run that interpreter with -m pip install --upgrade open-webui. Start again and verify login, a saved chat, and model connectivity.

For Docker, named volumes preserve data across container recreation. Use docker compose stop to stop and docker compose start to resume. Before upgrading, back up the stopped volumes and .env; then run docker compose pull and docker compose up -d. Do not add -v to a teardown command unless you intend to delete the named volumes and their data. Database migrations can make an older application incompatible with upgraded data, so rollback may require the matching backup. Update and backup guidance

Troubleshooting and completion check

If the browser cannot connect, inspect the startup log and confirm the correct port: 8080 for Python, 3000 for this Docker setup. If the model list is empty, check the connection URL and the model list on the connected Ollama server. If chats disappear after a restart, confirm you used the same DATA_DIR or volume.

Web search, external providers, plugins, and remote tools can send data outside your computer. Enable only the features you intend to use and understand their destinations. Keep this introductory setup limited to the local model and fictional documents.

Finish by creating a test chat, stopping and restarting the application, and confirming that the chat remains and the model still answers. That checks both inference connectivity and persistent storage.