Open WebUI Setup Guide: Your Own Private ChatGPT in 10 Minutes
One self-hosted interface over Ollama, llama.cpp, OpenRouter, Anthropic, and OpenAI — with RAG, voice, and multi-user auth.
Running models in a terminal with ollama run is great for quick tests, but nobody wants to read long research threads, upload PDFs, or share local AI with a partner inside a shell prompt. Open WebUI solves that completely: it is the de-facto self-hosted front end for local and API-backed LLMs.
Clean Docker Compose setup (Ollama + Open WebUI)
If Ollama already runs natively on your Mac Studio or Linux host (recommended on Apple Silicon so Metal GPU acceleration works at full speed), deploy Open WebUI with host.docker.internal so it talks directly to your host’s Ollama API on port 11434:
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
ports:
- "3000:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- OLLAMA_BASE_URL=http://host.docker.internal:11434
- WEBUI_AUTH=true
- ENABLE_SIGNUP=false
volumes:
- open-webui-data:/app/backend/data
volumes:
open-webui-data:Create your first admin account right after boot, then keep ENABLE_SIGNUP=false so nobody on your LAN can self-register. Not sure which models fit your GPU or Mac? Check our Local LLM VRAM Calculator first.
5 features that make Open WebUI worth replacing ChatGPT Plus
- Hybrid local + cloud model routing: Keep private finances, health logs, and family notes on local Qwen/Gemma via Ollama while routing hard coding or research prompts to Claude/OpenAI via API keys — paying pennies per query instead of multiple $20/mo seats.
- Built-in Knowledge (local RAG): Drop PDF manuals, tax docs, or Obsidian markdown folders into a Workspace Knowledge collection and reference them with
#collectionin any chat. - Private Web Search: Pair Open WebUI with a self-hosted SearXNG container so local models can search the live web with zero tracking.
- Custom System Prompts & Tools: Save reusable assistant personas (code reviewer, Polish tax explainer, meal planner) and share them with household accounts.
- Mobile PWA over Tailscale: Expose it over Tailscale and install it to your iPhone/Android home screen for instant private AI anywhere.
Common gotchas to avoid
- Ollama bound only to 127.0.0.1: On Linux/macOS, set
OLLAMA_HOST=0.0.0.0(firewalled to LAN/Tailscale only) if Open WebUI runs inside Docker and cannot reach localhost. - Default 4K context truncation: Ollama defaults many models to 2048–4096 context unless you raise
num_ctxinside Open WebUI’s model parameters — crucial before feeding RAG documents. - Forgetting volume backups: Your entire chat history, prompts, and RAG embeddings live in
/app/backend/data/webui.db. Include that Docker volume in your nightly restic/NAS backup.
Frequently asked questions
What is Open WebUI?
Open WebUI is a self-hosted web interface for running local LLMs (via Ollama or OpenAI-compatible servers) alongside cloud API models. It gives you ChatGPT-style threads, document RAG, web search, artifacts, image generation, and multi-user accounts on hardware you control.
Can Open WebUI connect to both Ollama and OpenAI/Anthropic?
Yes. You can point Open WebUI at a local Ollama instance and simultaneously attach OpenRouter, OpenAI, or LiteLLM/Anthropic endpoints so family or teammates switch between private local models and frontier cloud models in one dropdown.
How do I access Open WebUI securely from my phone outside home?
Put Open WebUI behind Tailscale Serve or a Traefik reverse proxy over Tailscale rather than exposing port 3000 directly to the public internet. Your phone connects over encrypted WireGuard with zero port forwarding.
How much RAM does Open WebUI need by itself?
The Open WebUI container typically uses 500 MB to 1.5 GB of RAM depending on whether you enable local Whisper/embeddings inside the container. The heavy memory requirement comes from the LLM weights in Ollama.