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
.msiinstaller (Windows 10+). - macOS: the
.dmg, orbrew install --cask cc-switch. - Linux:
.deb,.rpmor.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)
- Open CC Switch, select Claude Code (or Codex) on the left, click +.
- Choose Custom Configuration, fill in the table below and save.
- Click Enable on the TokenMilo entry.
| Field | Claude Code | Codex |
|---|---|---|
| Name | TokenMilo | TokenMilo |
| API Key | sk-your-key | sk-your-key |
| API Endpoint | https://api.tokenmilo.com (no /v1) | https://api.tokenmilo.com/v1 (with /v1) |
| Models | Leave empty — TokenMilo uses the official Claude model IDs | Default 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
- Codex CLI setup — Use OpenAI Codex CLI and the Codex IDE extension with GPT-6 via a custom provider.
- Claude Code setup — Run Claude Code with a TokenMilo key on macOS, Linux and Windows.
- DeepSeek Harness (dsh) setup with Claude & GPT — Add TokenMilo as a custom provider in DeepSeek’s open-source agent harness.
- OpenCode setup — Add TokenMilo as a custom provider in the OpenCode terminal agent.
- OpenClaw setup — Run the OpenClaw personal agent on Claude and GPT via TokenMilo.
- Aider setup — Pair-program in your terminal with Claude or GPT via TokenMilo.
Need an API key?
Sign up at TokenMilo, top up, and create a key in the console in under a minute.