open-webui
FreeNo executable scriptsNot checkedOpen WebUI is a self-hosted web chat interface for local and cloud language models that connects to Ollama and any OpenAI-compatible API. Use when a user asks…
by TerminalSkills★ 221 GitHub starsAbout this skill
Open WebUI — Self-hosted chat interface for local and cloud models
Overview
Open WebUI puts a multi-user chat interface, knowledge bases (RAG), custom models and tools in front of Ollama and OpenAI-compatible backends. People chat in the browser. An agent deploys the container, sets connections and security through environment variables, creates the first admin account without a browser, drives the HTTP API for chat, files and knowledge bases, keeps model definitions in version control, and handles updates and backups.
Instructions
Installation
# Docker: UI on http://localhost:3000, data in the named volume open-webui
export WEBUI_SECRET_KEY="$(openssl rand -hex 32)" # generate once and keep it
docker run -d -p 3000:8080 \
--add-host=host.docker.internal:host-gateway \
-v open-webui:/app/backend/data \
-e WEBUI_SECRET_KEY="$WEBUI_SECRET_KEY" \
--name open-webui --restart always \
ghcr.io/open-webui/open-webui:main
curl -s http://localhost:3000/health
# {"status":true}
# Python package: UI on http://localhost:8080
pip install open-webui
DATA_DIR="$HOME/.open-webui" open-webui serve --port 8080
| Image tag | Use |
|---|---|
:main |
Standard image, rolling build of the main branch (:latest is the same image) |
:v0.11.4 |
Pinned release; use pinned tags in production |
:slim |
Small image without local embedding, speech and document-extraction runtimes |
:cuda |
Nvidia GPU support for the built-in embedding and speech models; add --gpus all |
:ollama |
Bundles Ollama in the same container; add -v ollama:/root/.ollama |
:dev |
Pre-release build; give it its own volume and port |
Deploy with Docker Compose
# docker-compose.yml
services:
open-webui:
image: ghcr.io/open-webui/open-webui:v0.11.4
container_name: open-webui
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
extra_hosts:
- host.docker.internal:host-gateway
environment:
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
- WEBUI_ADMIN_EMAIL=${WEBUI_ADMIN_EMAIL}
- WEBUI_ADMIN_PASSWORD=${WEBUI_ADMIN_PASSWORD}
- OLLAMA_BASE_URL=http://host.docker.internal:11434
- ENABLE_API_KEYS=True
restart: unless-stopped
volumes:
open-webui:
printf 'WEBUI_SECRET_KEY=%s\nWEBUI_ADMIN_EMAIL=%s\nWEBUI_ADMIN_PASSWORD=%s\n' \
"$(openssl rand -hex 32)" "[email protected]" "$(openssl rand -hex 16)" > .env
chmod 600 .env
docker compose up -d
docker compose logs --tail 50 open-webui
WEBUI_ADMIN_EMAIL and WEBUI_ADMIN_PASSWORD create the administrator on the first start of an empty database and switch sign-up off. Without them, the first person who opens the page and registers becomes the administrator.
Connect model backends
| Variable | Default | Purpose |
|---|---|---|
OLLAMA_BASE_URL |
http://host.docker.internal:11434 in Docker |
Ollama server; OLLAMA_BASE_URLS takes several, separated by ; |
OPENAI_API_BASE_URL |
https://api.openai.com/v1 |
Any OpenAI-compatible server; OPENAI_API_BASE_URLS for several |
OPENAI_API_KEY |
none | Key for that server; OPENAI_API_KEYS takes several, separated by ; |
ENABLE_OLLAMA_API, ENABLE_OPENAI_API |
True |
Switch a backend type off |
# environment entries for llama.cpp, vLLM or LiteLLM on the host; the URL must end in /v1
- OPENAI_API_BASE_URL=http://host.docker.internal:8080/v1
- OPENAI_API_KEY=${LLAMA_API_KEY}
If the container cannot reach a service on the host, run it with --network=host and -e OLLAMA_BASE_URL=http://127.0.0.1:11434; the UI then listens on port 8080 instead of 3000.
Other settings
| Variable | Default | Purpose |
|---|---|---|
WEBUI_SECRET_KEY |
generated | Signs sessions and encrypts stored secrets; a new value signs everyone out |
ENABLE_SIGNUP |
True |
Account creation; disabled automatically after the first user registers |
DEFAULT_USER_ROLE |
pending |
Role for new accounts: pending, user or admin |
ENABLE_API_KEYS |
False |
Allows API keys to be created and used |
ENABLE_PERSISTENT_CONFIG |
True |
False makes environment variables win over values saved in the admin panel |
CORS_ALLOW_ORIGIN |
* |
Allowed origins, separated by ;; set it to the real URLs behind a proxy |
DATABASE_URL |
sqlite:///${DATA_DIR}/webui.db |
SQLite or PostgreSQL connection URL |
OFFLINE_MODE |
False |
No update checks and no model downloads |
ENV |
prod in Docker |
dev serves the Swagger UI at /docs |
Many settings, including the connection URLs, ENABLE_SIGNUP and ENABLE_API_KEYS, are persistent: after the first start the value stored in the database wins over the environment variable.
Get an API key
API keys must be enabled (ENABLE_API_KEYS=True). A user creates the key under Settings → Account. On a headless server, sign in with the admin credentials and request the key over the same endp
Install open-webui in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the open-webui skill do?
Open WebUI is a self-hosted web chat interface for local and cloud language models that connects to Ollama and any OpenAI-compatible API. Use when a user asks to install or deploy Open WebUI with Docker or pip, connect Open WebUI to Ollama, llama.cpp, vLLM or OpenAI, configure it with environment variables, create the admin account without a browser, call the Open WebUI API for chat completions or RAG, upload files to a knowledge base, export or sync custom models, or update and back up an Open WebUI instance.
How do I install the open-webui skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the open-webui skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic