To install Open WebUI with Ollama, make sure Ollama is running with at least one model, generate a secret key with openssl rand -hex 32, then start Open WebUI with the official Docker command and open http://localhost:3000. The first account you create becomes the administrator. Open WebUI and Ollama both cost $0 in software for this setup. Open WebUI is free under its own licence, which lets a deployment of 50 or fewer users in any 30-day period change the branding, and larger deployments keep the original branding for free. Against ChatGPT Plus at $20 a month for one person, a solo owner on a machine already owned saves $240 a year.
Ollama in a terminal is fine for one person testing a model. It stops being fine when a second person needs the same private AI chat, with a login, a chat history, and a window that looks like the chat tools they already know.
Open WebUI is that window. It is a self-hosted chat interface that sits in front of Ollama on your own machine, so your team gets a familiar browser chat while the models and prompts stay on hardware you control. This guide shows how to install Open WebUI with Ollama step by step, with every command, licence rule and limit checked on the official Open WebUI documentation on 1 December 2026.
Quick Answer
To install Open WebUI with Ollama, make sure Ollama is running with at least one model, generate a secret key with openssl rand -hex 32, then start Open WebUI with the official Docker command and open http://localhost:3000. The first account you create becomes the administrator.
Open WebUI and Ollama both cost $0 in software for this setup. Open WebUI is free under its own licence, which lets a deployment of 50 or fewer users in any 30-day period change the branding, and larger deployments keep the original branding for free. Against ChatGPT Plus at $20 a month for one person, a solo owner on a machine already owned saves $240 a year.
In this article
- How we checked this guide
- What Open WebUI replaces, and what it does not
- Install routes and image tags at a glance
- Requirements before you install
- Step 1: make sure Ollama is running
- Step 2: install Open WebUI with Docker
- Step 3: create the first admin account and connect Ollama
- First-login security steps
- Make Open WebUI useful: models, documents and team access
- Backup and update routine
- Common errors and fixes
- Tips and tricks that save time
- The real cost maths: self-hosted versus subscription
- When not to self-host
- Pros and cons
- Our verdict
- FAQ
- Strategic Pivot: price your own stack before you buy
- Sources
How we checked this guide
Every install step, image tag, role rule, backup command and licence statement in this post was checked on the official Open WebUI documentation on 1 December 2026. That covers the Quick Start, Updating, Roles and License pages. The one paid price used for comparison, ChatGPT Plus at $20 a month, was checked on the official OpenAI Help Center page the same day.
Where the official pages do not publish a number, we say so instead of guessing. Open WebUI does not publish one flat minimum RAM figure for the container, because the model you run through Ollama decides most of the memory need. We therefore report the project’s own measured idle figure for the slim image and size the rest by the model.
What Open WebUI replaces, and what it does not
Open WebUI replaces the chat window, not the model. Ollama still downloads and runs the models. Open WebUI adds the browser interface in front of it: user accounts, chat history, settings, and a model picker, all stored in a Docker volume on your machine. It supports Ollama and OpenAI-compatible APIs, so one window can front a local model today and a hosted API later.
Best for: a solo owner or small team that already runs Ollama and wants private, ChatGPT-style chat in the browser without a per-seat subscription. Skip if: you need frontier-model quality for hard reasoning, or nobody on the team will own updates and backups. Open WebUI cannot make a small local model smarter. It only makes it easier to use.
That split matters for expectations. When a reply is slow or weak, the cause is usually the model and the hardware under Ollama, not the window. When a login, a history or a shared model list is missing, that is exactly the layer Open WebUI adds. If you have not installed the model side yet, start with our guide to install Ollama on Ubuntu and come back here for the window.
Install routes and image tags at a glance
The official Quick Start recommends Docker, and the image tag you pick decides what is bundled. Pick the tag before you run anything, because updates must pull the same tag you run.
| Route | Best for | Skip if | Download size |
|---|---|---|---|
| Docker :main | Most small businesses; standard image with bundled speech-to-text and embedding models | Disk space is very tight | About 1.62 GB on Linux/amd64 |
| Docker :slim | Chat-only setups fronting Ollama or a hosted API | You need built-in document extraction, local voice or local embeddings | About 197 MB on Linux/amd64 |
| Docker :ollama | A fresh machine with no Ollama yet; one container bundles both | You already run Ollama and want to update it separately | Larger than :main; includes Ollama |
| Docker :cuda | Nvidia GPU owners who want Open WebUI’s own embedding and speech models on the GPU | You expect faster chat replies; chat speed still comes from Ollama | Standard image plus CUDA 12.8 |
| Python pip | Python users avoiding Docker; project README uses Python 3.11 | You want the documented production route | Installed as a Python package |
The sizes above are the project’s compressed download sizes for Linux/amd64, checked by the project on 16 October 2026 and still shown in the Quick Start on 1 December 2026. The :main and :latest tags are the same rolling image from the main branch, rebuilt as changes land. They do not point at the newest stable release. Version tags such as :vX.Y.Z are pinned to one stable release and never change, which is why the docs recommend pinning a version for reproducible or production deployments.

