Ollama runs your models, but it ships no chat page of its own: you talk to it from a terminal or from code. Open WebUI is a separate, self-hosted web interface that talks to Ollama’s server and gives you a chat page in the browser, with a model picker and saved chats. Its quick-start page says the standard image is installed with one Docker command, and that the --add-host=host.docker.internal:host-gateway flag in that command lets the container reach Ollama, or anything else, running on your machine.
Check Ollama is running first
Open WebUI cannot show a model that Ollama is not serving, so confirm Ollama first. The Continue guide’s check is to run curl http://localhost:11434, which should return “Ollama is running”. If it does not, start Ollama and pull one model first, for example ollama pull llama3.1, so there is a model for the web page to list.
Start Open WebUI in Docker
Open WebUI’s quick-start page gives this command, which pulls the image and starts it. Replace your-secret-key with the output of openssl rand -hex 32; the page says to set the key once and keep it, because without a fixed key every recreated container logs everyone out.
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:main
| Part of the command | What it does |
|---|---|
-p 3000:8080 |
The chat page is on port 3000 of your machine; the page says to keep the right number at 8080 |
--add-host=host.docker.internal:host-gateway |
Lets the container reach Ollama running on your machine |
-v open-webui:/app/backend/data |
Your chats, users and settings live in this volume and survive updates |
--restart always |
The container comes back after a reboot |
ghcr.io/open-webui/open-webui:main |
The standard image; the :ollama image instead bundles Ollama inside the container for an all-in-one setup |
The page says the log line “Waiting for application startup.” appears on every normal start, and Open WebUI accepts connections once the log shows “Uvicorn running on http://0.0.0.0:8080”. Check that with docker logs open-webui before opening the page.
Try it: four checks from Ollama to a reply
Open http://localhost:3000 in your browser and create an account, then work through the checks below. For the last check, ask the question from the Ollama JavaScript library’s own example, “Why is the sky blue?”
| Check | What you should see | What it means |
|---|---|---|
| Ollama answers | curl http://localhost:11434 returns “Ollama is running” |
Ollama is up before Open WebUI starts |
| Page opens | http://localhost:3000 shows the Open WebUI sign-up page |
The container is running |
| Model picker | llama3.1 is listed as a model to chat with |
Open WebUI reached Ollama on your machine |
| Reply | An answer to “Why is the sky blue?” appears in the chat | The browser chat is talking to your local model |
Expected result. We checked the Open WebUI quick-start page and the Continue guide’s Ollama check. We did not install Open WebUI or run a chat on this machine.
Limits
Open WebUI is only the chat page; the model still runs in Ollama, so a model that is not pulled does not appear in the picker, and Open WebUI cannot fix an Ollama server that is not running. The quick-start command puts the page on port 3000 of your machine, so keep that port to your own computer and do not expose it to the internet. Open WebUI also supports other model providers, so a chat only stays local when the model you pick is one Ollama serves on your own computer. We did not test any of this ourselves.
