Skip to content
LibreChat

Chat apps

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

Set it up

  1. Get LibreChat

    Clone the repository and create .env from 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.

    Shell
    git clone https://github.com/danny-avila/LibreChat.git
    cd LibreChat
    cp .env.example .env
  2. Put your key in .env

    Add one line at the end of .env. ENDPOINTS=custom is optional: it hides the built-in providers you have no keys for.

    .env
    SHANNON_API_KEY=YOUR_API_KEY
    ENDPOINTS=custom
  3. Add Shannon as a custom endpoint

    Create librechat.yaml next to .env. With fetch: true LibreChat loads every id from GET /v1/models; default must still name at least one. Use the config version your LibreChat release expects (0.8.8 expects 1.3.17).

    librechat.yaml
    version: 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"
  4. Mount the file and start

    Docker only sees librechat.yaml once the override file mounts it into the api container. Then run docker compose up -d and open http://localhost:3080.

    docker-compose.override.yml
    services:
      api:
        volumes:
          - type: bind
            source: ./librechat.yaml
            target: /app/librechat.yaml
  5. Pick a Shannon model

    Register the first account, open the model menu and choose Shannon, then a model. Typing in the menu's search box narrows the list.

    LibreChat model menu filtered to the Shannon custom endpoint, showing the shannon-coder-1 model
    A real run on LibreChat 0.8.8: the Shannon endpoint in the model menu, filtered with the search box.
  6. Send a first message

    Answers stream in under the endpoint's label. With titleConvo: true the chat also gets a title written by the same model.

    LibreChat chat on the Shannon model shannon-coder-1 answering which colours a cat can be, titled Three Cat Colours
    A real chat on LibreChat 0.8.8: the answer, and a chat title the same model wrote.

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

Good to know

  • With titleConvo: true each new chat makes one extra request to name it. Set titleConvo: false to skip it.
  • fetch: true lists every Shannon id. To offer only some, set fetch: false and list them under default.
  • 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.yaml stops the server, so check docker compose logs api after each edit.

Tips

  1. Set ENDPOINTS=custom in .env so the model menu shows only your custom endpoints, not the built-in providers your users have no keys for.
  2. Type a few letters in the model menu's search box: it filters across endpoints, which helps when fetch: true loads a long list of ids.
  3. 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.
  4. Use apiKey: "user_provided" instead of a shared key if each user should enter their own Shannon key in the app.

Troubleshooting

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

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