Requirements before you install
You need Docker. The official Quick Start states that requirement plainly, and every command in this guide assumes Docker is installed and running. On a Linux server that means Docker Engine. On a desktop it usually means Docker Desktop, started once so the engine is awake.
You need Ollama running with at least one model already downloaded, unless you choose the bundled :ollama image. Open WebUI has no models of its own. If Ollama has no model, the window opens and the model list is empty, which looks like a broken install when the real gap is on the Ollama side.
You need disk space for the image and the models. Budget about 1.62 GB for the :main image download, or about 197 MB for :slim, plus the size of each Ollama model you pull. A small model such as llama3.2:3b is 2.0GB in Ollama’s library. Models, not the window, fill disks.
You need memory sized to the model, not to the window. The project measured the slim container at about 300 MiB of RAM at idle in its 16 October 2026 test, with a median of 292.2 MiB, and states clearly that this idle figure is not a minimum RAM requirement. Your browser, Docker and Ollama need their own memory on top. A machine that already swaps during normal work will not enjoy local models.
You need one free port. The official command publishes the interface on port 3000 of your machine. If 3000 is taken, change the left number in -p 3000:8080. Keep the right number at 8080, the port Open WebUI listens on inside the container. With -p 3000:3000 the page never loads.
Step 1: make sure Ollama is running
Check the model side before you touch the window. On the machine that runs Ollama, confirm the service answers and at least one model is present. If you followed our Ollama guide, llama3.2 is the sensible first model because it is small enough to prove the whole chain quickly.
Note where Ollama listens. By default Ollama binds to 127.0.0.1 on port 11434, so only the same machine can reach it. That default is safe, and it is also the reason the Docker command below carries a special host flag. Inside a container, your machine is not localhost. The flag is what lets the container reach Ollama running on the host.
If Ollama runs on a different server from Open WebUI, write down that server’s Ollama address now. You will pass it to Open WebUI as OLLAMA_BASE_URL in Step 2 instead of relying on the host flag. Keep that address private. Ollama’s port has no login of its own, so it should never be forwarded to the internet.
Step 2: install Open WebUI with Docker
Generate a secret key first and keep it somewhere safe. The official Quick Start tells you to replace your-secret-key with the output of this command:
openssl rand -hex 32Then run the official Docker command. This is the default configuration for Ollama running on the same computer:
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:mainEach flag earns its place. The -p 3000:8080 part puts the interface on port 3000 of your machine. The –add-host flag lets the container reach Ollama on your machine. The -v open-webui:/app/backend/data volume holds your chats, users and settings, and the docs warn never to run without it. The –restart always flag brings the container back after a reboot.
Mount the volume at /app/backend/data, not at /app/backend. A mount at /app/backend covers the application code inside the image, so the container runs whatever the mount holds and updates seem to change nothing. This one wrong path explains many “my update did nothing” reports.
Set WEBUI_SECRET_KEY once and keep the same value across updates. Without a fixed key, every recreated container logs everyone out. Treat the key like a password. Do not paste it into chats, tickets or screenshots.
Two variants cover the other common setups. If Ollama is on a different server, set its address in the command:
docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=https://example.com -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:mainReplace the example address with your Ollama server’s real address. If the machine has no Ollama yet, the bundled image runs both in one container. For CPU only:
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:ollamaThe first start pulls the image, so give it time. The log line “Waiting for application startup.” appears on every normal start and is not an error. Open WebUI accepts connections once the log shows “Uvicorn running on http://0.0.0.0:8080“. Then open http://localhost:3000 in your browser.
Step 3: create the first admin account and connect Ollama
Create your account immediately, before you share the address with anyone. The official Roles documentation states that the very first account created on a fresh installation is automatically assigned the Admin role, and that first sign-up turns sign-up off once it succeeds. Whoever signs up first owns the instance. On a fresh install, that person must be you.
Use a strong, unique password for this account. The primary administrator is the earliest-created account, and the interface protects it from deletion and demotion by other admins. Losing its password turns a five-minute install into a recovery job, so store the password in your password manager now.
Next, confirm the Ollama connection. Open the Admin Panel settings for Connections and check that the Ollama address matches where Ollama actually runs: the host address for a same-machine Docker setup, or the OLLAMA_BASE_URL you set for a separate server. Then look at the model picker in a new chat. Your Ollama models should be listed by name.
Send one short test message and watch the reply arrive. While the model is still loaded, run ollama ps on the Ollama machine and read the PROCESSOR column. It shows whether the model loaded on CPU, GPU, or a split between them. For the bundled image, the same check is docker exec open-webui ollama ps. That one column separates a window problem from a hardware problem.
First-login security steps
Keep sign-up controlled. After your first account succeeds, sign-up turns off. When you later add teammates, new accounts take the default user role. The official Roles page sets that default to pending and recommends pending for public or shared instances. A pending account can sign in but sees only the pending screen, and every request is refused until an admin promotes it. Approve people one by one in Admin Panel > Users.
Know the three roles before you invite anyone. Admin is a superuser with full control over users, groups and global configuration. User is the standard team role, subject to permissions. Pending has no access until approved. Promoting a user to admin grants full control, so admin is a job title, not a courtesy.
Keep the instance off the open internet unless you have deliberately secured it. Docker publishes port 3000 on your machine, and on a home or office network that can mean every device on the network can reach the login page. That is acceptable on a trusted network with sign-up off and pending approvals on. It is not acceptable as an unplanned public service.
Never expose Ollama itself. Open WebUI talks to Ollama from its backend, so nobody outside the server needs port 11434. If you changed Ollama’s bind address so a container or second machine can reach it, block that port at the firewall for everything except the Open WebUI host. A public 11434 is a free model server for strangers.
Skip single-user mode for a business install. The Quick Start documents a WEBUI_AUTH=False mode with no login, and warns that you cannot switch between single-user mode and multi-account mode after the change. A shared business window needs accounts. Keep login on.
Make Open WebUI useful: models, documents and team access
Start with one model and three real prompts. Draft a customer reply, summarize a meeting note, and rewrite a product description. Judge the answers on your own text, not on a demo prompt. If the small model handles those three jobs, your setup is already earning its keep. If it fails one job badly, note which job, because that job may still belong to a cloud model.
Choose the image for the features you actually use. The standard :main image bundles the speech-to-text and embedding models, so document extraction, knowledge search and voice can run inside the container. The :slim image leaves that machine-learning stack out to save about 1.42 GB on a fresh pull. Slim still chats with Ollama normally, but document and voice features then need external services, and some requests return 503 until you point slim at them.
Chat-only teams should pick slim without guilt. The docs state plainly that if you use Open WebUI as a chat front end for hosted or local models, slim is simply the smaller image. Pick :main when you want Open WebUI itself to handle embeddings, speech recognition and document extraction.
Give the GPU to the right program. The :cuda image runs Open WebUI’s own embedding, reranking and local Whisper models on an Nvidia GPU. The docs warn that chat replies are not faster for it, because replies come from Ollama. If chat speed is the goal, the GPU belongs to Ollama. Check with ollama ps instead of guessing.
Add teammates through the pending queue, not by opening sign-up to the world. Turn sign-up on only long enough for known people to register, approve each account, then turn it off again. Sign in as a regular user once and confirm that user sees the models you intended and nothing else. Ten minutes of role checking prevents the classic shared-instance surprise.

