Skip to content

chat-ui

SvelteKit chat interface for any OpenAI-compatible LLM endpoint, behind HuggingChat

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

62

Health

Active

Overview

Stars

11,050

Last commit

today

Nov 2026

Repository age

3 years

since Feb 2023

Latest version

v0.10.0

May 2026

Contributors

–

9 active in 90 days

Releases

2

last 12 months

Docker pulls

71k

huggingface/chat-ui

Language

TypeScript

Chat UI is a web chat interface for large language models. It is a SvelteKit app written in TypeScript, and it powers HuggingChat at hf.co/chat. You point it at any service that speaks the OpenAI protocol by setting an base URL and API key. That covers the Hugging Face Inference Providers router, llama.cpp server, Ollama, OpenRouter and Poe.

Chat history, users, settings, files and stats are stored in MongoDB 6 or 7. For local development you can leave the database URL unset, and it falls back to an embedded MongoDB that saves to a local folder. A Docker image is available, and an older version lives on a legacy branch.

The current version supports only OpenAI-compatible APIs. Provider-specific integrations, such as the old model variable, GGUF discovery and embeddings, were removed. It is Apache-2.0 licensed and actively maintained. It suits you as a self-hosted front end in place of ChatGPT's interface when you bring your own model backend.

Who it's for

Teams hosting their own LLM backend

It gives them a chat front end for llama.cpp or Ollama with stored history.

Skip if: You need built-in model serving; this is only the interface.

Developers using several API providers

One OpenAI-compatible setting connects it to OpenRouter, Poe or Hugging Face.

Skip if: Your provider has no OpenAI-compatible endpoint.

The problem it solves

Hosted chat apps tie you to one vendor's models and keep your conversations. Chat UI gives you a chat front end you run yourself, connected to whichever compatible model service you choose.

Strengths

  • Works with any OpenAI-compatible API, including llama.cpp, Ollama and OpenRouter
  • Same codebase that powers HuggingChat
  • Embedded MongoDB fallback makes local trials simple
  • Apache-2.0 license with active maintenance and 9 recent contributors

Trade-offs

  • Only OpenAI-compatible APIs are supported
  • Needs a MongoDB 6 or 7 deployment for production use
  • Provider-specific integrations and web-search helpers were removed

chat-ui replaces

Self-host chat-ui

Self-hostable
Yes
Docker image
huggingface/chat-ui
Docker Compose
The repository ships a Compose file
Hosted plan
From $9/month · pricing

Quick start

git clone https://github.com/huggingface/chat-ui
cd chat-ui
npm install
npm run dev -- --open

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Can I self-host it?

Yes. Clone the repo, set your environment file and run it, or use the Docker image.

Which models can it use?

Any service with an OpenAI-compatible API, such as llama.cpp server, Ollama, OpenRouter, Poe or Hugging Face Inference Providers.

What database does it need?

MongoDB 6 or 7. Without a URL set, it uses an embedded MongoDB for local development.

How is it licensed?

Apache-2.0.

Other ChatGPT alternatives

Compare all 9 ChatGPT alternatives →

Similar tools in AI chat interfaces

Open-WebUI

AI chat interfaces

Self-hosted chat platform for teams running local or cloud LLMs, including offline

159k 23k 6 days ago Thriving BSD-3-Clause

Replaces ChatGPTClaudeGrok

Leon

AI chat interfaces

Self-hosted personal AI assistant built on Node.js and Python, with a web app

18k 1.5k today Slowing MIT

NextChat

AI chat interfaces

Self-hostable web and desktop chat client for Claude, GPT, Gemini and DeepSeek models

89k 58k 35 days ago Slowing MIT

OpenAssistant

AI chat interfaces

Finished open chat-assistant project whose code and oasst2 dataset remain available

37k 3.3k 3 years ago Dormant Apache-2.0

Khoj

AI chat interfaces

Self-hostable AI assistant that answers from the web and your own documents

38k 2.6k 4 months ago Slowing AGPL-3.0

DeepTutor

AI chat interfaces

Self-hostable AI tutor that builds personalized learning from your documents

62k 7.5k yesterday Active Apache-2.0