Open WebUI puts 250+ models in one window: how to run your own gateway in Docker
There are plenty of AI models, but chats with them are scattered across different websites and subscriptions. Open WebUI is an open interface on your own server that brings all models into one window with shared history. The Habr guide launches it in Docker (a container that packages the application) with a single command and connects it to the BotHub aggregator, which offers 250+ models including GPT, Claude, and Gemini. If you work with models every day, the setup pays off; a couple of requests a week is fine with a regular website.
AI-processed from Habr AI; edited by Hamidun News
The number of AI models keeps growing, but working with them is not getting any easier: the workday turns into a tour of services. You write code in one service, process a long document in another, and compare answers in a third. Meanwhile, conversation history sits on someone else's servers, and it is hard to move it anywhere.
Claude and Gemini can import memory about a user, but almost nowhere can you export it back. The solution a recent Habr article walks through is Open WebUI. It is an interface you install on your own computer or server.
It connects to any model through an OpenAI-compatible API (a standard request format that nearly all providers understand) or to a local Ollama. The example uses BotHub as the gateway: an aggregator offering 250+ models (GPT, Claude, Gemini, GLM, Kimi) with a single payment in rubles and no VPN required. Everything runs through Docker, a container that packages the application, so you do not need to install it manually.
What it is and how it differs from alternatives
The project began in 2023 under the name Ollama WebUI: developer Timothy Baek wrote a web interface for local Ollama. When the interface learned to work with any OpenAI-compatible API, it was renamed Open WebUI. According to the article, it is now the largest project in its niche: 488+ million downloads, 159 thousand stars on GitHub, and regular releases (v0.13.4 is dated November 19, 2026).
Competitors: LibreChat is close to the classic ChatGPT interface and suits those who want minimal features. LobeChat focuses on plugins and personas. TypingMind is proprietary and paid. Open WebUI wins on development speed and a community that provides ready-made models, skills, and functions. All chats with all models live in one place, with full-text search across past conversations. It also offers RAG (answers based on your documents), a knowledge base, sync with local folders, Python functions, web search, and an offline mode.
There is a caveat about the license. Since April 2025, the project has moved away from pure open source: you can use it freely, but when deploying it for more than 50 users, rebranding is prohibited. For a personal instance or a small team, there are no restrictions.
Installation and connecting the gateway
The main route is Docker. Two points matter. First, the volume -v open-webui:/app/backend/data holds users, chats, documents, and keys, and deleting the container together with the volume will erase all history. Second, it is better to set WEBUI_SECRET_KEY manually. Otherwise, recreating the container generates a new encryption key, and saved sessions and access tokens will stop decrypting.
For image tags, the choice is as follows. :main is the full image with built-in embeddings (converting text into numbers for search) and speech recognition, about 900 MB. :slim is about 197 MB and roughly 300 MiB of RAM at idle, but embeddings and voice must be moved to external services. For an interface on top of a cloud gateway, the author considers :slim reasonable on resources and :main for simplicity. There is also :cuda for GPU and :ollama with locally bundled models. You can also avoid Docker by using pip on Python 3.11+ or uvx. The first registered user automatically becomes the administrator.
Connection: Admin Panel → Settings → Connections → Add Connection, with the URL https://openai.bothub.chat/v1 and the key from the "For developers" section. It is worth checking the key beforehand with a single curl request. If the Verify Connection button fails with 400/401/403, this does not mean the gateway is incompatible: many providers do not implement the /models endpoint. In that case, add models manually through the Model IDs field. The same list is useful as an allowlist, so that only the working set remains in the selector.
Where tokens are saved
Tokens are pieces of text for which the provider charges money. The article's most practical advice concerns background tasks. Open WebUI constantly calls the model for chat titles, tags, suggestions, and rewriting of search queries. By default, the same model you are chatting with does this work. Three words for a title from an expensive model like Opus cost real money for a trivial task.
In Settings → Interface → Tasks, set the External Task Model field to a fast, cheap model without a reasoning mode, such as gpt-6-luna or deepseek-v4-flash. Reasoning models spend tokens on thinking as well. In Task Model Parameters, the author recommends explicitly setting {"max_tokens": 4000, "temperature": 0.3}: specifying these parameters removes the built-in 1000-token limit for titles.
For RAG, Settings → Documents lets you configure the chunk size (512 tokens by default), overlap, and the embedding model. Changing these parameters triggers re-chunking and re-embedding of all uploaded files. On :slim, the Knowledge Base will need an external embedding service.
Among the scenarios: Open Terminal lets you run CLI agents such as Claude Code and Codex through the ACP protocol (native support, according to the article, since version 0.17 from November 2026). Agent chats can be shared and scheduled, and the PWA installed from the browser can serve as a mobile client.
Security and limitations
Open WebUI does not terminate TLS itself. An instance exposed to the internet must sit behind a reverse proxy with HTTPS (Nginx, Caddy, HAProxy) and with WEBUI_SESSION_COOKIE_SECURE=true, which defaults to false. Offline mode is possible, but only if you do not need external models, search, or embeddings.
The author notes that if you need a neural network a couple of times a week, a regular website is simpler. A custom interface pays off with daily work across several models. It is also worth noting that the article uses BotHub with a referral link as its example, but the scheme works with any OpenAI-compatible gateway.
- Nov 24, 2026OpenAI Lets Open-Source Apps Run on ChatGPT Subscription Limits
- Nov 24, 2026OpenAI rolls GPT-6.2 out to regular ChatGPT: image understanding jumps from 47.4% to 71.7%
- Nov 24, 2026Telegram 13.3 Can Now Transcribe Voice on the Phone: 5.47% Word Error Rate in Russian
- Nov 24, 2026The LLM bot's usage log showed zero tokens everywhere, while a gpt-5-mini conversation cost 1–3 cents
Key Questions Answered
What it is and how it differs from alternatives?
The project began in 2023 under the name Ollama WebUI: developer Timothy Baek wrote a web interface for local Ollama. When the interface learned to work with any OpenAI-compatible API, it was renamed Open WebUI. According to the article, it is now the largest project in its niche: 488+ million downloads, 159 thousand stars on GitHub, and regular releases (v0.13.4 is dated November 19, 2026). Competitors: LibreChat is close to the classic ChatGPT interface and suits those who want minimal features.
What are the key details on Installation and connecting the gateway?
The main route is Docker. Two points matter. First, the volume -v open-webui:/app/backend/data holds users, chats, documents, and keys, and deleting the container together with the volume will erase all history. Second, it is better to set WEBUI_SECRET_KEY manually. Otherwise, recreating the container generates a new encryption key, and saved sessions and access tokens will stop decrypting. For image tags, the choice is as follows.
Where tokens are saved?
Tokens are pieces of text for which the provider charges money. The article's most practical advice concerns background tasks. Open WebUI constantly calls the model for chat titles, tags, suggestions, and rewriting of search queries. By default, the same model you are chatting with does this work. Three words for a title from an expensive model like Opus cost real money for a trivial task.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.