Backup and update routine
Back up before every update, and on a regular schedule between updates. All Open WebUI data lives in the open-webui Docker volume: the database with chats, users and settings, uploaded files, and generated content. The official backup command archives that volume into a dated file in your current folder:
docker run --rm -v open-webui:/data -v $(pwd):/backup alpine tar czf /backup/openwebui-$(date +%Y%m%d).tar.gz /dataStore the archive somewhere that is not the same disk. A backup on the disk that dies is a story, not a backup. Restore is the reverse, and the docs attach a caution worth repeating: the restore command deletes everything in the volume before extracting the backup. Confirm the file name before you run it.
Update by pulling a newer image and recreating the container with the same data mount. The manual routine is three steps: remove the container, pull the image, run the container again with the same volume and the same WEBUI_SECRET_KEY.
docker rm -f open-webui
docker pull ghcr.io/open-webui/open-webui:main
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:mainPull the same tag you run. A container started from :cuda, :ollama or a pinned version starts its old version again after a pull of :main. Read the release notes before updating a shared instance, because some releases run database migrations. Migrations are one-way. Rolling the container back does not undo them, so the pre-update backup is your real rollback.
After updating, load the interface and clear the browser cache with Ctrl+F5 if anything looks broken. Stale frontend assets are a documented cause of a half-updated screen. If nothing changed at all, check the volume mount path first. Data mounted at /app/backend instead of /app/backend/data covers the new code and hides the update.

