Self-host chat-ui
v0.10.0Open-source LLM chat front-end for OpenAI-compatible APIs
docker run -p 3000:3000 -e OPENAI_BASE_URL=https://router.huggingface.co/v1 -e OPENAI_API_KEY=hf_*** -v chat-ui-data:/data ghcr.io/huggingface/chat-ui-db- Stars
- 11 033
- Port
- 3000 (Chat UI web app inside the container (docker run -p 3000:3000))
ghcr.io/huggingface/chat-uiWhat is chat-ui?
Chat UI is the Apache-2.0, SvelteKit-based web front-end for chatting with large language models, and it is what runs behind HuggingChat on huggingface.co/chat. Instead of bundling per-vendor connectors it talks exclusively to endpoints that speak the OpenAI protocol: it pulls the available model list from that endpoint's own models route, so llama.cpp servers, Ollama, OpenRouter, Poe or Hugging Face's hosted router all work by pointing OPENAI_BASE_URL and OPENAI_API_KEY at them. Chatting is extended by MCP tool calling (admin-defined base servers plus servers users add from the UI), an "Omni" virtual model that routes each message with a local heuristic across default, multimodal and agentic routes with fallbacks, vision input on capable models, Whisper voice input, LLM-written conversation titles, personal data export, an optional Prometheus metrics endpoint and re-branding knobs for name, logos and description. Human login is an anonymous browser session unless you wire in OpenID Connect, where email and domain allowlists can gate access. Self-hosting is covered by docs for running from source with npm, for two GHCR containers (one with MongoDB baked in, one needing an external database), and for a Helm chart that its own docs call unstable. Conversation data, accounts, settings and stats go to MongoDB 6 or 7, while unset MONGODB_URL means an embedded database writing to ./db. Local GGUF inference, embeddings and built-in search helpers were dropped from this codebase; the previous design lives on a legacy branch.
Should you self-host chat-ui?
chat-ui scores 73/100 on selfhost.directory (how scoring works) and ranks #8 of 68 in AI Chat. It has 11 033 GitHub stars, +57 in the last 30 days.
It shipped 2 stable releases in the past year. The latest, v0.10.0, came out on 11 May 2026. New versions land roughly every 4 months.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is LibreChat (85/100, 47 106 stars). It scores higher overall, so compare the two before you pick. See chat-ui vs LibreChat side by side.
Features
- Automatic conversation titles
- Automatic model routing (Omni)Optional, needs a routes policy JSON
- Custom Branding
- Email/domain access restriction
- Embedded database fallbackdevelopment convenience
- Image input (multimodal)
- MCP tool calling
- ML Intern experimental modedescribed as experimental; needs Hugging Face Hub account/billing and Jobs
- OpenAI-compatible model backends
- Per-model capability overrides
- Prometheus Metrics
- User data export
- Voice Inputoff unless TRANSCRIPTION_MODEL is set
chat-ui README
A chat interface for LLMs. It is a SvelteKit app and it powers the HuggingChat app on hf.co/chat.
More in AI Chat
chat-with-gptAn open-source ChatGPT app with a voice
claude-code-slackSelf-hosted bridge connecting Slack to a local Claude Code CLI — no API costs, uses your Anthropic subscription.
ClawAppSelf-hosted open-source mobile chat client that proxies any phone browser to your OpenClaw AI Gateway, with streaming replies, voice input and offline message cache.
clawdboss-dockerSelf-hosted Docker container running the Clawdboss wizard and OpenClaw gateway for AI agents on Discord, Telegram, or console with persistent config.
ClawFleetSelf-hosted fleet manager for OpenClaw and Hermes AI agents in Docker containers with a browser dashboard, using your own LLM API keys or ChatGPT subscription.
cloudflare-ai-webSelf-hosted, open-source chat frontend that turns Cloudflare Workers AI into a multi-model AI platform, with AI Gateway access to Gemini and password protection.
Companion SpaceSelf-hosted, open-source anime-style AI companion for learning with VRM 3D avatars, RAG-based document Q&A, and real-time voice chat.
copilot-unleashedSelf-hosted, open-source AI chat with every Copilot model, autopilot agents, live reasoning, voice I/O, and PWA support. Runs on your server via Docker or Azure.
cossistantSelf-hosted AI customer support platform with customizable agents that learn from your team, built for React and Next.js.
crowSelf-hosted agentic framework and MCP platform to build AI agents, connect clients like Claude Code as native MCP connectors, with persistent memory and P2P sharing.
CrustAICrustAI is a self-hosted AI assistant running locally via Ollama, connecting to messaging platforms with memory, voice, and REST API — no cloud.
datalineSelf-hosted, open-source AI tool to chat with data and generate SQL, charts, reports — supports PostgreSQL, MySQL, Snowflake, SQLite, CSV, Excel.
0 comments