Skip to main content
Content updated: 2026-06-09
LobeChat is suitable for use as a team chat entry point, a personal multi-model workstation, and a self-hosted AI chat frontend. When connecting to Crazyrouter, the most stable method is to use LobeChat’s OpenAI path and point the proxy address to Crazyrouter’s OpenAI-compatible base address.

Overview

By using the OpenAI configuration options in LobeChat, you can route chat requests to Crazyrouter:
  • Recommended protocol: OpenAI-compatible API
  • Recommended integration: LobeChat OpenAI provider
  • Base URL: https://api.crazyrouter.com/v1
  • Authentication: sk-... token
  • Recommended initial test model: gpt-5.5
If you are self-hosting LobeChat, you can also preset the default OpenAI path to Crazyrouter using environment variables.

Who is this suitable for?

  • Anyone wanting to self-host a stable chat frontend
  • Anyone wanting to use Crazyrouter in a personal or team chat workstation
  • Anyone wanting to manage multiple models centrally and retain chat history
  • Anyone wanting to assign default models and configurations to internal members

Usage Protocol

Recommended protocol: OpenAI-compatible API When connecting Crazyrouter in LobeChat, you should use the OpenAI-compatible base address:
Do not use:
  • https://api.crazyrouter.com
  • https://api.crazyrouter.com/v1/chat/completions
The LobeChat documentation describes OPENAI_PROXY_URL as the “OpenAI API request address,” and the common default values and examples also follow the /v1 style; at the same time, the official example link given locally for http://127.0.0.1:4000/api/status is also {address}/v1. Therefore, when interfacing with Crazyrouter, prioritize entering https://api.crazyrouter.com/v1. If your own reverse proxy has already appended another layer of /v1, adjust it separately to avoid duplicate suffixes.

Prerequisites

Recommended initial whitelist:
  • gpt-5.5
  • claude-opus-4-8
  • gemini-3.1-pro
If you also plan to connect Crazyrouter to Cursor, Codex, and Claude Code, it’s best for LobeChat to use a separate token, making it easier to track chat frontend consumption.

5-Minute Quick Start

1

Create a Dedicated Token for LobeChat

In the Crazyrouter backend, create a token named lobechat, and for the initial setup only allow models like gpt-5.5 and claude-opus-4-8 that have been successfully tested that day.
2

Open Language Model Settings

Enter LobeChat, click on the avatar in the bottom left or the settings entry, and open Settings → Language Model.
3

Configure OpenAI Path

In the OpenAI related configuration, fill in:
  • API Key: your sk-...
  • API Proxy Address / API Proxy URL: https://api.crazyrouter.com/v1
At the same time, enable Use Custom API Proxy Address or an equivalent option.
4

Select a Baseline Model

After saving, first select gpt-5.5 as the default model—do not enable many models at once.
5

Perform Initial Verification

Open a new conversation and send: Reply only OK. If there is a normal return and at the same time you can see logs in the Crazyrouter backend, the connection is successful.

Quick Self-Host Configuration

If you deploy LobeChat yourself via Docker, you can first write the default OpenAI settings into environment variables:
If you don’t want frontend users to arbitrarily change the Key, you can combine the hidden or managed configuration options supported by your current version to fix the default Key on the server environment variables. Recommended order: first test with gpt-5.5, then expand to claude-opus-4-8 and gemini-3.1-pro.

Token Setup Best Practices

Verification Checklist

  • API Key saved correctly
  • API Proxy Address / API Proxy URL set to https://api.crazyrouter.com/v1
  • Custom proxy address toggle enabled
  • First model successfully selected
  • First chat request returned successfully
  • Streaming output works
  • Crazyrouter backend logs show the corresponding request
  • The token quota and model whitelist meet expectations

Common Errors and Fixes

Performance and Cost Suggestions

  • Only keep gpt-5.5 in the first phase
  • For team chat, choose a low-cost default model; reserve high-cost models for advanced users or specific scenarios
  • If you enable knowledge base, plugins, or long context chat, be sure to set a separate LobeChat quota
  • In self-hosted environments, separate production and test tokens to prevent internal tests from affecting official quotas
  • In case of excessive consumption, first check Crazyrouter logs to confirm if it’s caused by multiuser long dialogues

FAQ

Which Base URL should I enter in LobeChat?

Enter https://api.crazyrouter.com/v1.

Why not just enter the root domain?

Because LobeChat’s OpenAI proxy config is better suited for entering the OpenAI-compatible base address, not just the root domain.

What if my reverse proxy already adds /v1 automatically?

Then don’t repeat write /v1 in the address exposed to LobeChat. First check your proxy chain to avoid double suffixes. Start with gpt-5.5.

Can LobeChat connect to multiple models at the same time?

Yes, but it’s best to verify with one model first and expand step by step.

Should I hard-code the token in the environment variable when self-hosting?

If you want centralized upstream control and cost management, it’s recommended; if you need each user to use their own key, then open frontend customization.
If your goal is a stable chat frontend and a team-shared workstation, LobeChat is a great choice; if your goal is code proxying and automation, tools like Cursor, Claude Code, Codex, and Cline should take precedence.