Skip to main content
株式会社オブライト
株式会社オブライト

How to Use Open WebUI with Ollama

Build a Local, In-House ChatGPT (Docker / pip, Users, RAG, Troubleshooting) [Nov 2026]

Published 2026/11/2810 min read

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

ItemDetails (as confirmed from official sources on Nov 28, 2026)
Latest versionv0.13.5 (published 2026-11-25 on GitHub Releases; PyPI open-webui is also 0.13.5)
Install methodsDocker (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)
LicenseOpen WebUI License (BSD-style terms plus a branding-preservation clause; GitHub shows it as "Other")
CostThe 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:ollama

Fastest 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.

ToolPositioningMulti-user useLicense
Open WebUISelf-hosted ChatGPT-style web UI that connects to Ollama and others; built-in RAG and user managementSeveral people via browser; admin and approval flowOpen WebUI License (branding-preservation clause)
Ollama aloneRuntime that runs models; CLI and API centeredNo UI or user management (use the API from other apps)MIT
LM StudioDesktop app to find and run models through a GUIBasically an app used on one person's PCProprietary (free to use)
AnythingLLMApp for chatting with ingested documents; desktop versions availableDepends on the setupMIT
LibreChatSelf-hosted ChatGPT-style UI that unifies multiple AI providersSeveral people via browserMIT

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.

SymptomCauseFix
Empty model list or connection errorOllama listens only on 127.0.0.1:11434Set OLLAMA_HOST=0.0.0.0:11434 and restart
Cannot connect with localhost from Dockerlocalhost inside a container means the container itselfUse OLLAMA_BASE_URL=http://host.docker.internal:11434
host.docker.internal does not resolve (Linux)Not resolved by default on Docker EngineAdd --add-host=host.docker.internal:host-gateway
URL does not work/api appended or http:// missingUse the form http://host:port
Connection check passes but chat failsThe check only requests /api/version and does not run a modelRun 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-webui

Security 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

株式会社オブライト

Oflight Inc. is a Tokyo-based IT company providing software development, digital signage, web development, network systems, and IoT/AR/VR technology services.

Feel free to contact us

Contact Us