Common errors and fixes
The page never loads. Check the port mapping first. The right side of -p 3000:8080 must stay 8080, because that is the port Open WebUI listens on inside the container. The docs state that with -p 3000:3000 the page never loads. Change only the left number when 3000 is taken on your machine.
The container starts but shows no models. Work from the model side inward. Confirm Ollama is running and has a model. Confirm the Docker command kept the –add-host=host.docker.internal:host-gateway flag, which is what lets the container reach Ollama on your machine. Then open Admin Panel > Settings > Connections and confirm the Ollama address matches where Ollama runs. For Ollama on a different server, that address comes from OLLAMA_BASE_URL.
Everyone gets logged out after an update. The cause is a missing or changed WEBUI_SECRET_KEY. Without a persistent key, a new one is generated each time the container is recreated, invalidating all sessions. Generate one key with openssl rand -hex 32, put it in the run command, and reuse the same value on every update.
The update changed nothing. Check where the volume is mounted. Mounted at /app/backend, the volume covers the application code in the image, so the container keeps running whatever code the mount holds. Move the mount to /app/backend/data. Also confirm you pulled the same tag the container runs, because pulling :main does not update a :cuda or :ollama container.
The GPU is ignored. Read the log before changing anything. If the container cannot use CUDA, Open WebUI logs that CUDA is unavailable and falls back to CPU, followed by the reason. The –gpus all flag needs the NVIDIA Container Toolkit on the host. Without it, docker run fails with a device driver error and no container starts. Install the toolkit, restart Docker, and run the command again. For chat speed, check ollama ps. The model must load on the GPU in Ollama, not in the window.
The startup log looks stuck. “Waiting for application startup.” appears on every normal start. The ready signal is the log line “Uvicorn running on http://0.0.0.0:8080“. On a first start the image pull and model downloads take minutes. Judge by the log line, not by impatience.
There is no ROCm image. AMD GPU owners should run the :main image for Open WebUI and give the GPU to Ollama through its ROCm route, as the Quick Start directs. Do not hunt for an Open WebUI ROCm tag that the project does not publish.
Tips and tricks that save time
Pin a version on any instance other people depend on. Rolling :main is convenient for a personal install, but it can include breaking changes without warning. The Updating guide recommends pinning a specific version for shared and production instances, reading release notes first, and testing in staging where the stakes justify it.
Run a second instance on :dev if you maintain the setup for a team. The dev image is the pre-release channel where fixes land first. Give it its own volume and its own port, never a shared volume with production, because dev builds may include database migrations a release image cannot read back. Ten minutes on dev shows you the next release before your users meet it.
Keep the install boring. One container, one volume, one secret key, one pinned tag, one dated backup before each update. Every clever extra, from custom networks to auto-updaters, is another thing to debug at the moment a teammate needs the chat window. The docs list automated update tools, and also warn that automated updates can break a deployment when a release carries migrations. For a small business, a manual update with a backup beats a surprise.
Name the owner. Write down who holds the admin account, where the secret key lives, where backups go, and when updates happen. Self-hosting fails socially before it fails technically. A named owner turns Open WebUI from a weekend experiment into business infrastructure.
Compare the wider shelf before you commit your team. Our roundup of best AI chatbots and our guide to ChatGPT alternatives for small business owners show where a hosted tool still beats a local window, and our list of free AI tools for small business that are actually free covers the zero-budget cloud options.
The real cost maths: self-hosted versus subscription
Open WebUI is free to use. Its official licence page states that organizations can use Open WebUI internally at any scale with the original branding. From v0.6.6, a deployment with 50 or fewer users in any 30-day period may change the branding. Above that limit, using your own branding requires an enterprise licence. Code up to v0.6.5 remains under the plain BSD-3-Clause licence. In plain words for a small business: run it free, keep the Open WebUI name visible, and the licence asks nothing more of you. This summary is not legal advice. Read the full licence before any rebranding decision.
Ollama adds $0 under the MIT licence. So the software line for the pair is $0, with no per-seat charge and no conversation fee. The comparison anchor is the subscription most readers already pay. The official OpenAI Help Center page checked on 1 December 2026 lists ChatGPT Plus at $20 a month, billed monthly. That is $240 a year for one person.
Price one realistic scenario. A solo owner runs Open WebUI and Ollama on a PC already on the desk, for drafting replies, summarizing notes and rewriting product text. Software cost: $0 a year. The subscription route: $240 a year. The verified saving is $240 a year, and the prompts stay on the owner’s machine.
Scale it honestly. Five staff on individual Plus subscriptions cost $1,200 a year at $20 each. One shared Open WebUI instance still costs $0 in software, but one machine now serves five people’s drafting, with queue and memory limits to plan around, and one named admin owns updates and backups. The saving is real. So is the sharing friction.
Hosting changes the maths only when you rent a machine for this. On hardware you already own, the extra cost is electricity and setup time. If you rent a server, divide its annual cost by $240 to see how many Plus subscriptions it must replace to break even. Server prices vary by provider and region, so check the provider’s official pricing page before you buy. The enterprise licence price is likewise a quote from the project, relevant only if you want your own branding above 50 users.

