OpenBridgerGuides
中文 Open console

Switch to OpenBridger with CC Switch

CC Switch stores several providers on your machine and writes them into Codex or Claude Code. OpenBridger does not offer a one-click browser import. Create the provider by hand inside CC Switch.

Do not mix the two base URLs

Claude Code Base URLhttps://openbridger.com
Codex / OpenAI-compatible Base URLhttps://openbridger.com/v1
Keysk-..., preferably its own key named cc-switch
Modelfull ID from Model Square

Steps

Create a key in the console

See Create an API key.

Pick the target app in CC Switch

Claude Code uses the Anthropic-compatible base, which is the site origin. Codex uses Responses, and its Base URL includes /v1.

Enter the model ID

Copy it from Model Square.

Enable it and restart the client

Quit Codex or Claude Code completely, then open it again. Switching the UI without a restart leaves the old environment variables in place.

Keep one Base URL active. A leftover ANTHROPIC_BASE_URL or OPENAI_BASE_URL in the terminal overrides the profile you just selected.

The same values as environment variables

Claude Code:

export ANTHROPIC_BASE_URL="https://openbridger.com"
export ANTHROPIC_AUTH_TOKEN="sk-your-key"

OpenAI-compatible:

export OPENAI_BASE_URL="https://openbridger.com/v1"
export OPENAI_API_KEY="sk-your-key"

Field details are on Claude Code and Codex.

Common problems

What you see What to do
The old provider is still used Open a new terminal and inspect OPENAI_ and ANTHROPIC_
401 Copy the key again and remove spaces
503 no channel The model ID or the protocol does not match the group
It fails immediately and the log says insufficient credit Check the wallet and the key's own credit

Related

Type to search