LobeChat
Introduction
LobeChat is an open-source multi-model AI chat web UI maintained by LobeHub. It supports Web, desktop (Tauri), and self-hosted Docker deployments, and natively offers "custom endpoint" configuration for OpenAI / Anthropic / Google and other providers. Sakrylle API is OpenAI-protocol-compatible and can be plugged in as one of the custom OpenAI providers.
- Platform: Web / desktop / self-hosted
- Website: https://lobehub.com
- Online: https://chat-preview.lobehub.com (demo) or https://lobechat.com (official hosted)
- Source: https://github.com/lobehub/lobe-chat
- Docs: https://lobehub.com/docs
Prerequisites
- A working LobeChat instance: official online, self-hosted Docker, or a local dev build.
- An account at https://ai1.sakrylle.com, with a
sk-xxxxxxxxxxxxxxxxkey created per API Keys. - The model IDs you want to enable (e.g.
gpt-5.6-sol,claude-haiku-4-5-20251001).
Configuration
LobeChat UI strings: "Settings", "AI Providers", "OpenAI", "API Key", "API Proxy Address".
Open LobeChat and click the avatar at the top right or Settings at the bottom of the left sidebar.
In the left section, choose AI Providers.
Find OpenAI in the list and click to expand it.
In the OpenAI panel, fill in per this table:
Field Value API Key sk-xxxxxxxxxxxxxxxxAPI Proxy Address (Base URL) https://api.sakrylle.com/v1Use Client Mode Recommended on — direct browser-to-API calls In the Model List section of the same panel, click Fetch Model List and wait for the request to finish. If the model you want doesn't show up automatically, click + Add Custom Model and enter the full model ID (e.g.
gpt-5.6-sol,claude-haiku-4-5-20251001), then save.Toggle Enabled at the top of the panel to make sure the OpenAI provider is on.
Return to the chat view, tap the model picker at the top of the conversation, and switch the default model to a Sakrylle model you just added.
Tip: if you have multiple providers enabled in LobeChat and want clearer naming, change the Display Name in the OpenAI panel to
Sakrylleso it's easy to recognize in the model picker.
Env preset
If you self-host LobeChat with Docker / Vercel, you can inject environment variables at deploy time so users don't have to fill in the form repeatedly:
docker run -d -p 3210:3210 \
-e OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxx \
-e OPENAI_PROXY_URL=https://api.sakrylle.com/v1 \
-e OPENAI_MODEL_LIST=+gpt-5.6-sol,+claude-haiku-4-5-20251001 \
lobehub/lobe-chatOPENAI_MODEL_LIST uses +modelID to add models; for the full syntax see the official model list configuration docs.
FAQ
- Empty model list: check whether
https://api.sakrylle.com/v1/modelsreturns data. An empty list typically means the key has not been assigned a model group. - 401 / Invalid API Key: key is wrong or disabled — go back to the Console to regenerate.
- Streaming output stutters or shows nothing: try toggling "Use Client Mode" off and on. In self-hosted setups, ensure the reverse proxy (Nginx / Cloudflare) does not buffer SSE — set
proxy_buffering off.
Official Documentation
- LobeChat docs home: https://lobehub.com/docs
- Using OpenAI in LobeHub: https://lobehub.com/docs/usage/providers/openai
- Self-hosting model service variables: https://lobehub.com/docs/self-hosting/environment-variables/model-provider
- Repository and releases: https://github.com/lobehub/lobe-chat/releases
