Skip to content

CC-Switch ​

A GUI for switching Claude Code and Codex providers. No environment variables to remember — edit the fields, click Apply, done.

Install ​

Download the build for your platform from the cc-switch repo (Windows .msi, Linux .AppImage / .rpm / .deb, macOS .dmg).

CC-Switch installer on Windows

On first launch it asks which app to manage:

CC-Switch app selection

Add LeekBox ​

Open CC-Switch → Claude Code tab → new provider:

Adding LeekBox in CC-Switch
FieldValueNotes
NameLeekBoxOnly for your own reference
API URLhttps://leekbox.aiNo /v1 — CC-Switch appends it
API keysk-...Create one under API keys in the console

Save, then click Apply. CC-Switch writes these values into Claude Code's config directory (~/.claude/settings.json on macOS/Linux, %USERPROFILE%\.claude\ on Windows) and leaves your login state alone.

Codex as well ​

Switch to the Codex tab → new provider:

FieldValue
NameLeekBox
API URLhttps://leekbox.ai/v1 (this one does take /v1)
API keyThe same key
Protocolresponses

Apply, and CC-Switch writes ~/.codex/config.toml alongside your official login, switchable at any time.

Switching between providers ​

  • Click a provider → Apply to switch. It edits files, so open a new terminal to pick it up.
  • To hop back to your official account, select the official entry and open a new terminal.
  • Name providers clearly (LeekBox-Pro, LeekBox-Value) so you never switch to a pricier group by accident.

Troubleshooting ​

SymptomFix
Claude Code asks you to log in / uses the official APINot applied, or the terminal was already running — open a new one
401Trailing space, or a truncated paste
404 modelNot in your group — see Models & pricing
Codex complains about wire_apiProtocol must be responses
Want it goneSelect the official provider again, or delete the entry

No GUI needed?

Edit the config files directly: Claude Code, Codex CLI.

LeekBox — unified AI gateway