Skip to content
NextChat

Chat apps

Use NextChat with Shannon

Start NextChat with BASE_URL and OPENAI_API_KEY pointed at Shannon, list Shannon models in CUSTOM_MODELS, and chat behind an access code.

  • Tested Nov 7, 2026
  • OpenAI Chat Completions
  • About 3 min

About NextChat

NextChat (formerly ChatGPT Next Web) is a small open-source chat web app: one container, conversations stored in the browser, prompt masks, Markdown and artifacts. People run it as a private ChatGPT-style page for themselves or a few friends. With Shannon as its OpenAI-compatible backend, the server holds one key and everyone with the access code chats on Shannon models.

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 NextChat with Shannon as its backend

    Give BASE_URL the address without /v1: NextChat adds /v1/chat/completions itself. -all in CUSTOM_MODELS hides the built-in model list so only the Shannon ids you add remain.

    Docker
    docker run -d -p 3000:3000 \
      -e BASE_URL=https://api.shannon-ai.com \
      -e OPENAI_API_KEY=YOUR_API_KEY \
      -e CUSTOM_MODELS=-all,+shannon-3 \
      -e DEFAULT_MODEL=shannon-3 \
      -e CODE=choose-an-access-code \
      -e HIDE_USER_API_KEY=1 \
      yidadaa/chatgpt-next-web:v2.16.1
  2. Enter the access code

    Open http://localhost:3000, follow the prompt to the access-code page and enter your CODE. Settings then shows the Shannon model as the default.

    NextChat settings with the access code entered and the Shannon model shannon-coder-1 selected as the model
    A real run on NextChat 2.16.1: access code on, the Shannon model as default.
  3. Chat

    Start a new chat and send a message. The model menu above the input box lists the ids from CUSTOM_MODELS. When a model reasons before answering, NextChat prints the reasoning as a quoted block above the answer.

Check that it works

Send: Name three colours a cat can be, in one short sentence.

You should see: "Black, white, and orange are three colours a cat can be." under the model name, and the chat renamed to a short title such as "Three colours a cat can".

Models that fit NextChat

Every id below meets what NextChat 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

NextChat asks for these values. They follow the model you picked.

SettingValueWhy
BASE_URL https://api.shannon-ai.com No /v1: NextChat appends /v1/chat/completions.
CUSTOM_MODELS -all,+shannon-3 Add more ids with +id, separated by commas.

Good to know

  • NextChat keeps chats in the browser's local storage, not on the server; export them from Settings before clearing the browser.
  • Memory Prompt (history compression) sends extra summary requests once a chat grows long; switch it off in Settings to avoid them.
  • If a visitor enters their own endpoint in Settings (possible unless HIDE_USER_API_KEY=1), their browser calls that endpoint directly instead of your server.

Tips

  1. Always set CODE: without an access code anyone who finds the page chats on your key.
  2. HIDE_USER_API_KEY=1 stops visitors from swapping in their own endpoint and key in Settings.
  3. Raise Settings → Max Tokens (4000 by default) for long answers; the model's own limit is in the table above.
  4. Turn off Settings → Auto Generate Title if you want exactly one request per message; with it on, NextChat asks the same model for a title.

Troubleshooting

SymptomCauseFix
404 on every message BASE_URL ends in /v1, so requests go to /v1/v1/chat/completions. Set BASE_URL=https://api.shannon-ai.com.
GPT model names still in the menu CUSTOM_MODELS adds ids but does not hide the defaults by itself. Start the list with -all.
"Oops, there's an issue" message instead of chat No access code entered yet. Open the access-code page from that message and enter your CODE.
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 NextChat work with Shannon?

Yes: set BASE_URL=https://api.shannon-ai.com and your Shannon key as OPENAI_API_KEY, and list the models in CUSTOM_MODELS.

Where are my NextChat conversations stored?

In your browser. Shannon receives each request but NextChat's server keeps no chat history.

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