Via environment variables (self-hosted)
If you self-host LobeChat, configure in.env:
Via web settings (LobeHub Cloud / deployed instance)
Fill in the config
- API Key:
sk-XXXXXXXXXXXXXXXX - API proxy address:
https://openp.ai/v1 - Model list:
gpt-5.5,claude-opus-4-8,gemini-3.1-pro-preview, etc.
Client-side request mode
Check Use client-side request mode (optional) to keep the key only in the browser’s local storage.
Enable the Claude / Gemini native protocols too
To also use Claude thinking mode or Gemini multimodal, in LobeChat settings:- Under the Anthropic provider, set:
- Base URL:
https://openp.ai(note: without/v1) - API Key: the same OpenPAI key
- Base URL:
- Under the Google provider, set:
- Base URL:
https://openp.ai - API Key: the same OpenPAI key
- Base URL: