CC Switch
CC Switch is an open-source desktop tool for managing and switching API provider settings in coding tools such as Claude Code and Codex CLI. It edits each tool’s config files for you.
Option 1: one-click import from the console
Section titled “Option 1: one-click import from the console”- Install CC Switch and open it.
- On the Tokens page in the console (/console/token), find the token you want to use and choose CC Switch from its action menu.
- Pick which tool to import into (for example Claude Code or Codex) and confirm. CC Switch opens an import dialog.
Option 2: add it by hand
Section titled “Option 2: add it by hand”Claude Code
Section titled “Claude Code”On CC Switch’s Claude page, add a custom provider:
| Field | Value |
|---|---|
| Name | OpenPalmLab |
| Request URL / Base URL | https://api.openpalmlab.com |
| API Key | sk-xxxx |
| Model (optional) | A model on the pricing page that supports the Anthropic endpoint |
This has the same effect as configuring Claude Code by hand: CC Switch writes ANTHROPIC_BASE_URL and the token into Claude Code’s settings.
On CC Switch’s Codex page, add a custom provider:
| Field | Value |
|---|---|
| Name | OpenPalmLab |
| Base URL | https://api.openpalmlab.com/v1 |
| API Key | sk-xxxx |
| Model | A model on the pricing page that supports the Responses endpoint |
For the manual equivalent, see Codex CLI.
- After switching providers, restart any running Claude Code or Codex session.
- CC Switch’s screens and field names can change between versions; follow the version you have installed.