ReleaseCode / SDK · ActionableHabr AI→ original

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
Open WebUI puts 250+ models in one window: how to run your own gateway in Docker
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Theslim image is about 197 MB and roughly 300 MiB of RAM; the full :main image is around 900 MB
Key metric #2Without your own WEBUI_SECRET_KEY, sessions break after the container is recreated
Key metric #3Background chat titles are better handled by a cheap model rather than Opus

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.

Story

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.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

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.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…