Open WebUI: Self-hosted ChatGPT-Erlebnis vor Ollama oder OpenAI-kompatiblen APIs
Open WebUI ist die am weitesten verbreitete Chat-Oberfläche für Teams, die ein ChatGPT-ähnliches Erlebnis mit Daten im eigenen Haus verbinden will. Sie sitzt vor Ollama oder beliebigen OpenAI-kompatiblen APIs wie vLLM oder llama.cpp und ergänzt Nutzerkonten und Konversationsverwaltung.

Veröffentlicht am 23. Nov • Ursprünglich veröffentlicht auf span.observer
Das selbst gehostete Open WebUI ist die am weitesten verbreitete Chat-Oberfläche, um einem Team eine ChatGPT-ähnliche Erfahrung zu bieten und die Daten dabei im eigenen Haus zu behalten. Es liegt vor Ollama oder jeder OpenAI-kompatiblen API, etwa einem vLLM- oder llama.cpp-Server, und ergänzt das, was einer nackten Inference-Engine fehlt: Benutzerkonten, Konversationsverlauf, Dokumentenverwaltung und Modellauswahl.
Es ist eines der meistbeobachteten Open-Source-Projekte auf GitHub in seinem Bereich und häufig der erste sichtbare Baustein einer internen KI-Plattform. Diese Sichtbarkeit hat eine unmittelbare Konsequenz für Betriebsteams: Wenn die Oberfläche langsam ist, können Benutzer nicht unterscheiden, ob das Problem im Browser, in der Anwendung, in der Dokumentsuche oder im Modell liegt. Man muss das schnell beantworten können.
Wir betrachten, was Open WebUI bietet, wie man es in wenigen Minuten mit Docker installiert und anschließend überwacht: Logs, Health-Probe, OpenTelemetry-Export und Korrelation mit der Inference-Engine in einem Tool wie Dynatrace.
Open WebUI ist eine Webanwendung (Python-Backend, Svelte-Frontend), die Folgendes bereitstellt:
Zu beachtende Grenzen: Open WebUI ist keine Inference-Engine. Seine Leistung hängt vom Modell-Backend ab und, im Fall von RAG, vom Embedding-Modell und dem Vector Store. Außerdem hat sich die Lizenz über die Versionen hinweg geändert und enthält eine Klausel zum Branding: Vor einem groß angelegten oder White-Label-Deployment sollte man sie lesen.
Der einfachste Fall ist ein Ollama, das auf dem Host auf Port 11434 läuft. Unsere Anleitung Ollama lokal beschreibt die Installation. Prüfen, ob es antwortet:
curl -s http://localhost:11434/api/tags Vollbildmodus öffnen Vollbildmodus verlassen Schritt 2: Den Container starten Die offizielle Dokumentation schlägt einen Befehl wie diesen vor, der die Oberfläche auf Port 3000 veröffentlicht und die Daten in einem Volume hält:
docker run -d --name open-webui --restart always \ -p 3000:8080 \ --add-host=host.docker.internal:host-gateway \ -e OLLAMA_BASE_URL = http://host.docker.internal:11434 \ -v open-webui:/app/backend/data \ ghcr.io/open-webui/open-webui:main Vollbildmodus öffnen Vollbildmodus verlassen Es gibt weitere Image-Varianten (mit gebündeltem Ollama, mit CUDA-Unterstützung). Eine Installation mit pip ist ebenfalls möglich. Die genauen Tags und Befehle stehen in der Open-WebUI-Dokumentation.
Öffne http://localhost:3000: das zuerst erstellte Konto wird zum Administrator. Prüfe in den Admin-Einstellungen die Verbindung zu Ollama, wähle aus, welche Modelle sichtbar sind, und lege fest, ob neue Registrierungen offen, genehmigungspflichtig oder geschlossen sind.
Um einen vLLM- oder llama.cpp-Server anzubinden, füge in den Admin-Einstellungen eine OpenAI-Verbindung hinzu oder übergib URL und Schlüssel beim Start:
-e OPENAI_API_BASE_URL = http://vllm.interne:8000/v1 \ -e OPENAI_API_KEY = vllm-server-key Vollbildmodus öffnen Vollbildmodus verlassen Die von diesem Server bereitgestellten Modelle erscheinen dann neben denen von Ollama. Zur Serverseite siehe vLLM in production.
Für die gemeinsame Nutzung lege einen stabilen Secret Key für Sitzungen fest (die Variable WEBUI_SECRET_KEY), stelle die Anwendung hinter einen TLS-Reverse-Proxy, binde die Unternehmens-Authentifizierung an (OIDC wird unterstützt) und ziehe PostgreSQL anstelle der Standarddatenbank SQLite in Betracht. Sichere das Datenvolume: es enthält Konten, Konversationen und Dokumente.
Das Backend stellt einen Endpunkt /health bereit, den eine Kubernetes-Probe, ein Docker-Healthcheck oder ein HTTP-Synthetic-Monitor nutzen kann. Ein Browser-Monitor, der sich anmeldet und eine Konversation öffnet, testet zusätzlich die echte User Journey.
docker logs -f open-webui Vollbildmodus öffnen Vollbildmodus verlassen Der Detailgrad wird über Umgebungsvariablen gesetzt (ein globales Level und Levels pro Komponente). Die Logs zeigen Aufrufe an die Modell-Backends, Verbindungsfehler und die Dokumentverarbeitung für RAG. Vermeide das Debug-Level in Produktion: Es kann Auszüge von Konversationen enthalten.
Neuere Versionen von Open WebUI enthalten eine OpenTelemetry-Instrumentierung, die über Umgebungsvariablen aktiviert wird: ein allgemeiner Aktivierungsschalter, dann je ein Schalter pro Signal (Traces, Metriken, Logs, standardmäßig alle aus) und der Standard-OTLP-Endpunkt. Ein beispielhafter Ansatz, den man mit der Seite « Observability » der Dokumentation abgleichen sollte:
-e ENABLE_OTEL = true \ -e ENABLE_OTEL_TRACES = true \ -e OTEL_EXPORTER_OTLP_ENDPOINT = http://otel-collector:4317 \ -e OTEL_SERVICE_NAME = open-webui Vollbildmodus öffnen Vollbildmodus verlassen Man erhält Spans für die HTTP-Anfragen des Backends und dessen ausgehende Aufrufe (Datenbank, HTTP-Client Richtung Modelle). Emitiert auch die Inference-Engine Traces, wie es vLLM tut, ermöglicht die W3C-Kontextweitergabe, einer Frage von der Oberfläche bis zur GPU zu folgen.
Der OpenTelemetry Collector empfängt die Traces von Open WebUI und sendet sie an den Dynatrace-OTLP-Endpunkt mit einem API-Token. Parallel sammelt OneAgent oder der Collector die Container-Logs und Host-Metriken, und die Metriken des Modell-Backends gelangen über ihren eigenen Weg hinein. In den Distributed Traces kann man dann die Zeit in der Anwendung, in der Dokumentsuche und in der Generierung trennen. Die Methode entspricht der aus unserem Artikel end-to-end OpenTelemetry, angewendet auf eine KI-User-Journey.
Nützliche Indikatoren: Verfügbarkeit von /health, Latenz der Chat-Anfragen, Fehlerrate gegenüber jedem Modell-Backend, Dauer der Dokumentindizierung, Anzahl aktiver Benutzer.
Ja. Man konfiguriert einfach eine oder mehrere Verbindungen zu OpenAI-kompatiblen APIs (vLLM, llama.cpp, ein gehosteter Dienst); Ollama ist optional.
Ja, Open WebUI unterstützt OIDC und weitere in der Dokumentation beschriebene Mechanismen sowie ein Gruppen- und Rechtemanagement.
Neuere Versionen tun dies über Umgebungsvariablen. Prüfe die genauen Namen in der Dokumentation deiner Version.
Open WebUI verwandelt eine Inference-Engine in einen Dienst, den ein ganzes Team nutzen kann. Es ist auch der Ort, an dem Benutzer Probleme zuerst bemerken: Instrumentiere es ab dem ersten Tag und verknüpfe es mit der Modell-Engine, damit bekannt ist, wo die Zeit vergeht. Um den gesamten Stack zusammenzustellen, lies unseren Vergleich selbst gehosteter Open-Source-KI-Stacks.
span.observer ist ein unabhängiger Community-Blog, der weder mit Dynatrace LLC noch mit den genannten Projekten verbunden ist. Marken gehören ihren jeweiligen Eigentümern. Werkzeuge ändern sich schnell: Prüfe Befehle und Optionen in der offiziellen Dokumentation.
Ursprünglich veröffentlicht auf span.observer. Französische Version: https://span.observer/fr/open-webui-chatgpt-auto-heberge/.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
Posted on Nov 23 • Originally published at span.observer
Self-hosted Open WebUI is the most widely used chat interface for giving a team a ChatGPT-like experience while keeping data in-house. It sits in front of Ollama or any OpenAI-compatible API, such as a vLLM or llama.cpp server, and adds what a bare inference engine lacks: user accounts, conversation history, document management and model selection.
It is one of the most-followed open source projects on GitHub in its field, and it is often the first visible building block of an internal AI platform. That visibility has a direct consequence for operations teams: when the interface is slow, users cannot tell whether the problem lies in the browser, the application, the document search or the model. You need to be able to answer quickly.
Let’s look at what Open WebUI offers, how to install it in a few minutes with Docker, and then how to monitor it: logs, health probe, OpenTelemetry export and correlation with the inference engine in a tool such as Dynatrace.
Open WebUI is a web application (Python backend, Svelte frontend) that provides:
Limits to keep in mind: Open WebUI is not an inference engine. Its performance depends on the model backend and, for RAG, on the embedding model and the vector store. Its licence has also changed across versions, with a clause on branding: read it before a large-scale or white-label deployment.
The simplest case is Ollama running on the host, on port 11434. Our guide Ollama locally describes how to install it. Check that it responds:
curl -s http://localhost:11434/api/tags Enter fullscreen mode Exit fullscreen mode Step 2 — Start the container The official documentation suggests a command like this one, which publishes the interface on port 3000 and keeps the data in a volume:
docker run -d --name open-webui --restart always \ -p 3000:8080 \ --add-host=host.docker.internal:host-gateway \ -e OLLAMA_BASE_URL = http://host.docker.internal:11434 \ -v open-webui:/app/backend/data \ ghcr.io/open-webui/open-webui:main Enter fullscreen mode Exit fullscreen mode Other image variants exist (with Ollama bundled, with CUDA support). Installing with pip is also possible. The exact tags and commands are in the Open WebUI documentation.
Open http://localhost:3000: the first account created becomes the administrator. In the admin settings, check the connection to Ollama, choose which models are visible and decide whether new sign-ups are open, pending approval or closed.
To connect a vLLM or llama.cpp server, add an OpenAI connection in the admin settings, or pass the URL and key at start-up:
-e OPENAI_API_BASE_URL = http://vllm.interne:8000/v1 \ -e OPENAI_API_KEY = vllm-server-key Enter fullscreen mode Exit fullscreen mode The models exposed by that server then appear alongside Ollama’s. See vLLM in production for the server side.
For shared use, set a stable secret key for sessions (the WEBUI_SECRET_KEY variable), put the application behind a TLS reverse proxy, connect corporate authentication (OIDC is supported) and consider PostgreSQL instead of the default SQLite database. Back up the data volume: it holds accounts, conversations and documents.
The backend exposes a /health endpoint that a Kubernetes probe, a Docker healthcheck or an HTTP synthetic monitor can use. A browser monitor that logs in and opens a conversation also tests the real user journey.
docker logs -f open-webui Enter fullscreen mode Exit fullscreen mode The level of detail is set through environment variables (a global level and per-component levels). The logs show calls to the model backends, connection errors and document processing for RAG. Avoid debug level in production: it can contain extracts of conversations.
Recent versions of Open WebUI include OpenTelemetry instrumentation, enabled through environment variables: a general enable flag, then one flag per signal (traces, metrics, logs, all off by default) and the standard OTLP endpoint. An indicative example, to check against the « Observability » page of the documentation:
-e ENABLE_OTEL = true \ -e ENABLE_OTEL_TRACES = true \ -e OTEL_EXPORTER_OTLP_ENDPOINT = http://otel-collector:4317 \ -e OTEL_SERVICE_NAME = open-webui Enter fullscreen mode Exit fullscreen mode You get spans for the backend’s HTTP requests and its outbound calls (database, HTTP client towards the models). If the inference engine also emits traces, as vLLM does, W3C context propagation lets you follow a question from the interface all the way to the GPU.
The OpenTelemetry Collector receives Open WebUI’s traces and sends them to the Dynatrace OTLP endpoint with an API token. In parallel, OneAgent or the Collector gathers the container logs and host metrics, and the model backend’s metrics arrive through their own path. In the distributed traces you can then separate the time spent in the application, in document search and in generation. The method is the one from our article end-to-end OpenTelemetry, applied to an AI user journey.
Useful indicators: /health availability, chat request latency, error rate towards each model backend, document indexing time, number of active users.
Yes. You just configure one or more connections to OpenAI-compatible APIs (vLLM, llama.cpp, a hosted service); Ollama is optional.
Yes, Open WebUI supports OIDC and other mechanisms described in its documentation, as well as group and permission management.
Recent versions do, through environment variables. Check the exact names in the documentation for your version.
Open WebUI turns an inference engine into a service a whole team can use. It is also the first place where users notice a problem: instrument it from day one and link it to the model engine so you know where the time goes. To assemble the whole stack, read our comparison of self-hosted open source AI stacks.
span.observer is an independent community blog, not affiliated with Dynatrace LLC or with the projects mentioned. Trademarks belong to their respective owners. Tools change quickly: check commands and options in their official documentation.
Originally published on span.observer. French version: https://span.observer/fr/open-webui-chatgpt-auto-heberge/.