If no models are available in the Open WebUI selector, first check the configured provider’s model list if it exposes one. For Ollama, run ollama ls on the instance Open WebUI uses. For OpenAI-compatible providers without /models, follow the Model IDs steps below. Then check the saved connection URL, model filters, and access for the affected user. Open WebUI has no chat models of its own. Open WebUI Quick Start · Connection Errors · Ollama connection guide · Authentication and Access · OpenAI-Compatible Connections
Check that Ollama has a model
On the machine running Ollama, run ollama ls. If you need to start the server manually, run ollama serve in a separate terminal. If the model you want is missing, pull it by name. This example uses gemma4. Ollama CLI Reference
ollama ls
ollama pull gemma4
ollama ls
If Ollama runs in a container named ollama, list its models with docker exec ollama ollama list. A native Ollama installation and a container can have different model lists. Connection Errors
To download a missing model into the connected instance, open Settings > Connections in the admin section. Under Manage Ollama API Connections, click Manage beside that instance and enter the model name under Pull a model from Ollama.com. Ollama connection guide
On the Ollama host, request the model list from its HTTP API. The response has a models array. Look for the model you want in the entries under name. Ollama List Models API
curl http://localhost:11434/api/tags
Fix the Ollama connection URL
From your avatar, open Settings > Connections in the admin section. Under Manage Ollama API Connections, check that the provider and intended endpoint are enabled. Enter the base URL from the table. Open WebUI requests /api/tags from its backend. Open WebUI Quick Start · Ollama connection guide · Environment Variable Configuration · Connection Errors · Docker Compose Networking
| Where Open WebUI and Ollama run | Ollama base URL |
|---|---|
| Both run directly on the same host | http://localhost:11434 |
| Open WebUI in bridged Docker, Ollama on the host | http://host.docker.internal:11434 |
Both on the same Docker Compose network, with Ollama service named ollama | http://ollama:11434 |
| Open WebUI in Linux Docker host-network mode, Ollama on the host | http://127.0.0.1:11434 |
If you installed Open WebUI with Docker and use bridge networking on Linux, add --add-host=host.docker.internal:host-gateway to your docker run options. For Compose, merge the following into your existing service and apply it with docker compose up -d. Open WebUI Quick Start · Docker Compose Networking · Docker Compose Quickstart
services:
open-webui:
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
OLLAMA_BASE_URL: "http://host.docker.internal:11434"
If Open WebUI uses Docker bridge networking and Ollama is on the host at http://host.docker.internal:11434, run this check from the Open WebUI container. Substitute your container’s name if it differs. A version response confirms the container can reach Ollama. Connection Errors
docker exec open-webui curl --fail --show-error --silent --max-time 5 http://host.docker.internal:11434/api/version
Ollama listens on 127.0.0.1:11434 by default. To accept connections on all interfaces, set OLLAMA_HOST=0.0.0.0:11434 in Ollama’s environment and restart Ollama. If you bind to all interfaces, restrict port 11434 to the Open WebUI host at the firewall because the local Ollama API requires no authentication. Ollama FAQ · Connection Errors
See Open WebUI not connecting to Ollama for platform-specific bind settings.
On Linux, host networking lets Open WebUI reach Ollama at 127.0.0.1:11434. In this mode Docker ignores published port mappings, and Open WebUI listens directly on host port 8080 by default. The command below creates a new container, so the name open-webui must be free. If replacing an existing container with that name, stop and remove it first. Carry over its data volume and any existing WEBUI_SECRET_KEY setting. Connection Errors · Open WebUI Quick Start
docker run -d --network=host \
-v open-webui:/app/backend/data \
-e OLLAMA_BASE_URL=http://127.0.0.1:11434 \
--name open-webui --restart always \
ghcr.io/open-webui/open-webui:main
If Open WebUI fails to fetch models or the selector keeps loading, review every configured Ollama and OpenAI-compatible URL under Settings > Connections. One unreachable endpoint can delay the list for the full connection timeout. Correct or remove that URL and save. For a Compose service named open-webui, run docker compose logs -f open-webui and look for Connection error: Cannot connect to host. Connection Errors · Docker Compose Quickstart
Check saved connections, filters, and cache
After first boot, Open WebUI can use the saved connection settings in its database. If changing a Compose variable has no effect, check the URL in Settings > Connections in the admin section. For environment configuration, OLLAMA_BASE_URLS takes precedence over OLLAMA_BASE_URL. Environment Variable Configuration
- In Manage Ollama API Connections, correct the active URL and save the connection. Open WebUI Quick Start · Connection Errors
- Check Model IDs (Filter) for that Ollama connection. Leave it empty to show all models returned by the endpoint. If you want a restricted list, use the exact IDs. Ollama connection guide
- If Cache Base Model List is enabled, click Save at the bottom right of the admin Connections page to fetch models again and refresh the cache. Environment Variable Configuration
If you manage connections through environment variables or a bad saved URL makes Settings inaccessible, set ENABLE_PERSISTENT_CONFIG=False alongside the intended endpoint variables. In Compose, use ENABLE_PERSISTENT_CONFIG: "False" under the service’s environment and apply it with docker compose up -d. Open WebUI will use the environment at startup, and admin UI changes to those settings will not persist across restarts. Environment Variable Configuration · Connection Errors · Docker Compose Quickstart
Check access if an admin can see the model
In Settings > Models in the admin section, find the model and check its Public, Shared, or Private status. A model can be shared with individual users or groups. Open WebUI Models · Authentication and Access
- For specific users or groups, open Access from the model’s three-dot menu. Select Private, then use Add Access to grant Read to the intended users or groups. Open WebUI Groups · Open WebUI Models
- If every signed-in user should have the model, choose Make Public from the three-dot menu. For a workspace model, check that the user also has access to its underlying base model. Open WebUI Models
Set up vLLM or another OpenAI-compatible API
For vLLM, go to Settings > Connections in the admin section and select Add Connection under Manage OpenAI API Connections. Use a vLLM base URL ending in /v1. If vLLM runs on the host at the typical port 8000, use http://localhost:8000/v1 with native Open WebUI or http://host.docker.internal:8000/v1 with bridged Docker. If vLLM runs on a different host or port, use your server’s configured URL. Set Auth to None if vLLM has no configured key, or Bearer with the configured key. Click Save. Open WebUI vLLM Connection Guide
For another OpenAI-compatible provider, add a connection in the same list with the provider’s base URL and API key. If the provider omits /models or uses nonstandard discovery authentication, enter the exact provider model ID under Model IDs, click +, and save. OpenAI-Compatible Connections
Confirm the fix
Sign in as the affected user, open New Chat, select the model, and send a short prompt. Check that the model appears and returns a reply. If a workspace model shows Model not found, verify that its base model has a saved entry under Settings > Models in the admin section and that the user can read it. A base model available only through a connection is reserved for admins, even if the workspace model appears in the user’s selector. Open WebUI Quick Start · Open WebUI Models
Evidence and limits. The steps are based on the Open WebUI, Ollama, and Docker Compose documentation, including the Open WebUI
:mainimage and Compose v2 examples. They were not run on a live deployment for this guide. Open WebUI Quick Start
Related across the network
- How to Run Ollama in Docker: CPU, NVIDIA and AMD GPU Setup — ollamalab.com
- LM Studio vs Ollama for Local LLMs: How to Actually Choose — lmstudioguide.com