Quick answer: Install and verify Ollama first, then install Open WebUI as the browser interface. The usual beginner path is Docker: run Open WebUI in a container, persist its data in a volume, open it in your browser, create the first admin user, and confirm it can reach Ollama. The most common failure is the connection between a Docker container and Ollama running on the host machine.
Best for: users who already have Ollama working and want a ChatGPT-like browser interface for local models, file uploads, and a reusable workspace. Not for: users who have not yet installed Ollama or do not want Docker.
Open WebUI connected to a cloud API is not a fully local AI workflow.
For a first installation, start with the Ollama check, then install Open WebUI. Already installed but missing models? Go to the connection settings. The Windows and Mac Docker Desktop recipe differs from the Linux host-network recipe; do not mix their addresses or commands.
Already running Ollama? Connect Open WebUI in four checks
Use this short path if Ollama already answers on your computer and Open WebUI is installed, or about to be. For a fresh installation, start at Step 1.
-
Get a reply from Ollama itself. Run
ollama run qwen3:1.7b --think=false "Reply with only the second word: oak, maple, pine.", using a model fromollama list. Expect maple. Without--think=false, a thinking model such as Qwen3 prints its reasoning first. -
Check that Ollama’s API lists the model. Run
curl http://localhost:11434/api/tags(in PowerShell,Invoke-RestMethod http://localhost:11434/api/tags). The model should appear in themodelslist. -
Enter the address that Open WebUI’s server can reach. Open WebUI connects to Ollama from its own server process, not from your browser, so
localhostmeans wherever that process runs:Where Open WebUI runs Ollama address Installed directly on the same computer, such as the Python package http://localhost:11434Docker Desktop on Windows or macOS, with Ollama on the computer http://host.docker.internal:11434Docker Engine on Linux with --network=hosthttp://127.0.0.1:11434Its own container, with Ollama in another container on the same Docker network The Ollama container’s name, such as http://ollama:11434Set the address in the admin Settings → Connections page, under Manage Ollama API Connections. A saved address there replaces
OLLAMA_BASE_URLafter the first start. To use Ollama on another computer on your network, follow the private server section instead of opening Ollama’s port. If your Open WebUI runs somewhere else and you want to use models on your own computer, Open WebUI 0.13.4 adds Tether for that. -
Confirm a model appears and answers. Refresh the model picker, select the same model and send the same prompt. A reply of maple completes the connection.
If the model does not appear, use the connection troubleshooter.
Before you start
Open WebUI is not the model runtime. It is the interface and workspace layer. Ollama is the runtime that loads and serves local models. That means your setup sequence should be:
- Install Ollama.
- Run at least one model in Ollama.
- Verify Ollama responds locally.
- Install Open WebUI.
- Connect Open WebUI to Ollama.
- Confirm the model list appears.
- Only then add PDFs, knowledge bases, remote access, or cloud providers.
If Ollama does not work first, Open WebUI will not fix it.
What Open WebUI adds to Ollama
| Layer | Ollama | Open WebUI | Beginner takeaway |
|---|---|---|---|
| Model runtime | Yes | No; it connects to runtimes/providers | Ollama runs the model. Open WebUI gives you the interface. |
| Browser chat interface | Limited/core product is not mainly a browser interface | Yes | Open WebUI is useful if you want a familiar chat surface. |
| Local API backend | Yes | It consumes provider APIs and has its own app APIs | Keep the roles separate. |
| User accounts | Not the beginner focus | Yes, first admin/user setup | Treat auth carefully. |
| File upload/RAG | Usually through paired tools | Yes, depending on configuration | Check storage and embedding provider. |
| Cloud providers | Ollama has local and cloud-related features | Open WebUI can connect to local or cloud providers | Provider choice controls privacy. |
| Docker complexity | Optional | Common install path | Most beginner failures are Docker/networking failures. |
Requirements
Use this checklist before installing.
| Requirement | Why it matters |
|---|---|
| Ollama installed and running | Open WebUI needs a model provider to connect to. |
| At least one Ollama model pulled | Open WebUI cannot show useful local models if Ollama has none. |
| Docker installed | The common Open WebUI install path uses Docker. |
| Enough RAM/storage | You need memory for Ollama, the model, Docker, browser, and Open WebUI. |
| Localhost/network understanding | Docker containers do not always see the host as localhost. |
| Non-sensitive test prompt | Do not use confidential data until the privacy boundary is verified. |
Step 1: Confirm Ollama works first
Before touching Open WebUI, run Ollama directly.
ollama list
If you do not see any models, download a small starter model first with ollama pull qwen3:1.7b. Then confirm the local API responds:
curl http://localhost:11434/api/tags
On Windows PowerShell, you may prefer:
Invoke-WebRequest http://localhost:11434/api/tags
Do not continue until Ollama is responding locally.
Step 2: Choose your Open WebUI install path
- Docker Desktop on Mac or Windows: follow the container recipe with a named volume.
- Linux Docker Engine: use the separate networking branch.
- For the documented POSIX no-Docker path: use the dedicated Python environment below.
Step 3: Install Open WebUI with Docker
Use the standard Open WebUI image for this guide's chat and later document workflow. The slim image omits local document, embedding, and speech dependencies and requires separate services for those features.
A typical Docker install needs three things:
- The Open WebUI image.
- A persistent volume for app data.
- A way for the container to reach Ollama.
Choose the network path before running the command. The Docker recipe below is for Docker Desktop on Windows or macOS, where host.docker.internal reaches programs running on your computer. On Docker Engine for Linux, that hostname does not reach an Ollama that listens only on 127.0.0.1. Linux users should read "Docker Engine on Linux" in Step 5, or use the Python alternative below.
Python alternative (no Docker). Open WebUI's Python package supports Python 3.11 and 3.12, not 3.13, so these commands create the environment with Python 3.11. Run them in a dedicated folder in a macOS or Linux Bash-compatible terminal, with Python 3.11 already installed:
python3.11 -m venv .venv
source .venv/bin/activate
python -m pip install open-webui==0.13.4
mkdir -p "$HOME/.open-webui"
export DATA_DIR="$HOME/.open-webui"
export OLLAMA_BASE_URL=http://127.0.0.1:11434
open-webui serve --host 127.0.0.1 --port 3000
Open http://localhost:3000 and continue at Step 4. Keep this terminal open; stop with Ctrl+C. To reopen, activate the same environment, set the same data directory and connection, and repeat the serve command from the same folder (which retains the generated server key). Open WebUI and Ollama share your computer's network here, so no service needs a network-wide bind.
Docker Desktop recipe. Open WebUI needs a private server key, and the container reads its settings from a file named openwebui.env. In a dedicated private folder, create that file once for a new installation. If it already exists, keep it; generating a replacement key can invalidate sessions and encrypted credentials. On macOS or Linux, in a shell with OpenSSL:
(
set -euC
umask 077
webui_secret="$(openssl rand -hex 32)"
printf 'WEBUI_SECRET_KEY=%s\nOLLAMA_BASE_URL=http://host.docker.internal:11434\n' "$webui_secret" > openwebui.env
)
Confirm WSL 2 is installed and Docker can run Linux containers. In Windows PowerShell instead:
if (Test-Path openwebui.env) { throw "Keep the existing openwebui.env; do not replace its key." }
$webuiSecretBytes = New-Object byte[] 32
[System.Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($webuiSecretBytes)
$webuiSecret = -join ($webuiSecretBytes | ForEach-Object { $_.ToString("x2") })
Set-Content -Path openwebui.env -Encoding ascii -Value "WEBUI_SECRET_KEY=$webuiSecret","OLLAMA_BASE_URL=http://host.docker.internal:11434"
Keep openwebui.env private and out of any public repository, and reuse it when you recreate the container. Then run this single-line command from the same folder:
docker run -d --name open-webui -p 127.0.0.1:3000:8080 --add-host=host.docker.internal:host-gateway --env-file openwebui.env -v open-webui:/app/backend/data --restart unless-stopped ghcr.io/open-webui/open-webui:v0.13.4
These Docker and Python examples pin v0.13.4, released November 17, 2026. Versions 0.13.0 and 0.13.1 include security fixes and a database change, so an upgrade from 0.12 needs the backup below first. They do not use a moving image tag. See the release page for newer tags and PyPI for the Python package version. :main and :latest are rolling images; they do not identify an unchanging release. The volume keeps your app data when the container is replaced, and the retained key preserves the key used for sessions and encrypted credentials. --restart unless-stopped starts the container again after a reboot but leaves it stopped if you stopped it on purpose.
After the container starts, open:
http://localhost:3000
The 127.0.0.1 part of the command restricts the published port to this computer. Use Docker Engine 28 or newer: older versions can allow devices on the same network to reach a localhost-published port. Do not remove that address to fix a connection problem.
You should see the Open WebUI setup screen.
Stop, reopen and update the Docker installation
Use docker stop open-webui to stop and docker start open-webui to reopen the same container. A stop/restart preserves your account and a saved chat. A volume surviving a restart is persistence, not a backup. Before replacing the container, follow Back up, restore, and update below.
After startup, check the actual connection from the container:
docker exec open-webui python -c "import urllib.request; print(urllib.request.urlopen('http://host.docker.internal:11434/api/tags').read().decode())"
A returned model list confirms that network path.
Keep the server patched even on a private network. Open WebUI fixed session-token theft, terminal policy bypass and terminal access after deactivation in 0.11.4 (session tokens, terminal policy, deactivation); channel webhook impersonation was fixed in 0.12.2 (advisory). Use the current patched release, not these historical minimum versions. In shared chats, review Allow replies: participants can share the chat's terminal and files. Restrict workspace permissions, retain authentication, and do not expose an unrestricted terminal or MCP service publicly.
Step 4: Create the first admin user
On a fresh installation, the first account becomes the administrator. Create your own durable administrator account while access is still restricted to you. Use a strong unique password and non-sensitive test content. Do not let someone else reach the setup screen first.
| Setup item | Recommendation |
|---|---|
| First account | Use a strong password. |
| Test environment | Use non-sensitive prompts and files. |
| Network exposure | Keep it local until you understand the security model. |
| Backups | Check both persistence and a separate restore before uploading important files. |
Do not expose Open WebUI to the internet.
Step 5: Connect Open WebUI to Ollama
Check the address from the process making the connection: a browser, the host computer and a Docker container can each mean something different by localhost.
If Open WebUI runs directly on the same host, localhost works. If it runs inside Docker, localhost from inside the container means the container itself, not the host machine. In Docker Desktop, the host is reached through host.docker.internal.
The Docker Desktop command above already sets this address in openwebui.env. If the container still cannot reach Ollama, find your case below.
Docker Desktop (Windows, macOS). Use http://host.docker.internal:11434. No Ollama setting needs to change.
Docker Engine on Linux, with Ollama installed as a service. Ollama listens only on 127.0.0.1:11434 by default, and a container on Docker's default bridge network cannot reach that address. Open WebUI's connection-error page documents two routes.
Route A — recommended for this Linux example: run the container on the host network, so 127.0.0.1 inside it means the Linux server. Run the following on that server, from the folder containing openwebui.env. The user may need Docker group access or sudo. NVIDIA/AMD container setup may require extra runtime configuration. For a new installation, no old container needs removing. If a container named open-webui already exists, first verify its data volume and take the backup below if it contains anything you need. Then use docker stop open-webui followed by docker rm open-webui; neither command deletes the named volume. Do not run both network recipes at once.
docker run -d --network=host -v open-webui:/app/backend/data --env-file openwebui.env -e HOST=127.0.0.1 -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart unless-stopped ghcr.io/open-webui/open-webui:v0.13.4
Open WebUI is then at http://127.0.0.1:8080, not port 3000. The port mapping no longer applies with host networking, so HOST=127.0.0.1 keeps the browser service on this computer. Reusing openwebui.env retains the same server key. The explicit -e OLLAMA_BASE_URL overrides the file's Docker Desktop address on a new database; an existing database's saved provider settings may still need changing in the interface.
Check the Linux connection from inside Open WebUI:
docker exec open-webui python -c "import urllib.request; print(urllib.request.urlopen('http://127.0.0.1:11434/api/tags').read().decode())"
curl --fail http://127.0.0.1:8080/health
The first command should return Ollama's model list; the second should succeed after Open WebUI has finished starting. If either fails, fix that stage before attempting laptop access.
Route B — only when you can enforce network restrictions: keep the bridge network and make Ollama listen where the bridge can reach it. Run sudo systemctl edit ollama.service, add these two lines, then save:
[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"
Then run sudo systemctl daemon-reload and sudo systemctl restart ollama. The address 0.0.0.0 accepts connections on every interface. Establish firewall rules restricting port 11434 to the required Docker bridge before changing the bind; trusted browser users do not need direct access to this port. The local Ollama API has no authentication, and Open WebUI's login does not protect it. The bridge recipe also needs the --add-host=host.docker.internal:host-gateway option from Step 3. Use Route A or the Python alternative when you cannot enforce that boundary.
| Situation | Ollama URL to enter | Why |
|---|---|---|
| Open WebUI and Ollama both on the host | http://localhost:11434 | Same local machine context. |
| Open WebUI in Docker Desktop, Ollama on the host | http://host.docker.internal:11434 | The container needs to reach the host. |
Linux Docker with --network=host (Route A) | http://127.0.0.1:11434 | The container shares the host's network. |
| Linux Docker on the bridge network (Route B) | http://host.docker.internal:11434 with OLLAMA_HOST set | Ollama must listen beyond loopback, which changes your security exposure. |
If you changed the address and nothing changed. Open WebUI keeps saved connection settings in its database, and they take precedence over environment variables. Edit the address in the admin Settings → Connections page. Recreating a container does not reset saved settings. If the interface is inaccessible, keep a backup first; Open WebUI documents RESET_CONFIG_ON_START=true, which resets the saved settings to the environment values on the next start. Do not delete the volume. This precedence applies to persisted settings, not to every environment variable.
Keep this distinction clear:
Browser localhost, container localhost, and host-machine localhost are not always the same place.
Optional: connect a model on another user-owned host
Open WebUI 0.13.4 replaces Direct Connections with Tether. Tether 0.1.14 or newer connects models on a user-owned host; MCP requires Tether 0.1.16 or newer, and an administrator must enable tool servers (ENABLE_TOOL_SERVERS). Model inference stays on the connected machine while chats, uploaded documents and indexes remain on the Open WebUI server. Release notes.
Tether has separate terms. Personal use is free only when noncommercial and not for an employer or organization. Commercial or organizational production use requires an Open WebUI Enterprise License with appropriate seats.
For a local stdio MCP server, add the command in Tether Settings → Integrations → Tools and select the tool from the chat's + menu. Tether runs local stdio MCP commands with your user account's permissions, outside its terminal sandbox. Grant only the required access. The optional terminal sandbox (Tether 0.1.13+, supported macOS and Windows configurations) is a separate boundary: select the permitted folder and whether network access is needed. Release notes.
Step 6: Confirm models appear
After Open WebUI is connected to Ollama, the model picker should show the models available in Ollama.
If the model list is empty, first call /api/tags on the Ollama host. If the tag appears there, call the same endpoint from inside the Open WebUI container using its configured host address. A host success and a container failure point to networking. If both return the tag, check the saved provider connection in Open WebUI.
Do not upload files or troubleshoot RAG until the basic model picker works.
Step 7: Run a simple local chat
Start with a trivial prompt:
Write one sentence explaining what local AI is.
Check the model picker and provider connection to confirm the downloaded Ollama model is selected. A reply alone cannot identify which model answered. Then try another prompt:
Give me a three-bullet checklist for choosing a small local model.
Record:
| Setting to keep for troubleshooting | Why |
|---|---|
| Ollama version | Product behavior changes. |
| Open WebUI version/image tag | Docker tags and interface settings change. |
| OS and Docker version | Networking behavior differs. |
| Model identifier | Results depend on model and quantization. |
| Connection URL | Most failures are endpoint-related. |
| First successful local response | Shows that this exact machine, app version, model, and connection path worked. |
Use a separate Linux computer as your private AI server
Use this extension after Linux Route A works on the server itself. It keeps both Open WebUI and Ollama on the server's loopback interface; your laptop reaches the browser service through SSH. This is private-server inference, not on-device inference on the laptop, and it requires a connection between the two computers.
Choose the server around the actual model and context, not just its parameter count. Use the hardware guide and memory calculator, allow storage for models, uploads and backups, and begin with one user. Simultaneous requests and longer contexts increase memory use and waiting time.
Connect your laptop without exposing another server port
Prerequisites: a working, authorized SSH account on that Linux server; a server name or private address your laptop can already reach; and an SSH client on the laptop. In Windows, ssh -V checks whether the OpenSSH client is installed. Do not change router forwarding or expose SSH to the internet just to follow this example.
Run this on the laptop, in PowerShell or a macOS/Linux terminal. Replace YOUR_USER and YOUR_SERVER with your actual SSH login and reachable server address:
ssh -N -o ExitOnForwardFailure=yes -L 127.0.0.1:3000:127.0.0.1:8080 YOUR_USER@YOUR_SERVER
Verify the SSH host-key fingerprint through a trusted source before accepting a new host. Keep the terminal open, then open http://127.0.0.1:3000 in the laptop's browser. The encrypted SSH connection forwards laptop port 3000 to the server's loopback port 8080. -N does not start a remote shell. The explicit local bind avoids offering this forwarded port to other computers on the laptop's network.
| Process making the request | Destination in this example |
|---|---|
| Laptop browser | Laptop 127.0.0.1:3000, where the SSH client listens |
| SSH connection on the Linux server | Server 127.0.0.1:8080, where Open WebUI listens |
| Open WebUI using Linux host networking | Server 127.0.0.1:11434, where Ollama listens |
Confirm the login page loads and a downloaded model answers a harmless prompt. If laptop port 3000 is occupied, change only the first port to 3001 and browse http://127.0.0.1:3001. Stop the tunnel with Ctrl+C; reopen it by running the same command. Stopping the tunnel does not stop the server or its model.
Deliberate LAN access is a different configuration
For a small group, separate SSH accounts and individual loopback forwards avoid publishing the browser service across the LAN. Keep the Open WebUI accounts separate too; possession of an SSH login is not an Open WebUI permission.
For direct LAN access, first establish the administrator, then place the browser service behind a correctly configured HTTPS reverse proxy or an authenticated encrypted private-network service. Restrict access to intended clients at the network boundary. On a single Linux host, a reverse proxy can reach the existing 127.0.0.1:8080 service without widening its bind. If you deliberately bind Open WebUI to a LAN address instead, restrict that interface/port and provide transport encryption before sending passwords or documents. Do not treat plain HTTP on a trusted Wi-Fi network as encrypted.
Keep Ollama's raw port 11434 private to the inference connection. Do not publish it for browser users. An external tunnel provider can add another operator and data path; that is not the same as computation and transport staying on your own devices. Public-internet deployment needs a separate hardening plan, including authentication, TLS, access controls, patching and recovery. This private-server example is not an enterprise-security certification.
Add a second user and verify what they can access
Keep authentication enabled. In Settings → Admin → Authentication, check New Sign Ups and Default User Role. Creating the first administrator disables new signups in this release. To enroll a second person, enable signups temporarily, keep the default role pending, and approve the intended account as user in Admin → Users. Turn signups off again when enrollment is complete. Do not make normal users administrators merely to fix access problems.
In Admin → Users → Groups → Default Permissions, grant only the baseline features everyone needs. Grant additional permissions through the intended group. Permissions are additive: a group cannot deny a capability already granted by defaults or another membership. Check all of the user's memberships, including parent groups.
Configure the intended model's access in Settings → Admin → Models. For a document collection, use Workspace → Knowledge and its Access settings to share only with intended users/groups. Model access, permission to create knowledge collections, and access to an individual collection are separate decisions. Hiding a model from a menu or choosing a default model is not a substitute for checking authorization.
Before inviting more people, perform this test with harmless content:
- As admin, give the normal user access to one working model and a test collection. Keep a different test model or collection private.
- Sign in as that normal user in a separate browser profile. Confirm the allowed model answers and the shared test collection is available. Try the private resource's direct link too; it should remain unavailable.
- Check with another normal account outside the group. Stop sharing and correct the grants if either account sees more than intended.
Separate accounts do not share conversations or uploads. The administrator and server operator control stored data and backups. Keep community sharing disabled. See the privacy guide for more.
Back up, restore, and update
This procedure is for the single default-root Docker container, local SQLite database and named open-webui volume used above, on a Linux server. It assumes no other container writes to that volume and no external database, vector store, object store, plugins or background integrations. Those arrangements need coordinated backups and a separately isolated restore plan. It is not a backup procedure for the Python installation.
The data directory includes the database, saved accounts/settings/chats, uploads and locally stored document-search data/cache. Ollama's model store is elsewhere. Keep openwebui.env and its original WEBUI_SECRET_KEY separately with the backup; replacing the key can break encrypted credentials. For Python installations, also preserve the generated .webui_secret_key in the launch folder when no key was supplied explicitly.
Make a consistent copy outside the volume
First save a harmless chat named Restore check. On the Linux server, open Bash in the folder containing the actual openwebui.env used for this installation. These commands check the expected volume and running state, stop the service before copying the entire data directory, and attempt to restart it if copying fails. They do not print the secret.
umask 077
mkdir -p "$HOME/open-webui-backups"
backup_dir="$(mktemp -d "$HOME/open-webui-backups/backup.XXXXXX")"
(
set -eu
test -n "${backup_dir:-}"
test -d "$backup_dir"
test -s openwebui.env
grep -q '^WEBUI_SECRET_KEY=.' openwebui.env
test "$(docker inspect --format '{{.State.Running}}' open-webui)" = true
test "$(docker inspect --format '{{range .Mounts}}{{if eq .Destination "/app/backend/data"}}{{.Type}}:{{.Name}}{{end}}{{end}}' open-webui)" = volume:open-webui
cp openwebui.env "$backup_dir/openwebui.env"
docker inspect --format '{{.Config.Image}}' open-webui > "$backup_dir/image-tag.txt"
docker inspect --format '{{.Image}}' open-webui > "$backup_dir/image-id.txt"
mkdir "$backup_dir/data"
docker stop open-webui
trap 'docker start open-webui >/dev/null' EXIT
docker cp open-webui:/app/backend/data/. "$backup_dir/data"
test -s "$backup_dir/data/webui.db"
docker start open-webui
trap - EXIT
touch "$backup_dir/COMPLETE"
printf 'Backup complete: %s\n' "$backup_dir"
)
Proceed only if the block prints Backup complete without an error, and confirm the original browser service still works. Keep the printed path; the COMPLETE marker is written only after the copy and restart commands succeed. The copy is outside the Docker volume but still on the same disk. Protect it as sensitive data and keep a separate encrypted copy on another device. Retain the exact image as well: image-id.txt identifies an image already on this server.
Restore into a new test volume, never over the active one
In the same Bash session, use the successful backup_dir value above. In a new session, set it to the exact printed directory first. Check that server port 3001 is unused. This creates distinct names, copies into a fresh volume before startup, and uses the backed-up image and key. The internal Docker network prevents connections to other networks; the Docker host itself is still reachable, so this is not a sandbox for untrusted plugins.
restore_stamp="$(date -u +%Y%m%dT%H%M%SZ)-$$"
restore_container="open-webui-restore-$restore_stamp"
restore_volume="open-webui-restore-data-$restore_stamp"
restore_network="open-webui-restore-net-$restore_stamp"
(
set -eu
test -f "$backup_dir/COMPLETE"
test -s "$backup_dir/data/webui.db"
test -s "$backup_dir/openwebui.env"
image="$(cat "$backup_dir/image-id.txt")"
docker image inspect "$image" >/dev/null
if docker volume inspect "$restore_volume" >/dev/null 2>&1; then
printf 'Test volume already exists; choose a new restore name.\n' >&2
exit 1
fi
docker volume create "$restore_volume"
docker network create --internal "$restore_network"
docker create --name "$restore_container" --network "$restore_network" \
-p 127.0.0.1:3001:8080 \
--env-file "$backup_dir/openwebui.env" \
-e HOST=0.0.0.0 -e PORT=8080 -e OFFLINE_MODE=true \
-v "$restore_volume:/app/backend/data" "$image"
docker cp "$backup_dir/data/." "$restore_container:/app/backend/data"
docker start "$restore_container"
)
Here HOST=0.0.0.0 is inside the bridge-network test container; the published host port remains loopback-only. Do not change the production container's bind to match it. After startup, check curl --fail http://127.0.0.1:3001/health on the server. For a laptop browser, open a separate SSH forward to this test port:
ssh -N -o ExitOnForwardFailure=yes -L 127.0.0.1:3001:127.0.0.1:3001 YOUR_USER@YOUR_SERVER
Visit http://127.0.0.1:3001 in a separate browser profile, sign in with the restored account, and verify Restore check, expected settings and a harmless uploaded file if one was backed up. Confirm normal-user restrictions too. Do not reconnect providers; the original model service is unavailable through the saved loopback address inside this bridge container. Never import this old test database into the active volume as part of the check.
Stop the test with docker stop "$restore_container" in the original server shell, and close its SSH tunnel. Leave the active open-webui container and volume alone. Do not use a blanket volume-pruning command. If creation or startup fails, inspect the test container and correct that failure before calling the restore successful.
Update only after the backup and restore check
Read the selected release's migration notes. Version 0.13.0 changed the database: its notes recommend backing up the database and all associated data first, and say rolling updates across several instances are not supported. It also moved the chat files, valves, system prompt and advanced parameters from the Controls panel at the top of the chat to Controls in the menu beside the message box. For the version used in this guide, pull the image on the server while the old instance still runs:
docker pull ghcr.io/open-webui/open-webui:v0.13.4
After a successful pre-update backup, stop and remove only the old container with docker stop open-webui and docker rm open-webui. Recreate it using your original network recipe, the same open-webui volume and retained openwebui.env, with the pinned image above. Do not switch from Linux host networking to the Docker Desktop command during an update.
Check the image and mounted volume with the docker inspect formats from the backup step; test the provider from inside the container using the appropriate command in Step 3 or 5. Confirm login, the saved chat, an answer and normal-user access, then stop/start once more and repeat the persistence check. An old image may not understand a newly migrated database: rolling back can require the compatible pre-update data backup, not merely changing the image tag. Keep that backup until the new installation is verified.
Optional: use Open WebUI for PDFs and documents
Open WebUI supports file uploads and knowledge/RAG workflows.
Upload a one-page sample with selectable text to a test collection, select it in chat, and ask for a sentence you can verify. If normal chat works but this fails, check the embedding provider and indexing status. See Chat With PDFs Locally for document workflows.
| Question | Why it matters |
|---|---|
| Which model provider is selected? | A cloud provider sends content outside your local machine. |
| Which embedding provider is selected? | Cloud embeddings can send document text or chunks out. |
Where is DATA_DIR or persistent storage? | Uploaded files, vector data, and settings need a known location. |
| Are web search or external tools enabled? | Tools can change the data boundary. |
| Is the server exposed beyond localhost? | Other devices may be able to reach it. |
Common Open WebUI + Ollama problems
| Problem | Likely cause | First fix |
|---|---|---|
| Open WebUI page does not load | Container not running, wrong port, Docker not started | Run docker ps and check port mapping |
| Works once, then breaks | Container, volume, or provider config changed | Check logs and persisted settings |
| Data appears missing after recreation | Wrong volume or data path | Inspect the mount and compare it with the recorded volume name; do not overwrite either volume. Restore to a new volume first. |
| PDF answers are bad | Extraction, chunking, embeddings, retrieval, or model quality issue | Test with a short clean PDF first |
| Private setup sends data to cloud | Cloud model, embedding provider or tool selected | Check each provider and tool; a local chat setting alone is insufficient. |
| Works on server, not laptop | Wrong forwarded destination, stopped tunnel or occupied laptop port | Verify server 8080/health, then the SSH command and laptop port; do not widen the service bind as a shortcut. |
| Login works but the normal user sees no model | Pending role, model grant or provider availability | Check role and model access as that user, then provider health; do not grant admin as a workaround. |
| Two users make replies slow | Queuing, memory pressure or long contexts | Compare one short session with simultaneous sessions; reduce context/concurrency before choosing a larger model. |
| Changed environment address has no effect | A persisted provider setting wins | Edit the saved connection in Admin settings and verify from inside the container. |
Security and privacy checklist
- Select local Ollama as the model provider.
- Use local embeddings for documents.
- Keep the service on localhost or a trusted private network.
- Use a strong admin password.
- Do not expose the port to the public internet.
- Back up persistent data before updates.
- Turn off cloud providers, web search, plugins, and tools you do not use.
- Test offline behavior after all required models and dependencies are downloaded.
Can Open WebUI run fully locally?
Yes, with a local model provider, local embeddings, and web search and tools off. A self-hosted interface alone does not make it local.
What to read next
- How to Install Ollama
- Ollama vs LM Studio
- Best Local AI Setup for Windows
- Best Local AI Setup for Mac
- Chat With PDFs Locally
- Is Local AI Actually Private?
