selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

chat-ui logo

Self-host chat-ui

v0.10.0

Open-source LLM chat front-end for OpenAI-compatible APIs

ReleaseOpen SourceApache-2.0
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
Updated4 months ago
LanguageTypescript
Setup difficultyEasy
Stars
11 033
Port
3000 (Chat UI web app inside the container (docker run -p 3000:3000))
Docker
ghcr.io/huggingface/chat-ui

What is chat-ui?

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

How to install chat-ui

Install chat-ui with Docker

Environment variables
OPENAI_BASE_URL, OPENAI_API_KEY, MONGODB_URL
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

Pre-built images: chat-ui-db bundles MongoDB, plain chat-ui needs MONGODB_URL; --env-file .env.local is supported

How to configure chat-ui

  • OPENAI_BASE_URLhttps://router.huggingface.co/v1Models ### Models are sourced exclusively from an OpenAI-compatible base URL. Example: https://router.huggingface.co/v1
  • OPENAI_API_KEYCanonical auth token for any OpenAI-compatible provider
  • MONGODB_URLMongoDB ###
  • MONGODB_DB_NAMEchat-ui
  • PUBLIC_APP_NAMEChatUIPublic app configuration ##

chat-ui releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in AI Chat

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…