Skip to content
HF chat-ui

Chat apps

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/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Start chat-ui with Shannon as its endpoint

    The chat-ui-db image includes MongoDB, so one container is enough. OPENAI_BASE_URL takes the address with /v1 and nothing after it; chat-ui adds /models and /chat/completions itself.

    Docker
    docker 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
  2. Check the models

    Open http://localhost:3000 and press Start chatting. chat-ui reads GET /v1/models at start, so Models in the sidebar lists every Shannon id. Click a model to open its settings and press New chat.

    HF chat-ui model settings listing the Shannon models, with shannon-coder-1 selected and its system prompt and tool switches
    A real run on chat-ui 0.20.0: the model list comes from Shannon's GET /v1/models.
  3. Chat

    Type a message. Models that reason show a collapsible Thinking block above the answer.

    HF chat-ui conversation where the Shannon model shannon-coder-1 answers which colours a cat can be
    A real chat on chat-ui 0.20.0 with shannon-coder-1: the thinking block, then the answer.

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 idContext windowMax outputImage 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.

SettingValueWhy
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/models returns. The MODELS variable (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_SUMMARIZATION left on, every new chat makes one extra request for its title.
  • Any variable from chat-ui's .env file can be passed as -e on the container, or written to .env.local when you run from source.

Tips

  1. Set LLM_SUMMARIZATION=false to stop chat-ui asking the model for a title after each new chat; it then names the chat after your first words.
  2. Set TASK_MODEL to a smaller Shannon id to keep title generation on and spend less on it.
  3. Each model has its own page under Settings: a system prompt, and switches for Tool calling, Multimodal support and a Reasoning effort selector.
  4. Turn on Tool calling for the model you use with MCP servers; chat-ui only sends tools to models marked that way.
  5. 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

SymptomCauseFix
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.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical