Skip to content

LobeChat ​

LobeChat is an open-source AI chat platform that supports OpenAI-compatible endpoints via its settings panel.

Official docs: https://lobehub.com/docs/usage/providers/openai

1. Open settings ​

Click the Settings icon in the lower left and go to the Language Model page.

2. Select the OpenAI provider ​

Click OpenAI in the provider list to expand the configuration panel.

3. Fill in the connection details ​

FieldValue
API Key (apiKey)Your codex_... or sk-... key
API Proxy URL (baseURL)https://codex.openai.com/v1

4. Select a model and verify ​

Select a model from the dropdown or enter gpt-5-codex-mini manually, then start a conversation to confirm it works.

Notes ​

  • The API Proxy URL takes the base URL including /v1: https://codex.openai.com/v1
  • LobeChat supports multiple simultaneous providers and lets you switch between them per session
  • For self-hosted deployments, configure OPENAI_API_KEY and OPENAI_PROXY_URL environment variables — see the official environment variable docs

OpenAI-compatible gateway integration docs