Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

CC Switch for Claude Code: the install, the safe two-key setup, and the catch

The short version

CC Switch is a free desktop app (a normal window app for Mac, Windows and Linux, not something you type into the Terminal) that edits Claude Code's settings for you. Its README puts it this way: "Switch API providers in one click … no more hand-editing JSON / TOML / YAML config files." It has 147,655 GitHub stars, is MIT-licensed, and was built by Jason Young (GitHub: farion1231). It is not made by Anthropic. The use in this guide is the safe one: you have two of your own Anthropic API keys, one for work and one for your side projects, and you want Claude Code to use the right one without opening a hidden settings file. An API key is a password that bills you: every request Claude Code makes with it is charged to the account that owns it. Below: how to install it on your computer, the exact form to fill for each key, how to switch, how to check which key is live, and the part of the app to stay away from. Source: CC Switch's README and user manual on GitHub (https://github.com/farion1231/cc-switch), and Anthropic's Claude Code docs (https://code.claude.com/docs), checked 23 Oct 2026.

What The number
GitHub stars 147,655 (checked 23 Oct 2026)
Price and licence Free, MIT
Your own Anthropic keys in this setup 2: work and personal
Clicks to switch key 1, no Claude Code restart
Back to your Claude login Restart Claude Code + /login
Settings files you open by hand 0
Relays you should use 0

First: what you need

Step 1: install the app

Exactly as the README states, per computer:

Open it once. On first launch it imports your current Claude Code setup as a provider called default and adds a Claude Official card (your normal Claude login), "so nothing you had configured is lost" (README). Before it rewrites Claude Code's settings file for the first time, it also saves the original to ~/.cc-switch/backups/live-first-write/.

Step 2: add your two keys (Custom Configuration)

CC Switch calls each set of settings a provider. There is no preset named for a plain Anthropic API key, so you use Custom Configuration. Do this twice, once for the work key and once for the personal key:

  1. Select Claude Code in the left sidebar, then click + (Add Provider) at the top right.
  2. On the preset page, pick Custom Configuration (the user manual says it always sits at the top of "All"). Don't pick anything else from that list.
  3. Fill the form:
    • Provider Name: something you'll recognise in a menu, like Work key or Personal key.
    • API Key: paste the key for that account.
    • API Endpoint: Anthropic's own address, https://api.anthropic.com. Nothing else. A different address here means your requests go to someone else's server.
    • Website URL and Notes: optional.
  4. Click Add.

To be plain about it: the README itself only says "Choose a preset or create a custom configuration"; it doesn't list the form's fields. The field names above come from the app's English text, and CC Switch's user manual (docs/user-manual/en/2-providers/2.1-add.md) describes the custom setup as a JSON editor whose Claude settings are ANTHROPIC_API_KEY (required) and ANTHROPIC_BASE_URL (optional). If you see the JSON view, it should read:

{
  "env": {
    "ANTHROPIC_API_KEY": "your-work-key",
    "ANTHROPIC_BASE_URL": "https://api.anthropic.com"
  }
}

The editor shows what Claude Code's settings file will look like after the switch, so check it before you save. We haven't clicked through the form end to end, so labels in your version may differ slightly.

Step 3: switch between your keys

Two ways (README Quick Start):

Between your two keys, Claude Code needs no restart. README: "Claude Code needs no restart"; its FAQ calls this "hot-switching". The first time Claude Code sees a new API key it may ask whether to use it: say yes, once. (Anthropic's docs: "you are prompted once to approve or decline the key, and your choice is remembered"; to change it later, use the "Use custom API key" toggle in /config.)

Going back to your Claude subscription login

If you also pay for Claude Pro or Max and sometimes want that instead of a key, it is not one click. README, step 4: "Switch to the built-in official provider in the list (e.g. 'Claude Official'), restart the tool, then follow its login/OAuth flow." So:

  1. Click Claude Official in CC Switch.
  2. Quit Claude Code and start it again (claude).
  3. If it asks, log in with /login.

That's why this guide is built on two keys: key to key is instant; key to subscription needs a restart and a login.

How to check which one is active

The catch

For builders

Sources

Get the next one in your inbox