Skip to content
Skip to content
Router One

CC Switch Setup Guide

CC Switch is a free, open-source desktop app that switches the API provider of Claude Code, Codex and eight other AI coding tools from one window, without hand-editing config files. This guide installs it and connects Router One to the tools that fit Router One's native endpoints.

Before you start, create your API Key on the Dashboard API Keys page (format: sk-xxx).

If you prefer the terminal, follow the manual CLI setup guide instead. CC Switch is the easier path when you don't want to touch environment variables or config files. CLI setup guide

Which tools can use Router One through CC Switch

CC Switch v4.0.5 manages ten tools. For Claude Code, Claude Desktop, Codex, Gemini CLI and Grok Build it switches the one active provider; for OpenCode, OpenClaw, Hermes, Pi and MiniMax Code it writes several providers side by side. With Router One:

ToolCC Switch modeRouter One setting
Claude CodeSwitchhttps://api.router.one (native Anthropic Messages)
CodexSwitchhttps://api.router.one/v1 (native Responses)
OpenCode, OpenClaw, PiCoexistThe values from each tool's Router One guide (linked in step 3)
Gemini CLISwitchNot supported: Router One does not serve Gemini's native protocol

Claude Desktop, Grok Build, Hermes and MiniMax Code are not covered by this guide.

1

Install CC Switch

CC Switch is open source and ships installers for macOS 12 or later, Windows 10 or later, and Linux (x86_64 or ARM64 with glibc 2.35+ and WebKitGTK 4.1).

Via Homebrew (recommended):

bash
brew install --cask cc-switch

Or download the .dmg from the GitHub Releases page (one Universal build for Apple Silicon and Intel Macs) and drag CC Switch into Applications. The app is signed and notarized by Apple, so it opens without extra steps.

Download the installer from the GitHub Releases page: CC-Switch-v{version}-Windows.msi (double-click to install), or the portable CC-Switch-v{version}-Windows-Portable.zip (extract and run CC-Switch.exe). Windows on ARM has -arm64 builds of both.

If the .msi does not respond when opened, right-click the file -> Properties -> check "Unblock" at the bottom, then run it again.

Debian / Ubuntu — download the .deb from the GitHub Releases page, then:

bash
sudo dpkg -i CC-Switch-v*-Linux-*.deb
sudo apt-get install -f

Fedora and other RPM distributions — install the .rpm from the same page:

bash
sudo dnf install ./CC-Switch-v*-Linux-*.rpm

Other distributions — use the universal AppImage:

bash
chmod +x CC-Switch-v*-Linux-*.AppImage
./CC-Switch-v*-Linux-*.AppImage

Arch Linux — install from the AUR:

bash
paru -S cc-switch-bin
2

Install the CLI tool you want to use

CC Switch manages configuration for existing CLI tools — it does not install them. If you don't have one yet, install Claude Code or Codex:

bash
# Claude Code
npm install -g @anthropic-ai/claude-code
# Codex
npm install -g @openai/codex
Need help installing Node.js or the CLI itself? The manual CLI setup guide covers each operating system step by step. CLI setup guide
3

Add Router One as a provider

Open CC Switch, select the tool in the sidebar, and click "+" (Add Provider) in the top-right corner of the page. Every tool takes these two values:

NameRouter One (any label you like)
API Keysk-your-api-key — the key you created in step 0

The rest depends on the tool:

Choose the "Custom Configuration" preset and set its JSON to the two variables Claude Code uses for a gateway:

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.router.one",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-router-one-key"
  }
}

The key goes in ANTHROPIC_AUTH_TOKEN. ANTHROPIC_API_KEY is not required for Router One and makes Claude Code ask for an extra approval, so remove it if the editor adds one. The base URL has no /v1.

Choose the "Custom Configuration" preset, put your Router One key in the editor's auth.json part, and point the config.toml part at Router One's native Responses endpoint. Keep the other lines the preset writes:

toml
model_provider = "custom"
model = "openai/gpt-5.6-sol"

[model_providers.custom]
name = "custom"
base_url = "https://api.router.one/v1"
wire_api = "responses"

What CC Switch writes when you switch: the key goes into experimental_bearer_token under that [model_providers.<id>] block in ~/.codex/config.toml, and the preset also sets requires_openai_auth = true. It does not write the key to ~/.codex/auth.json, and with local routing off a direct switch deletes the official auth.json login unless Settings → App config → Codex App Enhancements → Keep official login for direct switches is on.

Pick a model whose page lists POST /v1/responses: GPT-family, DeepSeek V4 and Grok chat IDs. Router One's own one-click setup writes env_key instead (see the Codex Responses API guide), so use one of the two setups, not both. Codex Responses API guide

These are coexist-mode tools: clicking "Add" ("Enable" for Pi) writes Router One into the tool's own config next to your other providers, and you pick the model inside the tool. Use the base URL and model IDs from the tool's Router One guide:

Keep CC Switch's local routing off for Router One: in v4 the Direct / Routing tabs on a tool's page only change the view; routing starts only after "Start routing", and "Back to direct" turns it off. Claude Code reaches Router One over native Anthropic Messages and Codex over native Responses, so nothing needs converting; local routing and its API format conversion are CC Switch features, not Router One ones. With routing on, the tool's config holds 127.0.0.1:15721 and the placeholder key PROXY_MANAGED instead of Router One's address and your key. You also don't need CC Switch's OAuth Authentication Center, which signs in to other vendors' subscriptions; CC Switch's own README warns that this may violate those vendors' terms of service.
4

Switch and verify

Select the Router One card in CC Switch and click "Enable" to make it the active provider. CC Switch writes only the connection details (endpoint, key and model) into the tool's own config files and leaves the rest of each file as it is.

Claude Code picks up the switch immediately — no restart needed. For Codex, restart the terminal or the CLI session. Coexist tools need no switch: pick the Router One model inside the tool.

Then launch the CLI as usual, e.g.:

bash
claude
# or
codex

Checked against CC Switch v4.0.5 on 2026-10-09, per its README and user manual (v4.0, first released as 4.0.4 on 2026-10-07, redesigned the interface). CC Switch is a third-party open-source project (github.com/farion1231/cc-switch). Router One is not affiliated with it — if installation fails, check the project's issues page.