NextChat
Introduction
NextChat is a lightweight, cross-platform open-source AI chat frontend covering Web, desktop (Tauri: Windows / macOS / Linux), iOS, and Android. It supports the OpenAI, Anthropic, Google, and other protocols, and lets you override the default API endpoint in Settings — a very convenient way to plug in the Sakrylle API.
- Platforms: Web / Windows / macOS / Linux / iOS / Android
- Website: https://nextchat.club
- Source: https://github.com/ChatGPTNextWeb/NextChat
- Online demo: https://chat-gpt-next-web.vercel.app
Prerequisites
- A NextChat entry point: the official NextChatAI, a Vercel/Docker self-hosted build, or a downloaded desktop/mobile app.
- An account at https://ai1.sakrylle.com with
sk-xxxxxxxxxxxxxxxxgenerated per the API Keys guide. - Model IDs ready: e.g.
gpt-5.6-sol,claude-haiku-4-5-20251001.
Override in the UI
If you just want to try out the Sakrylle API on a single device, override the endpoint and key directly in NextChat — no redeploy needed:
Open NextChat and tap Settings (gear icon) at the bottom-left.
Scroll to the Custom Endpoint toggle and turn it on.
Set Model Provider to OpenAI.
Fill in per this table:
Field Value OpenAI Endpoint / API Host https://api.sakrylle.comOpenAI API Key sk-xxxxxxxxxxxxxxxxCustom Models +gpt-5.6-sol,+claude-haiku-4-5-20251001Notes:
- For "Endpoint", enter only the root domain
https://api.sakrylle.com. NextChat appends/v1/chat/completionsautomatically. - "Custom Models" uses
+modelIDto add models to the picker; separate multiple models with commas. The-allprefix clears the existing list (e.g.-all,+gpt-5.6-sol).
- For "Endpoint", enter only the root domain
Close the settings panel, return to the chat view, tap the model picker at the top right, and switch the current model to
gpt-5.6-solorclaude-haiku-4-5-20251001.Send a message to verify connectivity.
To use the Anthropic native protocol, switch Model Provider to Anthropic, set Anthropic API Endpoint to
https://api.sakrylle.com, and use the same Sakrylle key for the API Key; add+claude-haiku-4-5-20251001to Custom Models.
Self-host env
If you self-host NextChat for a team via Vercel / Docker, the recommended way is to fix the Sakrylle connection through environment variables at deploy time:
docker run -d -p 3000:3000 \
-e OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxx \
-e BASE_URL=https://api.sakrylle.com \
-e CUSTOM_MODELS="-all,+gpt-5.6-sol,+claude-haiku-4-5-20251001,+gpt-5.4,+claude-sonnet-4-6" \
-e DEFAULT_MODEL=gpt-5.6-sol \
-e CODE=set-a-strong-access-code \
yidadaa/chatgpt-next-webKey variables:
OPENAI_API_KEY: your Sakrylle API Key.BASE_URL: Sakrylle gateway roothttps://api.sakrylle.com.CUSTOM_MODELS: clear defaults with-all, then use+to add the model IDs you want exposed to the frontend.DEFAULT_MODEL: the model selected by default when entering a session.CODE: access password — strongly recommend setting a 7+ character password, otherwise anyone with access to the domain can spend your quota.
Redeploy after changes for them to take effect.
FAQ
- Only one or two models in the picker:
CUSTOM_MODELSused-allbut forgot to+the models back. Re-check the variable. - All requests return 401: confirm
BASE_URLis nothttps://api.sakrylle.com/v1(NextChat appends/v1automatically; doubling produces/v1/v1/...errors), and check API Key validity. - Streaming hangs: in self-hosted setups, check whether the reverse proxy buffers SSE. Nginx needs
proxy_buffering off; proxy_read_timeout 600s;.
Official Documentation
- README (Chinese): https://github.com/ChatGPTNextWeb/NextChat/blob/main/README_CN.md
- README (English): https://github.com/ChatGPTNextWeb/NextChat/blob/main/README.md
- Deployment docs: https://github.com/ChatGPTNextWeb/NextChat/tree/main/docs
- Releases: https://github.com/ChatGPTNextWeb/NextChat/releases
