WRAITHERIX
Home / Blog
Guide · tested 2026-11-24

CC Switch: set up Claude Code, Codex and Antigravity CLI with one API key

WRAITHERIX team · updated November 25, 2026
A dark control panel with three glowing toggles whose circuit traces merge into one key

Pointing a coding tool at another API means editing a different place for each tool. Claude Code reads settings.json, Codex reads config.toml, and Antigravity CLI takes its key from environment variables. CC Switch, a free open-source desktop app, writes those settings for you, and every key in the WRAITHERIX dashboard has a button that sends the key straight to it.

We went through the whole path on November 24, 2026 on macOS, with the CC Switch interface set to English. Everything below comes from that run.

The short version

  1. Install CC Switch and open it once.
  2. In the WRAITHERIX dashboard, open "API Keys", click the three dots on your key and choose "CC Switch".
  3. Pick the tool and a model, click "Open CC Switch", then "Import".
  4. Start the tool. Claude Code and Codex just work. Antigravity CLI is started from a button inside CC Switch.

The rest of the guide shows each step with screenshots and what to expect.

What you need

Install CC Switch

Open the latest release page on GitHub and download the file for your system:

On a Mac with Homebrew, one line in Terminal does the same:

brew install --cask cc-switch

That is how we installed it, and we got version 4.0.40.

Open CC Switch once before you continue. On first launch it tells the system that ccswitch:// links should open in it. Until then the dashboard button does nothing.

The "Welcome to CC Switch" window on first launch
The first-launch window. Click Got it.

This window also explains that CC Switch saved your existing setup as a provider named "default" and added an "Official" preset. Click either one whenever you want to switch back to the official settings.

Send a key from the dashboard

Go to wraitherix.com, sign in and open "API Keys" in the left menu. If you have no key yet, click "Create API Key", name it and save.

The API Keys page in the WRAITHERIX dashboard with the Create API Key button
The API Keys page. The key itself is hidden in this screenshot.

On your key's row, click the three dots on the right and choose "CC Switch".

The key menu with the CC Switch item
The CC Switch item in the key menu.

The "Import to CC Switch" window opens with these fields:

Click "Open CC Switch". Your browser may ask whether this site can open the app; allow it. CC Switch shows a "Confirm Import Provider" window with the address, a partly hidden key and the models. Check it and click "Import". The next three sections cover what to choose in each tool.

Claude Code

Install it if you have not (Node.js 22 or newer is required; our Claude Code guide covers the details):

npm install -g @anthropic-ai/claude-code

Choose "Claude" in the dashboard window and fill in four models:

The Import to CC Switch window with Claude selected and the models filled in
Claude Code takes up to four models.
The CC Switch Confirm Import Provider window for Claude
CC Switch shows exactly what it will write before it writes anything.

Keep "Switch to this provider after import" on and click "Import". A "WRAITHERIX Claude" card appears in the Claude Code list, marked "In use".

CC Switch: the WRAITHERIX Claude card marked In use
Claude Code now runs through WRAITHERIX.

Open a new Terminal window, go to your project folder and run claude. To check from the command line:

$ echo "What is 17*23? Reply with the number only." | claude -p
391

We ran that with --output-format json added so the report would show which model answered: claude-sonnet-5-5, the one we chose. With --model opus the report named claude-opus-5-5, and with --model haiku it named claude-haiku-4-5.

Codex

Install it:

npm install -g @openai/codex

We got version 0.172.0. Choose "Codex" in the dashboard window and set one model. We tested only gpt-5.6-sol.

The Import to CC Switch window with Codex selected and gpt-5.6-sol entered
Codex takes one model.
The CC Switch Confirm Import Provider window for Codex
For Codex the dashboard adds /v1 to the address.

The address ends in /v1 here. The dashboard adds that itself, because Codex uses a different request format from Claude Code.

After the import, run the same question without any flags:

$ codex exec "What is 17*23? Reply with the number only."
391

Codex took the model from its config file, and the answer came back in 6 seconds. Then we gave it a real task: in a file calc.py the add function subtracted instead of adding.

$ codex exec -m gpt-5.6-sol -s workspace-write "add in calc.py is broken. Fix it."
Fixed calc.py: add now returns a + b instead of subtracting.
Verified with five checks covering positive, negative, zero, and decimal inputs.

That took 26 seconds. Codex wrote five checks itself and ran them, and the file now read return a + b. The -s workspace-write flag lets Codex change files in the project folder; without it Codex can only read. The -m flag sets the model for a single run.

