Use HF chat-ui with Shannon
Point Hugging Face chat-ui at Shannon with two environment variables, and every Shannon model appears in its model list.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About HF chat-ui
chat-ui is the open-source SvelteKit app behind HuggingChat. Teams self-host it as a clean chat front-end with conversation history in MongoDB, per-model system prompts and MCP tools. It reads its models from one OpenAI-compatible endpoint, so pointed at Shannon it offers every Shannon model with no other setup.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Start chat-ui with Shannon as its endpoint
The
chat-ui-dbimage includes MongoDB, so one container is enough.OPENAI_BASE_URLtakes the address with/v1and nothing after it; chat-ui adds/modelsand/chat/completionsitself.Dockerdocker run -d -p 3000:3000 \ -e OPENAI_BASE_URL=https://api.shannon-ai.com/v1 \ -e OPENAI_API_KEY=YOUR_API_KEY \ -e LLM_SUMMARIZATION=false \ -v chat-ui-data:/data \ ghcr.io/huggingface/chat-ui-db:latest
Check that it works
Send: Name three colours a cat can be, in one short sentence.
You should see: "A cat can be black, orange, or white." under a Thinking block.
Models that fit HF chat-ui
Every id below meets what HF chat-ui needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
shannon-3 | 196,608 | 65,536 | Yes |
shannon-3-pro | 196,608 | 65,536 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Model settings
HF chat-ui asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
OPENAI_BASE_URL | https://api.shannon-ai.com/v1 | With /v1, without /chat/completions. |
OPENAI_API_KEY | YOUR_API_KEY | Sent as a Bearer token on every request. |
Good to know
- chat-ui offers every id that
GET /v1/modelsreturns. TheMODELSvariable (JSON5) can override a model's display name and description. - The welcome screen describes the Omni router, but Omni only works once you give it a routes file in
LLM_ROUTER_ROUTES_PATH; until then you pick models yourself. - With
LLM_SUMMARIZATIONleft on, every new chat makes one extra request for its title. - Any variable from chat-ui's
.envfile can be passed as-eon the container, or written to.env.localwhen you run from source.
Tips
- Set
LLM_SUMMARIZATION=falseto stop chat-ui asking the model for a title after each new chat; it then names the chat after your first words. - Set
TASK_MODELto a smaller Shannon id to keep title generation on and spend less on it. - Each model has its own page under Settings: a system prompt, and switches for Tool calling, Multimodal support and a Reasoning effort selector.
- Turn on Tool calling for the model you use with MCP servers; chat-ui only sends tools to models marked that way.
- Without a login, chats belong to the browser session. Set up OpenID login (
OPENID_CONFIG) if people should find their chats on other devices.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The model list is empty or shows the Hugging Face models | OPENAI_BASE_URL is unset, misspelled or lacks /v1. | Set it to exactly https://api.shannon-ai.com/v1 and recreate the container. |
| Chats from yesterday are gone | Without a login, conversations belong to the browser's session cookie; another browser or cleared cookies means a new session. | Use the same browser, or set up OpenID login so chats belong to users. |
| Two requests per new chat on your usage | Title generation (LLM_SUMMARIZATION) asks the model for a chat title. | Set LLM_SUMMARIZATION=false, or a smaller TASK_MODEL. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does Hugging Face chat-ui work with Shannon?
Yes. chat-ui only talks to OpenAI-compatible APIs; set OPENAI_BASE_URL=https://api.shannon-ai.com/v1 and your key.
Do I need a separate MongoDB?
Not with the ghcr.io/huggingface/chat-ui-db image, which runs MongoDB inside the container and keeps it in the /data volume. With the plain image, set MONGODB_URL.
Can chat-ui use tools with Shannon models?
Yes, through MCP servers: turn on Tool calling for the model in its settings, then add or enable a server from the + menu.