One of the best reasons to self-host AI is privacy: your chats and documents never leave your network. But a fresh Open WebUI install still reaches out to the internet.
It checks for updates, downloads embedding models from Hugging Face on first use, and may call cloud models or web search if you set them up.
This guide shows you how to run Open WebUI fully offline, including on an air-gapped machine with no internet at all.
You will prepare a local model, cache the embedding and speech models, turn on OFFLINE_MODE, lock down the network with Docker, and test that chat and document Q&A still work.
It follows the official Open WebUI offline guide and environment reference as of December 2026.
- Prepare first: a local model in Ollama or llama.cpp, plus a cached embedding model, before you go offline.
- Set
OFFLINE_MODE=true. It also setsHF_HUB_OFFLINE=1, stops the version check and turns off model auto-updates. - Offline mode is not a firewall. Block outbound traffic with an internal Docker network or firewall rules.
- Air-gapped: download caches on a connected machine and copy them to
/app/backend/data/cache/embedding/models/. - Error “No embedding model is loaded” means the embedding model was never cached.
What Offline Mode Does and Does Not Do
OFFLINE_MODE=true stops Open WebUI’s own background internet use:
- Automatic version update checks and update notices in the UI
- Downloads of embedding models from Hugging Face Hub
- Automatic updates of the embedding, reranking and Whisper models
- Installation of Python packages listed in function and tool
requirements
What it does not do is block network traffic. External model APIs such as OpenAI, OAuth sign-in providers, web search and tools keep working if the network allows them. The docs are clear on this: offline settings prevent selected downloads and update checks, and stopping external access needs separate network controls.
So a true offline setup has three parts: local services, offline settings, and network isolation.
What Must Be Local
| Feature | What you need locally |
|---|---|
| Chat | A local inference server (Ollama, llama.cpp, vLLM) and a downloaded model, not a cloud model |
| Documents and RAG | A cached embedding model or local embedding service, local document extraction, and a local reranker if enabled |
| Sign-in | An auth method reachable on the isolated network, such as local accounts |
| Speech to text | A cached faster-whisper model |
| Text to speech | A local TTS service with its voices |
| Install | The Open WebUI image or packages and persistent storage for data and caches |
A local chat model alone does not keep documents local. Check the providers in Admin Panel → Settings → Documents.
Prepare While Connected
If the machine can reach the internet during setup, this is the easy path.
- Install Open WebUI with a local model. Follow our Open WebUI with Ollama setup or Open WebUI with llama.cpp. Pull the model you will use and send a test message.
- Use persistent storage. In Docker, mount a volume at
/app/backend/data, for example-v open-webui:/app/backend/data. The model caches live inside it. - Cache the embedding model. Go to Admin Panel → Settings → Documents, pick a local embedding model such as
sentence-transformers/all-MiniLM-L6-v2, and use the download control. - Test documents. Upload a small text file or text-based PDF and ask a question whose answer is in it. A normal chat working does not prove document processing is ready. See the Open WebUI RAG guide for the full flow.
- Cache optional models. If you use voice input, record once so the Whisper model downloads. If you use a reranker, enable it and run a query.
- Restart once while still online and confirm everything loads from storage without new downloads.
Simpler alternative: set the embedding engine to Ollama (RAG_EMBEDDING_ENGINE=ollama) and pull an embedding model there, such as nomic-embed-text. Then Open WebUI downloads nothing for RAG. Our Ollama embeddings guide covers the models.
Prepare an Air-Gapped Machine
For a machine that has never been online, use a connected staging machine to download everything, then transfer it through your approved process.
- Save the Docker image on the connected machine and load it on the target:
docker pull ghcr.io/open-webui/open-webui:main docker save ghcr.io/open-webui/open-webui:main -o open-webui.tar # on the offline machine docker load -i open-webui.tar - Prepare the inference server and models the same way. For Ollama, copy its models folder; see moving Ollama models for where they live.
- Download the embedding model on the connected machine:
from huggingface_hub import snapshot_download snapshot_download( repo_id="sentence-transformers/all-MiniLM-L6-v2", cache_dir="/path/to/embedding-cache", ) - Copy the cache into
/app/backend/data/cache/embedding/models/on the target, keeping the folder structure and any symlinks intact. SetRAG_EMBEDDING_MODELto the same model ID. - Optional speech to text: download a faster-whisper model the same way, for example
Systran/faster-whisper-large-v3, copy it to/app/backend/data/cache/whisper/models/and setWHISPER_MODELto match. A smaller model works too. - Check permissions so the Open WebUI process can read the copied files.
Enable Offline Mode
Add these environment variables and restart Open WebUI:
OFFLINE_MODE=true
HF_HUB_OFFLINE=1
RAG_EMBEDDING_MODEL_AUTO_UPDATE=false
RAG_RERANKING_MODEL_AUTO_UPDATE=false
WHISPER_MODEL_AUTO_UPDATE=false
OFFLINE_MODE=true alone already sets the other four, so the extra lines are optional but make the intent obvious. If you only want to hide update notices, use ENABLE_VERSION_UPDATE_CHECK=false instead.
With Docker run:
docker run -d --name open-webui -p 3000:8080 \
-v open-webui:/app/backend/data \
-e OFFLINE_MODE=true \
-e RAG_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 \
ghcr.io/open-webui/open-webui:main
Warning: once HF_HUB_OFFLINE=1 is active, missing models cannot download. A fresh install may start fine and then fail on the first document upload.
Block Outbound Network Access
To make sure nothing leaves your network, isolate the container. Docker’s internal: true network has no route to the internet:
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
restart: unless-stopped
environment:
- OFFLINE_MODE=true
- RAG_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
- OLLAMA_BASE_URL=http://ollama:11434
volumes:
- ./open-webui-data:/app/backend/data
- ./models/embedding-cache:/app/backend/data/cache/embedding/models/
networks:
- internal
ollama:
image: ollama/ollama
volumes:
- ./ollama:/root/.ollama
networks:
- internal
networks:
internal:
internal: true
An internal network also blocks published ports from your host, so browsers need a way in. The official example uses a reverse proxy attached to both the internal network and a normal one. Put Caddy or Nginx in front, or use host firewall rules instead.
Other options: firewall rules that drop outbound traffic from the Open WebUI host, or a physically separate network. Whatever you choose, the browser must reach Open WebUI and Open WebUI must reach its local model server.
Verify Everything Works Offline
- Restart Open WebUI and its services with the internet blocked. Watch the logs for missing dependencies or attempted downloads.
- Sign in with your offline auth method.
- Send a chat message to your local model.
- Upload a new small document with a distinctive fact, such as “The test office opens at 09:15.” Wait for processing.
- Ask about the fact with the file attached and check the answer.
- Confirm isolation separately with your firewall logs or network monitoring. Working chat does not prove nothing is leaking.
What Works and What Breaks Offline
| Feature | Offline status |
|---|---|
| Chat with local models | Works |
| Document Q&A and knowledge bases | Works if embeddings are cached or local |
| Voice input | Works with a cached Whisper model |
| Image generation | Works with a local ComfyUI or A1111 backend |
| Cloud models (OpenAI, Claude, Gemini) | Stops working |
| Web search | Stops working unless you run a local search engine |
| Functions and tools with new pip requirements | Fail with ModuleNotFoundError unless already installed |
| Google or Microsoft sign-in | Stops working; use local accounts |
| Update notices | Hidden; update manually, see how to update Open WebUI |
Troubleshooting
ValueError: No embedding model is loaded
The log also shows LocalEntryNotFoundError ... outgoing traffic has been disabled. The embedding model was never cached. Fix it one of three ways: start once without offline mode so it downloads, switch RAG_EMBEDDING_ENGINE to ollama with a pulled model, or copy a prepared cache into the volume.
Chat works but documents fail
Check the extraction and embedding providers in Documents settings, cache folder permissions and that RAG_EMBEDDING_MODEL matches the cached model ID exactly.
A tool or function fails with ModuleNotFoundError
Offline mode blocks pip installs from frontmatter. Install the package into the image while online, or build a custom image.
Voice input still tries to download
WHISPER_MODEL_AUTO_UPDATE=false does not stop a first download if the model is missing. Copy the Whisper cache into place first.
The page will not load after switching to an internal network
Internal Docker networks block port publishing. Add a reverse proxy on both networks, or use firewall rules instead.
Before big changes, take a backup with our Open WebUI backup guide.
FAQ
Can Open WebUI run without internet?
Yes. Use a local model server, cache the embedding model, set OFFLINE_MODE=true and block outbound traffic.
Does OFFLINE_MODE block all network traffic?
No. It stops update checks and model downloads only. Cloud APIs, OAuth and web search still work if the network allows them. Use a firewall or internal Docker network to block traffic.
Which embedding model should I use offline?
sentence-transformers/all-MiniLM-L6-v2 is the small default. An Ollama embedding model such as nomic-embed-text avoids Hugging Face downloads entirely.
Where does Open WebUI store downloaded models?
Under /app/backend/data/cache/ in the container, with embeddings in embedding/models/ and Whisper in whisper/models/.
Is Open WebUI private if I use it offline?
With local models and network isolation, chats and documents stay on your hardware. Check every configured connection, since any cloud provider you add receives the data you send it.
How do I update an offline Open WebUI?
Pull the new image on a connected machine, docker save it, move it over and docker load it. Back up the data volume first.




