Use LibreChat with Shannon
Add Shannon as a custom endpoint in librechat.yaml and every Shannon model appears in LibreChat's model menu.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 10 min
About LibreChat
LibreChat is an open-source, self-hosted chat app with user accounts, agents, presets, prompt libraries, file search and MCP tools. Teams and families run it with Docker and point it at the model providers they choose. As a custom endpoint, Shannon gives every LibreChat user the Shannon models from one server-side key.
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
-
Get LibreChat
Clone the repository and create
.envfrom the example. Fill in the secrets the example leaves empty (CREDS_KEY,CREDS_IV,JWT_SECRET,JWT_REFRESH_SECRET,MEILI_MASTER_KEY); LibreChat's credentials generator makes them.Shellgit clone https://github.com/danny-avila/LibreChat.git cd LibreChat cp .env.example .env -
Put your key in .env
Add one line at the end of
.env.ENDPOINTS=customis optional: it hides the built-in providers you have no keys for..envSHANNON_API_KEY=YOUR_API_KEY ENDPOINTS=custom -
Add Shannon as a custom endpoint
Create
librechat.yamlnext to.env. Withfetch: trueLibreChat loads every id fromGET /v1/models;defaultmust still name at least one. Use the configversionyour LibreChat release expects (0.8.8 expects1.3.17).librechat.yamlversion: 1.3.17 cache: true endpoints: custom: - name: "Shannon" apiKey: "${SHANNON_API_KEY}" baseURL: "https://api.shannon-ai.com/v1" models: default: ["shannon-3"] fetch: true titleConvo: true titleModel: "current_model" modelDisplayLabel: "Shannon" -
Mount the file and start
Docker only sees
librechat.yamlonce the override file mounts it into theapicontainer. Then rundocker compose up -dand openhttp://localhost:3080.docker-compose.override.ymlservices: api: volumes: - type: bind source: ./librechat.yaml target: /app/librechat.yaml
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 Shannon, and a title such as "Three Cat Colours" in the sidebar.
Models that fit LibreChat
Every id below meets what LibreChat 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 |
Good to know
- With
titleConvo: trueeach new chat makes one extra request to name it. SettitleConvo: falseto skip it. fetch: truelists every Shannon id. To offer only some, setfetch: falseand list them underdefault.- File search in LibreChat goes through its RAG API, which needs an embeddings provider; Shannon does not serve embeddings, so set one in the RAG API's settings before you upload documents.
- A schema error anywhere in
librechat.yamlstops the server, so checkdocker compose logs apiafter each edit.
Tips
- Set
ENDPOINTS=customin.envso the model menu shows only your custom endpoints, not the built-in providers your users have no keys for. - Type a few letters in the model menu's search box: it filters across endpoints, which helps when
fetch: trueloads a long list of ids. - With
titleConvo: true,titleModel: "current_model"names each chat with the model the user picked; point it at a smaller id to spend less on titles. - Use
apiKey: "user_provided"instead of a shared key if each user should enter their own Shannon key in the app.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| No Shannon entry in the model menu | LibreChat drops a custom endpoint that lacks name, apiKey, baseURL or models, or that is indented outside endpoints.custom. | Compare your file with the example above and restart with docker compose up -d. |
Missing API Key for Shannon when you send | SHANNON_API_KEY is not in .env, so ${SHANNON_API_KEY} resolves to nothing. | Add the line to .env and restart the stack. |
| Your endpoint never loads, only the defaults | The container does not see librechat.yaml. | Mount it through docker-compose.override.yml as above; the logs then print Custom config file loaded. |
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 LibreChat work with Shannon?
Yes, as a custom endpoint in librechat.yaml with baseURL: https://api.shannon-ai.com/v1; the model list loads from GET /v1/models.
Can every LibreChat user share one Shannon key?
Yes. The key in .env is used for every account. Use apiKey: "user_provided" if each user should bring their own.