Comprehensive reference for Open WebUI covering architecture, authentication (OAuth, LDAP, JWT), functions, pipelines, API, RAG, scaling, and debugging. Use for deployment, configuration, and writing custom functions or pipelines.
Ships in Open WebUI Architecture & Operations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill is a comprehensive reference for Open WebUI. It covers the architecture, all key subsystems and practical recipes.
open-webui/
├── backend/open_webui/ # Python backend (FastAPI)
│ ├── main.py # Application entry point
│ ├── env.py # Environment variables
│ ├── config.py # Application config
│ ├── routers/ # API routers (27+ modules)
│ ├── models/ # SQLAlchemy ORM models (23+ tables)
│ ├── socket/main.py # WebSocket (Socket.IO)
│ ├── utils/ # Utilities, helpers
│ └── apps/ # Auxiliary apps
├── src/ # SvelteKit frontend
│ ├── routes/ # Pages and routes
│ ├── lib/components/ # UI components
│ └── lib/apis/ # API clients
├── Dockerfile # Multi-stage build
├── docker-compose.yaml # Deployment with Ollama
└── pyproject.toml # Python dependencies (uv)
Open WebUI is a full-featured web interface for LLMs. Key characteristics:
OPENAI_API_BASE_URLS without separate validation.Depending on the question, open the matching reference file:
| Topic | File | When to read |
|---|---|---|
| Auth and access | references/auth.md | JWT, OAuth, LDAP, API keys, roles, permissions |
| Functions | references/functions.md | Creating filter/pipe/action, valves, code examples |
| Pipelines | references/pipelines.md | External processing services, how they differ from functions |
| API endpoints | references/api.md | Full list of routers and endpoints |
| Configuration | references/config.md | Environment variables, settings |
| Scaling | references/scaling.md | Production deploy, Redis, PostgreSQL, HA |
| Database | references/database.md | ORM models, tables, migrations |
| RAG and Knowledge | references/rag.md | Knowledge bases, embeddings, search |
| WebSocket | references/websocket.md | Realtime, Socket.IO, events |
| Debugging | references/troubleshooting.md | Common problems and fixes |
| Hidden features | references/hidden.md | Non-obvious features, Easter eggs, advanced settings |
# With Ollama (local models)
docker compose up -d
# Open WebUI only (external LLM provider)
docker run -d -p 3000:8080 \
-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
-v open-webui:/app/backend/data \
--name open-webui \
ghcr.io/open-webui/open-webui:<pinned-tag-or-digest>
# Backend
cd backend
pip install -e ".[dev]"
bash start.sh
# Frontend
npm install
npm run dev
On first start an administrator account is created. The first registered user automatically gets the admin role. To define the admin account in advance:
[email protected]
WEBUI_ADMIN_NAME=Admin
Open WebUI is a model aggregator. It connects to:
The admin can create "model cards" — custom wrappers with a system prompt, parameters and a base model.
These are two different extension mechanisms — details in references/functions.md and references/pipelines.md. In short:
Knowledge bases let models answer from uploaded documents:
Details in references/rag.md.
When writing code for Open WebUI (functions, pipelines, customization):
references/functions.md or references/pipelines.md first to understand the structurebackend/open_webui/functions/ if presentreferences/troubleshooting.mdWhen something breaks:
GLOBAL_LOG_LEVEL=DEBUGreferences/troubleshooting.md — common errors are collected therereferences/auth.mdreferences/rag.mdRussian version: references/README.ru.md.
agents/openai.yaml (opens in a new tab)references/README.ru.md (opens in a new tab)references/api.md (opens in a new tab)references/auth.md (opens in a new tab)references/config.md (opens in a new tab)references/database.md (opens in a new tab)references/functions.md (opens in a new tab)references/hidden.md (opens in a new tab)references/pipelines.md (opens in a new tab)references/rag.md (opens in a new tab)references/scaling.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/websocket.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/open-webui-guide:open-webui-guidefrom Open WebUI Architecture & Operations
npx claudepluginhub nordz0r/skills --plugin open-webui-guide