open-webui
by open-webui
Self-hosted chat interface for Ollama and OpenAI-compatible models.
- Stars
- 159,471 stars
- Forks
- 23k forks
- Last push
- today
- Activity
- Active
# Run with Docker$ docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main# Or with pip (Python 3.12)$ pip install open-webui
open-webui serveCommands from the project's README. Run them after installing (see below).
Overview
Understand open-webui in 60 seconds
- What it does
- Open WebUI is a self-hosted, ChatGPT-style web interface for AI models. It connects to local models through Ollama or to any OpenAI-compatible API, and it is built to run entirely offline if you want.
- The problem it solves
- Local models usually come with only a command line, and cloud chat apps keep your conversations on someone else's servers. Open WebUI gives you a polished chat interface you host yourself, for local and cloud models alike.
- Why choose it
- Choose it for the most popular self-hosted chat UI for Ollama and OpenAI-compatible models. Its license requires keeping the Open WebUI branding.
- Who should use it
- Ollama users who want a web chat interface
- Teams hosting a private AI chat
- Privacy-minded users running offline
- Developers comparing local and cloud models
- Setup difficultyBeginner
You'll need:
- Docker, or Python 3.12 with pip or uv
- Ollama or an OpenAI-compatible API
How open-webui works
Open WebUI runs as a web app you open in your browser. Point it at Ollama for local models, or give it an OpenAI API key or any OpenAI-compatible endpoint for cloud and local models.
Docker images come in several flavours: main with local AI dependencies, slim using external services for embeddings and documents, cuda for NVIDIA acceleration, ollama with Ollama bundled, and dev. Options like OLLAMA_BASE_URL, OPENAI_API_KEY and HF_HUB_OFFLINE configure it.
There's also a native desktop app for macOS, Windows and Linux, and ecosystem projects for agent terminals and knowledge base sync. Code is under the Open WebUI License, which requires preserving the branding.
Features
Key features
Self-hosted chat
ChatGPT-style interface you run yourself.
Ollama and OpenAI-compatible
Local and cloud models.
Offline capable
Built to run entirely offline.
Several Docker images
main, slim, cuda, ollama and dev.
Desktop app
Native app for macOS, Windows and Linux.
Knowledge bases
Sync folders and wikis with oikb.
Strengths
- Very popular, active project
- Easy Docker or pip install
- Works with local and cloud models
- Can run fully offline
Limitations
- License requires keeping Open WebUI branding
- GPU acceleration needs the cuda image and NVIDIA Container Toolkit
- Enterprise features are separate
Practical use cases
Private ChatGPT
Chat with local models through Ollama.
Team AI portal
Host one interface for several model providers.
Offline AI
Use AI on a machine with no internet.
Installation
Install open-webui
Commands come from Open WebUI's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Docker or Python 3.12
Supported systems
- Windows
- macOS
- Linux
- 1
Start the container
Add -e OLLAMA_BASE_URL=http://your-ollama-server:11434 to connect to Ollama on another server.
Shelldocker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main - 2
Open it
Go to http://localhost:3000.
- 1
Install and start
Needs Python 3.12. Then open http://localhost:8080.
Shellpip install open-webuiopen-webui serve
- 1
Run with uvx (macOS/Linux)
ShellDATA_DIR=~/.open-webui uvx --python 3.12 open-webui@latest serve
- 1
Download the desktop app
From the open-webui/desktop repository, for macOS, Windows and Linux.
Configuration and API keys
| Setting | What it's for |
|---|---|
OLLAMA_BASE_URLOptional | Connect to Ollama on another server. |
OPENAI_API_KEYOptional | Your OpenAI API key. |
HF_HUB_OFFLINEOptional | Set to 1 to disable Hugging Face model downloads for offline use. |
DATA_DIROptional | Where Open WebUI stores its data when run with uvx. |
First run
- 1
Open the interface
http://localhost:3000 for Docker or http://localhost:8080 for pip.
open-webui's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Chat with local models through Ollama
Put a web chat interface in front of Ollama with Docker.
Before you start
- Docker installed
- Ollama installed with a model pulled
- 1
Start Open WebUI
Shelldocker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main - 2
Open http://localhost:3000
Create your account and pick a model to chat with.
What to expect
Open WebUI runs in your browser and lists your models, with conversations stored in the open-webui volume.
Next steps
- Add an OpenAI API key for cloud models
- Try the cuda image for GPU acceleration
- See the docs for Docker Compose and Kubernetes
Costs and requirements
What it costs to run
- License
- Open WebUI License; requires preserving the branding.Depends
- Software
- Free to self-host.Free
- Cloud models
- Billed by the providers you connect.Depends
Troubleshooting
Common setup issues
Can't connect to Ollama
See the troubleshooting guide; set OLLAMA_BASE_URL if Ollama runs on another server.
GPU not used
Use the :cuda or :ollama image with --gpus all and the NVIDIA Container Toolkit.
Updating
Follow the updating guide in the docs.
Alternatives
Similar AI repositories
ollama
ollama
Run open models like Gemma, Qwen and DeepSeek on your own machine with a single command.
llama.cpp
ggml-org
Fast LLM inference in plain C/C++, from laptops to servers.
NextChat
ChatGPTNextWeb
Chat app for talking to many AI models like GPT, Claude and Gemini on web, desktop and mobile.
LlamaFactory
hiyouga
Toolkit for fine-tuning many open language and vision-language models with one unified interface.