HuggingChat (chat-ui)
HuggingChat (chat-ui) is a app in the osFoundry community catalog. HuggingFace's open-source chat UI — the same code that powers huggingface.co/chat. Multi-conversation history, model picker, web search tool, image gen tool (via Stable Diffusion endpoint), and configurable system prompts. SQLite bundled (chat-ui-db variant), so no external MongoDB needed. Works with any OpenAI / TGI / Anthropic / Cohere / Mistral / HuggingFace Inference endpoint. The cleanest open-source chat UI Hugging Face ships.
Details
- Workspace: osfoundry
- Category: AI
- Pricing: Free
- Access: Community
Features
- Same UI as huggingface.co/chat — multi-conversation history, model picker, system prompts
- SQLite bundled (chat-ui-db variant) — no external MongoDB to provision
- Works with HuggingFace TGI / OpenAI / Anthropic / Cohere / Google Vertex / AWS Bedrock
- Web search tool (via SerpAPI / Serper / You.com keys) for current-info queries
- Image generation tool — plug in any Stable Diffusion endpoint
- OIDC multi-user mode — connect Auth0 / Keycloak / GitHub / Google for per-user accounts
Documentation
# HuggingChat (chat-ui)
## What's in the image
This is the `chat-ui-db` variant — same UI as huggingface.co/chat, but with SQLite bundled instead of requiring external MongoDB. Perfect for self-hosting without infrastructure.
## Default models
Out of the box, the UI ships with a few default HuggingFace Inference endpoints (free tier, rate-limited). Set `HF_TOKEN` to use your account quota.
## Custom models (MODELS env)
Set `MODELS` to a JSON array like:
```json
[{
"name": "meta-llama/Llama-3.1-8B-Instruct",
"endpoints": [{
"type": "tgi",
"url": "https://my-tgi.example.com"
}]
}]
```
Supported endpoint types: `tgi` (HuggingFace Text Generation Inference), `openai`, `anthropic`, `cohere`, `vertex` (Google), `aws`. See [chat-ui docs](https://github.com/huggingface/chat-ui#configuration).
## Web search
Set `SERPAPI_KEY` (or `SERPER_API_KEY` / `YDC_API_KEY` for You.com) and the UI grows a 'Search' tool — model can browse the web for current info.
## Multi-user
With `OPENID_CONFIG` (point at a OIDC provider) you get accounts + per-user history. Without it, history is anonymous-per-browser-cookie.
## Storage
SQLite at `/data/db.sqlite`. Conversations + user data persist across container restarts. 5 GB volume is enough for years of chat.
How to use HuggingChat (chat-ui) in osFoundry
Install HuggingChat (chat-ui) into your workspace in one click, then fork it in osStudio to customise the prompts, tools, or configuration for your stack. Anyone in your workspace can pick up where you left off.
Other apps from the community
- CRM — Customer relationship management with contacts, deals, and pipeline tracking.
- Kanban Board — Drag-and-drop task board with swimlanes, labels, and team assignments.
- Helpdesk — Ticket triage and customer support inbox with SLA tracking.
- Page Builder — Block-based page editor with publishing to public URLs.
- Website Builder — Multi-page site builder with CMS, templates, and custom domains.
- Storefront — E-commerce storefront with product catalog, cart, and checkout.