Antigravity CLI

Our test covered the command-line version, Antigravity CLI, which uses the agy command. It works only with Gemini models, so the dashboard lists only those when you choose "Antigravity".

Install it on Mac or Linux:

curl -fsSL https://antigravity.google/cli/install.sh | bash

It installs to ~/.local/bin/agy. Close Terminal and open it again afterwards. We tested version 1.5.16.

Choose "Antigravity" in the dashboard window and a model. We used gemini-3.8-flash-medium.

The Import to CC Switch window with Antigravity selected
Only the Gemini models Antigravity CLI can use are listed.

This tool has a quirk. In its settings, agy understands a model only by its display name, for example Gemini 3.8 Flash (Medium), not by the model code. Use the display name, not the code. The dashboard converts the name for you, so CC Switch receives the right one.

The CC Switch Confirm Import Provider window for Antigravity, showing the model as Gemini 3.8 Flash (Medium)
CC Switch receives the display name that Antigravity CLI understands.

In this window CC Switch labels the tool "Agy". Click "Import". A "WRAITHERIX Antigravity" card appears under "Antigravity" in the left menu.

Antigravity works differently from the other two: the key is not written to any file. CC Switch hands it only to a Terminal window that CC Switch opens itself. To start it:

  1. In CC Switch, open "Antigravity" in the left menu.
  2. On the "WRAITHERIX Antigravity" card, click the terminal icon on the right.
  3. Click "Choose Folder…" and pick your project folder, then click "Open Terminal".
The CC Switch window "Open a terminal in which folder?"
The key goes only into this terminal. An agy started in another window works as before.

In the window that opens, agy already runs through WRAITHERIX. The dialog says so itself: the key and endpoint go only to agy in that terminal and are never written to a file. An agy started in any other window keeps your own sign-in.

We ran agy with the same settings CC Switch passes:

$ agy -p "What is 17*23? Reply with the number only." --model "Gemini 3.8 Flash (Medium)"
391

That took 13 seconds, and the calc.py task took 34.

About permissions. The terminal dialog has a checkbox, "Skip permission prompts", which adds --dangerously-skip-permissions to the launch. That is a separate matter from the -p mode we used above. When we ran agy -p "..." on the calc.py task with --mode accept-edits, it refused to run commands, because in that mode it cannot ask. With --dangerously-skip-permissions added by hand, it fixed the file. Use that flag only in a folder where you can afford to lose files.

What CC Switch changed on your machine

You never have to open these files, but it helps to know where they are.

Claude Code, in ~/.claude/settings.json (the key is hidden here):

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-…",
    "ANTHROPIC_BASE_URL": "https://api.wraitherix.com",
    "ANTHROPIC_MODEL": "claude-sonnet-5-5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5"
  }
}

Codex, in ~/.codex/config.toml:

model_provider = "custom"
model = "gpt-5.6-sol"
model_reasoning_effort = "high"

[model_providers.custom]
name = "WRAITHERIX Codex"
base_url = "https://api.wraitherix.com/v1"
wire_api = "responses"
requires_openai_auth = false
experimental_bearer_token = "sk-…"

Antigravity CLI: the key is never written to a file. Only the terminal that CC Switch opens receives it.

To go back to the official settings, open the tool's list in CC Switch and click "Official" (or "default") instead of the WRAITHERIX card.

If something does not work

The "Open CC Switch" button does nothing. CC Switch has probably never been launched. Open it by hand, close it, and click the dashboard button again.

Claude Code answers "401 Invalid token". An old ANTHROPIC_API_KEY variable may be set on your system and getting in the way. Our Claude Code guide shows how to find and remove it.

Antigravity CLI uses a different model than you expected. Check that the model is written as a display name like Gemini 3.8 Flash (Medium), not as a code.

What it costs

CC Switch is free. You pay only for model requests, at the prices in the catalog. The Usage Logs page in the dashboard shows what each request cost.

How we tested

November 24, 2026, macOS 27.2.1. CC Switch 4.0.40, Claude Code 2.1.331, Codex 0.172.0, Antigravity CLI 1.5.16. We ran CC Switch with a separate home folder so it would not touch the settings on our working machine. Keys were sent with the dashboard button. Claude Code and Codex were tested with the files CC Switch wrote. Antigravity CLI was run with the same variables CC Switch passes to its terminal. Model answers are copied from the run logs and trimmed in places.

One key for 400+ models

Pay as you go, below list price.

Get a keyCatalog