Back to services

HuggingFace Chat UI

The open source codebase powering HuggingChat

View alternatives to HuggingFace Chat UI
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We couldn't fetch the official website this time, so the following was written based on existing knowledge of the project. Some details may change between versions, so please refer to the official repository and documentation.

Overview

HuggingFace Chat UI is an open-source chat interface from Hugging Face, and it's what HuggingChat (huggingface.co/chat) runs on. You can chat for free with a variety of popular open-source models directly on HuggingChat, or deploy Chat UI on your own server and connect it to the models and inference backends of your choice.

Key Features

  • Multi-model chat: Offers a ChatGPT-like conversation interface where you can switch between multiple models.
  • Support for multiple inference backends: Works with Hugging Face inference services, Text Generation Inference (TGI), and OpenAI API-compatible services (such as vLLM, llama.cpp server, Ollama, etc.).
  • Conversation management: Save, browse, and manage your chat history.
  • Custom assistants: On HuggingChat, users can set a system prompt for a model to create a dedicated assistant and share it.
  • Extended capabilities: Some versions support web search, tool calling, multimodal input, and more. Refer to the current version for specifics.

Target Users and Use Cases

  • Everyday users who want to try various open-source large language models for free
  • Teams and companies that want to set up an AI chat service on an internal network or in a private environment
  • Developers and researchers who need a ready-made frontend to showcase or test their own models

Core Strengths

  • Fully open source: The code is hosted on GitHub (huggingface/chat-ui), and you're free to modify it and build on it.
  • Production-proven: HuggingChat itself runs on this codebase.
  • Flexible backends: Connects to both local models and cloud inference services, with no lock-in to a specific vendor.
  • Control over your data: When self-hosting, conversation data is stored in your own database.

Deployment

  1. Clone the huggingface/chat-ui repository from GitHub.
  2. Configure the model endpoints, API keys, MongoDB connection URL, and more in the .env.local file.
  3. Install dependencies with Node.js and run the app (e.g. npm install, npm run dev), or deploy using the official Docker image.

Technical Requirements

  • Tech stack: SvelteKit, TypeScript
  • Data storage: MongoDB, used to store conversations and user data
  • Runtime environment: Node.js or Docker
  • Inference backend: A working model inference service (local or remote) is required

Things Worth Noting

  • If you'd rather not deploy it yourself, you can use it directly at huggingface.co/chat by signing in with a Hugging Face account.
  • There are quite a few configuration options, so before self-hosting it's a good idea to read the official README to understand how to specify each type of endpoint.