Description
Chat UI is the open source codebase behind HuggingChat, a chat interface for large language models. It is a SvelteKit app that you can run yourself to build a chat front end for your own models. The project only speaks to OpenAI-compatible APIs, which you connect through the OPENAI_BASE_URL setting and the /models endpoint. That means any service with an OpenAI-style protocol can be used, including the Hugging Face Inference Providers router, llama.cpp server, Ollama and OpenRouter. The quickstart creates a .env.local file with the base URL and an API key for the provider you pick, and the README includes a table of example settings for each one. For storage, you can use a managed MongoDB Atlas database or run MongoDB in a local container, and the README shows the setup for each. The project also includes an optional Docker image, a list of extra parameters, and build instructions. Provider-specific features from earlier versions, such as the legacy MODELS variable and GGUF discovery, have been removed, and the older version is kept on a legacy branch. The codebase is useful for teams that want a self-hosted chat interface that works with whichever OpenAI-compatible model server they run.…
Highlights
- SvelteKit chat interface for LLMs
- Works with any OpenAI-compatible API
- MongoDB Atlas or local MongoDB storage
- Optional Docker image
Ratings & Reviews
No ratings yet
Be the first to rate Chat UI.
People also visit
Chat UI FAQ
What is Chat UI?
It is the open source codebase that powers HuggingChat, a chat interface for language models, built with SvelteKit.
Which model servers does it support?
Any OpenAI-compatible API, set through OPENAI_BASE_URL. The README names the Hugging Face Inference Providers router, llama.cpp server, Ollama and OpenRouter.
What do I need to start?
Create a .env.local file with the base URL and API key for your provider, then follow the quickstart and launch steps.
Which database does it use?
MongoDB. You can use MongoDB Atlas, a managed service, or run MongoDB in a local container.
Can I run it with Docker?
Yes. The README describes an optional Docker image.
Where is the older version?
The old version with the provider-specific features is kept on the legacy branch.
What are the best Chat UI alternatives?
Popular alternatives to Chat UI include LibreChat, overtchat and Open WebUI. See all Chat UI alternatives
