CC Switch one-click setup (Claude Code & Codex)

Don’t want to edit config files? This is the easiest way. Install CC Switch, paste your key below, click once, and Claude Code or Codex is connected.

Updated 2026-11-16

Step 1: Install CC Switch

Download the latest release from CC Switch on GitHub:

  • Windows: the .msi installer (Windows 10+).
  • macOS: the .dmg, or brew install --cask cc-switch.
  • Linux: .deb, .rpm or .AppImage.

Open it once after installing. Claude Code or Codex itself must be installed too (see the Claude Code guide).

Step 2: Get an API key

Sign up in the TokenMilo console, top up, open API Keys and click Create API Key. Copy the key starting with sk-.

Step 3: One-click import

Import to Claude CodeImport to Codex

Your key stays in this browser tab — it is only put into a ccswitch:// link that opens the CC Switch app on your computer.

Manual setup (if one-click doesn’t work)

  1. Open CC Switch, select Claude Code (or Codex) on the left, click +.
  2. Choose Custom Configuration, fill in the table below and save.
  3. Click Enable on the TokenMilo entry.
FieldClaude CodeCodex
NameTokenMiloTokenMilo
API Keysk-your-keysk-your-key
API Endpointhttps://api.tokenmilo.com (no /v1)https://api.tokenmilo.com/v1 (with /v1)
ModelsLeave empty — TokenMilo uses the official Claude model IDsDefault model gpt-6.1-sol
Upstream Format (Advanced)Anthropic Messages (Native)Responses (native)

Check it works

Run claude (or codex) and ask anything, then open Usage Logs in the console — you should see the request.

Prefer editing config files, or setting up a server? See the manual Claude Code and Codex CLI guides.

FAQ

What is CC Switch?

CC Switch is a free, open-source desktop app (Windows, macOS, Linux) that manages API settings for Claude Code, Codex, OpenCode, OpenClaw and more. It edits the config files for you and lets you switch providers with one click.

Is one-click import safe? Is my key uploaded?

No upload. The button only builds a ccswitch:// link in your own browser and hands it to the CC Switch app on your computer. The key never touches TokenMilo’s web servers and is not stored.

Nothing happens when I click the button

Make sure CC Switch v4.0.10 or newer is installed and has been opened once, and allow the browser prompt to open CC Switch. Otherwise use the manual method below — the result is identical.

Claude Code still uses the old provider after import

The “switch after import” toggle is off by default. In CC Switch, click Enable on the TokenMilo entry. Claude Code picks it up immediately; reopen the terminal for Codex.

Related guides

Need an API key?

Sign up at TokenMilo, top up, and create a key in the console in under a minute.

Get API key See all models