Open WebUI is the interface. Ollama is the model runtime underneath it. Get Ollama working by itself first, then connect Open WebUI to the Ollama service. If models do not appear, diagnose the service address and network boundary instead of reinstalling both products at random.
The order matters: a broken Ollama runtime cannot be fixed from the Open WebUI screen.
To find the failing part, work through the checks in order: Ollama, its API, its model list, the address from Open WebUI, the saved connection, and the connection type.
- Run a short chat with an installed model directly through Ollama on the Ollama computer.
- Open
http://localhost:11434/api/tagson that computer and confirm it returns the model list. - Set the Ollama address that Open WebUI’s server can reach, then send the same prompt in Open WebUI.
If one of those checks fails, work through these steps in order. The first step that fails tells you which part to fix.
ollama runwith an installed model gives a normal reply on the Ollama computer. If not, Ollama itself is not working. Fix Ollama first with install Ollama or the model-loading checks.http://localhost:11434/api/tagson that computer returns JSON. If not: unreachable endpoint. The service is not running or listens elsewhere. Start Ollama and check its port before touching Open WebUI.- The same request returns a non-empty
modelslist. If not: empty list. The server works but has no models. Download a model withollama pull, then repeat the check. - The request works from inside Open WebUI’s container or process. If not: unreachable from Open WebUI. The address means something different there. Use the address for your setup.
- Open WebUI lists the model. If not, while step 4 works: saved or wrong connection. The interface still uses an old address, the connection is turned off, or a model filter hides it. Check the saved address in the admin Settings → Connections page.
- The model answers in Open WebUI. If it is listed but chats fail, run that exact model directly with
ollama run: a model that fails there is too large, incomplete or unsupported, not a connection problem. If it answers in Ollama, check the address for routing: an Ollama-type connection under Manage Ollama API Connections takes the base address only, ending at the port, without/apior/v1. An OpenAI-compatible connection to Ollama's/v1endpoint is a separate, supported setup.
A working connection ends with the same short prompt answering in Open WebUI that answered in Ollama.
Before touching Open WebUI, run one known model directly through Ollama and confirm that it returns a normal response. Also confirm that the local Ollama API responds on the host.
Record:
- the machine where Ollama is running;
- the machine or container where Open WebUI is running;
- the Ollama host and port;
- whether either service is inside Docker;
- whether a firewall, VPN, proxy, or security tool changes local networking.
If Ollama cannot return a response directly, stop and fix that layer first.
On the Ollama computer, run curl http://localhost:11434/api/tags in Terminal, or Invoke-RestMethod http://localhost:11434/api/tags in PowerShell. A JSON response with a models list means the API is reachable. An empty list means there are no models on that server; a refused connection means the service or address must be fixed first.
For the standard Open WebUI Docker container, this command tests the host API from the backend that actually needs it:
docker exec open-webui python -c "import urllib.request; print(urllib.request.urlopen('http://host.docker.internal:11434/api/tags', timeout=5).read().decode())"
Replace open-webui with your container name from docker ps. A JSON model list confirms that path. A name-resolution error points to the Docker host mapping; a refusal or timeout points to the service bind or firewall. On Linux Docker, the documented host mapping is --add-host=host.docker.internal:host-gateway (or extra_hosts in Compose). That name alone is not enough when Ollama listens only on 127.0.0.1; see "Open WebUI runs in Docker and Ollama runs on the host" below for the Linux fix. Do not open the model API to the internet.
In Open WebUI, open the admin Settings → Connections page and edit the connection under Manage Ollama API Connections. After the first start, the saved address takes precedence over a changed OLLAMA_BASE_URL, because Open WebUI stores that setting in its database (ENABLE_PERSISTENT_CONFIG is on by default). Check the address displayed in the interface. The address is resolved by Open WebUI’s server, not by your browser.
| Where the two programs run | Ollama connection address | What must be true |
|---|---|---|
| Both native, on one computer | http://localhost:11434 | Both processes share the host network |
| Open WebUI in Docker, Ollama on the host | http://host.docker.internal:11434 | The hostname resolves and the host listener is reachable from that container |
| Separate containers on one private Docker network | http://ollama:11434 | The Ollama service is named ollama and both services share that network |
| Different computers | http:// followed by the other computer's private address and port 11434 | Ollama on that computer is set to listen beyond loopback (OLLAMA_HOST), and its firewall and access controls deliberately permit this connection |
The provider base address ends at the port; the /api/tags suffix above is for the diagnostic request. After saving, refresh the model list and ask the same short prompt that worked directly in Ollama.
Both products run natively on the same machine
Open WebUI should point to the local Ollama service on the same host. A loopback address can work because both processes share the host network.
Open WebUI runs in Docker and Ollama runs on the host
Inside a container, localhost means the container itself, not your computer. What to do depends on your Docker.
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 the bridge network cannot reach that address. Open WebUI's connection-error page documents two routes.
Route A: run the container on the host network, so 127.0.0.1 inside the container means the host. First create or reuse the private openwebui.env file with the server key, as shown in the installation guide. Confirm the existing container uses the named open-webui data volume with docker inspect open-webui; if it uses a different volume or folder, use that same storage in the command below. Then replace the container, keeping its data volume:
docker rm -f open-webui
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
Replace v0.13.4 with the version tag you pinned. Open WebUI is then at http://localhost:8080, not port 3000, and a 127.0.0.1:3000:8080 loopback-only mapping no longer applies.
Route B: 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 network interface, so allow port 11434 only from the Docker bridge or from computers you trust.
You changed OLLAMA_BASE_URL 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. If you cannot open the interface, start the container once with -e RESET_CONFIG_ON_START=true, which resets database-saved settings to the environment values; write down your other settings first. Do not delete the data volume.
Both products run in containers
Use the container or service name on the shared Docker network rather than a host loopback address. Confirm that both containers are on the same user-defined Docker network. The Ollama port needs publishing only if something outside Docker must reach it.
The services run on different machines
This is no longer a single-machine loopback setup. You need an intentional network bind, firewall path, and access-control decision. Do not expose the model service broadly merely to make the interface connect.
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 can stay on the connected machine while chats, uploaded documents and indexes remain on the Open WebUI server. Release notes.
If a Tether model is missing, verify the Tether version, connection status, model availability on the host and whether its model identifier collides with an existing server model.
| Symptom | Most likely cause | First action |
|---|---|---|
| Open WebUI shows no Ollama models | Wrong service address, Ollama not running, or no local models | Confirm Ollama’s model list and API on the host |
| Browser UI loads but every chat fails | Provider connection or model selection is wrong | Test the same model directly in Ollama |
| Docker Open WebUI cannot reach host Ollama | localhost points to the container or host access is blocked | Test connectivity from inside the container |
| Connection works on the host but not another device | Service is bound only to loopback or a firewall blocks the path | Decide whether remote access is actually required before changing the bind |
| Models appear but one model fails | The model itself is missing, corrupted, or too large | Run that exact model directly through Ollama |
| Intermittent failures after sleep or restart | One service did not restart cleanly | Restart Ollama, then Open WebUI, and retest the base API |
Restart Ollama and Open WebUI and confirm the model list returns. If it works for an admin but not for another user, check that user’s model access.
A local browser interface connects to remote providers, web search, tools and plugins when you enable them. Check the selected model and provider.
Keep single-machine services on loopback where practical. Before allowing LAN or internet access, add appropriate authentication, firewall rules, transport protection, and organizational controls for the data involved.
Stop changing Open WebUI settings when Ollama itself is not working. Open network access only to the machines, processes and users that need it.
Follow the Open WebUI with Ollama setup guide after the connection works, or return to install Ollama when the runtime itself is the failing layer.