When not to self-host
Do not self-host when the work needs the strongest model. Open WebUI makes local models pleasant to use. It does not make them frontier models. Long contracts, delicate disputes and complex analysis still reward a top cloud model. Use the local window for routine private work and keep a subscription for the hard cases.
Do not self-host when nobody will own it. Updates, backups, disk space and the occasional driver problem need one named person with the admin password and the secret key. Without that person, a subscription buys you a maintenance off switch. For some businesses that is worth $240 a year per person.
Do not self-host a public service on a casual setup. A login page reachable from the internet needs HTTPS, careful sign-up control and monitoring. Port 11434 must never face the internet at all. If customers will use the window, treat it as a production deployment with pinned versions and tested backups, or buy a hosted tool.
Do not self-host when your hardware is already struggling. The window itself is light, but the model is not. A machine short on memory will answer slowly and frustrate the team into abandoning the tool. Replace the hardware for general reasons first, or stay on a cloud chat.
Pros and cons
Open WebUI with Ollama
Pros: $0 software cost for both programs; prompts and models stay on your machine for local use; real user accounts with admin, user and pending roles; chat history and settings persist in one Docker volume; one official Docker command to install and a documented update routine. Cons: chat quality and speed depend on your local model and hardware; you own updates, backups and security; rebranding above 50 users needs an enterprise licence; document and voice features depend on image choice and services.
ChatGPT Plus as the paid comparison
Pros: stronger models with no hardware limits; works on any device with a login; no Docker, drivers or disk management. Cons: $20 a month per person, $240 a year, checked 1 December 2026; prompts leave your machine; no offline use when the connection drops.
Our verdict
Install Open WebUI with Ollama on the machine you already own, create the admin account yourself, and judge it on three real prompts from your business. If the local model drafts, summarizes and rewrites well enough, you have replaced a $240-a-year subscription for that work and kept the text private.
Keep the setup dull: pinned version, pending approvals, dated backups, port 11434 closed to the world. Boring is what makes self-hosting pay. Keep a cloud subscription only where the stronger model earns its money.
FAQ
Is Open WebUI free for a small business?
Yes. Open WebUI is free to use internally at any scale with the original branding, under its official licence. A deployment with 50 or fewer users in any 30-day period may change the branding. Above that, your own branding needs an enterprise licence. Ollama is free under the MIT licence, so the pair costs $0 in software.
Does Open WebUI run AI models itself?
No. Open WebUI is the chat window: accounts, history and settings. Ollama runs the models. Open WebUI connects to Ollama, or to OpenAI-compatible APIs, and shows the models that service offers. If the model list is empty, check Ollama first.
Why does Open WebUI not show my Ollama models?
Usually the container cannot reach Ollama. Keep the –add-host=host.docker.internal:host-gateway flag in the Docker command, confirm Ollama is running with a model downloaded, and check the Ollama address in Admin Panel > Settings > Connections. For Ollama on another server, set OLLAMA_BASE_URL to that server’s address.
Can my team use one Open WebUI install?
Yes. The first account becomes the administrator and sign-up turns off. Later accounts wait in the pending role until an admin approves them in Admin Panel > Users. One shared instance costs $0 in software, but one machine serves everyone, so plan for queue and memory limits.
Is it safe to put Open WebUI on the internet?
Only with deliberate production care: HTTPS, sign-up controlled, pending approvals, pinned versions and tested backups. Never expose Ollama’s port 11434 to the internet, because it has no login of its own. On a trusted office network with sign-up off, the default setup is reasonable.
Strategic Pivot: price your own stack before you buy
Before you cancel or keep any subscription, run your numbers through the AI Cost Calculator on this site. Enter the chat tools you pay for today, then compare the annual total against a $0 Open WebUI and Ollama install on hardware you already own.
Sources
Install steps, image tags, flag explanations, update and backup commands, role rules and licence terms were checked on the official Open WebUI Quick Start, Updating, Roles and License documentation on 1 December 2026. Ollama’s default bind address and model sizes were checked on Ollama’s official documentation and model library the same day. The ChatGPT Plus price was checked on the official OpenAI Help Center page.
Price note — updated 1 December 2026: Prices in this post were checked on 1 December 2026. Open WebUI and Ollama are free for this self-hosted setup, and ChatGPT Plus was listed at $20 a month on the official OpenAI Help Center page. When you are reading this, the price may be lower or higher, and image tags and install commands may have changed. Check the official Open WebUI documentation and the official pricing page before you buy or install.
Pros
- $0 software cost for both programs
- Prompts and models stay on your machine for local use
- Real user accounts with admin, user and pending roles
- Chat history and settings persist in one Docker volume
- One official Docker command to install and a documented update routine
Cons
- Chat quality and speed depend on your local model and hardware
- You own updates, backups and security
- Rebranding above 50 users needs an enterprise licence
- Document and voice features depend on image choice and services
Install Open WebUI with Ollama on the machine you already own, create the admin account yourself, and judge it on three real prompts from your business. If the local model drafts, summarizes and rewrites well enough, you have replaced a $240-a-year subscription for that work and kept the text private. Keep the setup dull: pinned version, pending approvals, dated backups, port 11434 closed to the world. Boring is what makes self-hosting pay. Keep a cloud subscription only where the stronger model earns its money.

1 thought on “How to Install Open WebUI with Ollama Step by Step (2026)”