How to Use Open WebUI with Ollama
Build a Local, In-House ChatGPT (Docker / pip, Users, RAG, Troubleshooting) [Nov 2026]
Open WebUI gives local LLMs like Ollama a ChatGPT-style browser UI. Covers v0.13.5 setup via Docker or pip, users, RAG, the license branding clause and fixes.
Open WebUI is an open-source, self-hosted web app that lets you use local LLMs such as Ollama through a ChatGPT-style interface in the browser. Run it on an internal server or your own PC and it becomes an in-house ChatGPT that several people can share, with chat history, users and uploaded documents all staying in your own environment. This guide is based on the latest release as of November 2026, v0.13.5 (published November 25, 2026), and covers Docker and pip setup, connecting to Ollama, admin and user handling, RAG over your documents, license caveats, and fixes for connection problems, using only what we could confirm in the official documentation and on GitHub.
What Open WebUI is and what it can do
Open WebUI is not software that runs LLMs; it is the interface and user-management layer on top of them. Ollama or an OpenAI-compatible server runs the models, and Open WebUI adds the chat screen, history, users and document search (RAG). Ollama alone is CLI and API centered, so this fills the gap when several people, including non-engineers, need access.
- ChatGPT-style chat screen: works in the browser with saved history; nothing to install for users
- Connection to Ollama: in Docker it looks for Ollama on the host via host.docker.internal; a remote Ollama can be set by URL
- User and permission management: the first registered account becomes admin; later sign-ups can require approval
- RAG: register documents under Workspace > Knowledge and reference them in chat with #
Before you start: version, environment and license
| Item | Details (as confirmed from official sources on Nov 28, 2026) |
|---|---|
| Latest version | v0.13.5 (published 2026-11-25 on GitHub Releases; PyPI open-webui is also 0.13.5) |
| Install methods | Docker (ghcr.io/open-webui/open-webui), pip / uv / Conda / venv |
| Python (for pip) | 3.11 or 3.12 (PyPI requires >=3.11,<3.13; the official Quick Start says 3.13 is not supported and recommends Python 3.12 or Docker for production) |
| License | Open WebUI License (BSD-style terms plus a branding-preservation clause; GitHub shows it as "Other") |
| Cost | The software is free; electricity, servers and GPUs are extra |
The license differs slightly from a typical open-source license. The LICENSE generally prohibits altering, removing or replacing Open WebUI branding such as the name and logo. The exceptions are (i) 50 or fewer end users in any rolling 30-day period, (ii) prior written permission from the copyright holder, and (iii) a signed enterprise license. Using it internally with the screen unchanged is unlikely to be an issue, but replacing the branding with your own name needs the conditions checked. Read the full text yourself.
Fastest setup: Docker
If Ollama is already running on the host, adding only Open WebUI with Docker is the quickest route. The standard command from the official Quick Start is below; replace your-secret-key with the output of openssl rand -hex 32.
# Generate a secret key (used to sign login sessions; keep a copy)
openssl rand -hex 32
# Start Open WebUI (connects to Ollama on the host)
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- -p 3000:8080: the left 3000 is the host port and can be changed; the right 8080 is the port Open WebUI listens on inside the container and must stay
- -v open-webui:/app/backend/data: the volume that stores chats, users and settings; mount it at /app/backend/data, not /app/backend
- --add-host=host.docker.internal:host-gateway: lets the container reach Ollama on the host
- WEBUI_SECRET_KEY: reuse the same value when updating so logins are preserved
- After starting, open http://localhost:3000
If you do not specify an Ollama address, the official documentation says the image checks http://host.docker.internal:11434 and then :12434. Ollama on the host must listen on 0.0.0.0 for this to work (the default is 127.0.0.1). To use Ollama on another server, add -e OLLAMA_BASE_URL=http://your-ollama-server:11434, or change it after startup under Admin Panel > Settings > Connections.
Image tags: the standard :main, the smaller :slim, :cuda for NVIDIA GPUs (needs --gpus all and the Nvidia Container Toolkit), and :ollama, which bundles Ollama. The CPU command for the bundled version is below.
docker run -d -p 3000:8080 \
-v ollama:/root/.ollama \
-v open-webui:/app/backend/data \
-e WEBUI_SECRET_KEY=your-secret-key \
--name open-webui --restart always \
ghcr.io/open-webui/open-webui:ollamaFastest setup: pip (Python)
Without Docker, you can install with pip. The official note is that supported Python versions are 3.11 and 3.12; 3.13 is not supported. A venv example follows.
python3.12 -m venv venv
source venv/bin/activate
python -m pip install open-webui
# Set the data location explicitly (otherwise it is stored inside the environment's site-packages)
DATA_DIR=~/.open-webui open-webui serve- After starting, open http://localhost:8080; change the port with open-webui serve --port 3000
- pip, uv and Conda installs do not read a .env file in the start folder; export variables in the shell
- With a pip install, Ollama is usually found at http://localhost:11434
First login and the admin account
On first launch a Create Admin Account screen appears. The first account registered becomes the administrator, and once the admin exists, new sign-ups are turned off. If you lose the admin password you cannot reach the instance settings, so keep it safe. To avoid someone else opening the page first and taking the admin role, create the first account yourself before exposing the server.
User management: letting colleagues in
According to the official documentation, to let others join you enable New Sign Ups under Settings > Authentication in the admin area. New accounts are created as Pending and cannot be used until an admin approves them. The matching environment variables are ENABLE_SIGNUP (default True) and DEFAULT_USER_ROLE (default pending; options pending, user, admin).
- Small internal teams: keep the default pending and have an admin approve each person
- If everyone should get in automatically: set DEFAULT_USER_ROLE=user; anyone who knows the URL can then create an account, so restrict it to the internal network
- Precedence of settings: while ENABLE_PERSISTENT_CONFIG is at its default True, values saved in the admin UI override environment variables; suspect this first if changing an environment variable has no effect
RAG: answering from internal documents
Per the official RAG documentation, documents are registered under Workspace > Knowledge. You can also upload a file straight into a chat. Type # before your question and pick a document from the suggestions, and the answer will reference it. # followed by a URL fetches and parses a web page. Clicking a source under an answer opens the original document at the cited passage.
- Embedding model: default is built-in SentenceTransformers; admins can switch to Ollama, OpenAI or Azure OpenAI under Settings > Documents
- If you change it: re-index knowledge bases; files uploaded directly into chats are not re-indexed, so upload them again
- Context-length pitfall: per the docs, on GPUs with under 24 GiB of VRAM Ollama may default to 4096 tokens and retrieved content is ignored; raise it under Settings > Models > Advanced Params (above 16,000 is advised for web search)
- When knowledge is not used: preloaded files on, Builtin Tools off and Function Calling at Default inject nothing; enable Builtin Tools or set Legacy
A longer context consumes more VRAM. The relationship is covered in how the KV cache and context length consume VRAM.
Comparison: Ollama alone, LM Studio, AnythingLLM and LibreChat
There are other ways to give your team a chat screen. The table below lists items confirmed from official sources, such as licenses, along with general differences in positioning. Details change from version to version, so check each official site before adopting.
| Tool | Positioning | Multi-user use | License |
|---|---|---|---|
| Open WebUI | Self-hosted ChatGPT-style web UI that connects to Ollama and others; built-in RAG and user management | Several people via browser; admin and approval flow | Open WebUI License (branding-preservation clause) |
| Ollama alone | Runtime that runs models; CLI and API centered | No UI or user management (use the API from other apps) | MIT |
| LM Studio | Desktop app to find and run models through a GUI | Basically an app used on one person's PC | Proprietary (free to use) |
| AnythingLLM | App for chatting with ingested documents; desktop versions available | Depends on the setup | MIT |
| LibreChat | Self-hosted ChatGPT-style UI that unifies multiple AI providers | Several people via browser | MIT |
As a rule of thumb: for solo experiments, Ollama or LM Studio is enough. If several colleagues share one browser screen with admin-approved accounts, Open WebUI and LibreChat are candidates. For an Ollama-based setup that also bundles RAG, Open WebUI is quick; if you want the simplest license terms, MIT-licensed LibreChat and AnythingLLM are worth comparing. For Ollama versus LM Studio see Ollama vs LM Studio, and for the engines underneath see comparison of local LLM inference engines.
Troubleshooting: cannot connect or not working
"It cannot reach Ollama" is the most common problem; work through the official troubleshooting in order. If the GPU is unused and responses are slow, the issue is on the Ollama side: see Ollama not using the GPU or running slow.
| Symptom | Cause | Fix |
|---|---|---|
| Empty model list or connection error | Ollama listens only on 127.0.0.1:11434 | Set OLLAMA_HOST=0.0.0.0:11434 and restart |
Cannot connect with localhost from Docker | localhost inside a container means the container itself | Use OLLAMA_BASE_URL=http://host.docker.internal:11434 |
host.docker.internal does not resolve (Linux) | Not resolved by default on Docker Engine | Add --add-host=host.docker.internal:host-gateway |
| URL does not work | /api appended or http:// missing | Use the form http://host:port |
| Connection check passes but chat fails | The check only requests /api/version and does not run a model | Run ollama run <model> on the Ollama machine and look for memory errors |
How to listen on 0.0.0.0 differs by OS. Officially: on Linux (systemd), add Environment="OLLAMA_HOST=0.0.0.0:11434" via systemctl edit ollama.service, then daemon-reload and restart; on Windows, set OLLAMA_HOST in user environment variables and restart; for the macOS app, run launchctl setenv OLLAMA_HOST "0.0.0.0:11434" and restart.
# Check what Ollama is listening on (Linux)
ss -tlnp | grep 11434
# Check that the container can reach Ollama on the host
docker exec open-webui curl --fail --show-error --silent --max-time 5 http://host.docker.internal:11434/api/version
# View Open WebUI logs
docker logs open-webuiSecurity note: the official documentation warns that Ollama's API has no authentication, so with 0.0.0.0 any device that can reach port 11434 can use it. Because Open WebUI's backend calls Ollama, browsers do not need port 11434. Block 11434 at the host firewall except for the Open WebUI host, or put both on the same Docker network in Compose without publishing Ollama's ports.
Updating
For Docker, the official steps are to remove the container (docker rm -f open-webui), pull the image again (docker pull ghcr.io/open-webui/open-webui:main), and start it with the same volume and WEBUI_SECRET_KEY. Back up the volume first and pull the same tag you first used (such as :cuda or :ollama).
With Docker Compose, run docker compose pull then docker compose up -d; with pip, pip install -U open-webui.
FAQ
Is Open WebUI free, and can it be used commercially?
The software is free. The Open WebUI License is BSD-style plus a clause prohibiting changes to the name and logo; exceptions include 50 or fewer users in a rolling 30-day period. Read the full LICENSE.
Why does the first registered user become the admin?
It is how the product works per the official documentation: a Create Admin Account screen appears on first launch, the first account becomes the administrator, and sign-ups are then disabled. Create the first account yourself before exposing the server.
I want to use Ollama on another server instead of the host.
Add -e OLLAMA_BASE_URL=http://server:11434 at startup, or change the connection under Admin Panel > Settings > Connections. Use the form http://host:port and do not append /api.
RAG does not reflect my document contents.
First check Ollama's context length. On GPUs with little VRAM it can default to 4096 tokens and retrieved content may be ignored. If you changed the embedding model, the knowledge base also needs re-indexing.
Summary
Open WebUI exposes Ollama-run local LLMs inside your company as a browser interface with user management and RAG. Setup takes one official Docker command, and most problems come down to Ollama listening only on 127.0.0.1 or using localhost inside Docker. Create the admin account yourself before exposure and keep Ollama's port closed, and you can start small and safely.
Sources
- Official Quick Start: https://docs.openwebui.com/getting-started/quick-start/
- GitHub (LICENSE, Releases): https://github.com/open-webui/open-webui
- RAG: https://docs.openwebui.com/features/chat-conversations/rag/
- Connection errors: https://docs.openwebui.com/troubleshooting/connection-error/
- Environment variables: https://docs.openwebui.com/reference/env-configuration
株式会社オブライト
Oflight Inc. is a Tokyo-based IT company providing software development, digital signage, web development, network systems, and IoT/AR/VR technology services.
Related free tools (no sign-up, instant results)
Feel free to contact us
Contact Us