Login
Back to Blog
EnglishTutorial

How to Switch Claude Code to Crazyrouter: Base URL, Setup, and Model Routing

Move Claude Code to Crazyrouter in minutes. Update your base URL, keep your existing workflow, access more models, and reduce cost with one API gateway.

C
Crazyrouter Team
February 15, 2026 / 1702 views
Share:
How to Switch Claude Code to Crazyrouter: Base URL, Setup, and Model Routing

If you use AI coding agents like Claude Code, OpenAI Codex, or Gemini CLI, you know the pain of managing API keys, base URLs, and config files across multiple tools. CC-Switch solves this with a single desktop app — and Crazyrouter is a fully supported provider out of the box.

What is CC-Switch?#

CC-Switch is an open-source desktop application (18,000+ stars on GitHub) built with Tauri 2 that lets you manage all your AI CLI coding agents from one place:

  • Claude Code — Anthropic's terminal AI assistant
  • OpenAI Codex — OpenAI's coding agent
  • Gemini CLI — Google's command-line AI tool
  • OpenCode — Open-source AI coding assistant

Instead of manually editing ~/.claude/settings.json, ~/.codex/auth.json, or ~/.gemini/.env every time you want to switch providers, CC-Switch gives you a clean GUI with one-click switching.

Why Use Crazyrouter with CC-Switch?#

Crazyrouter provides unified API access to 300+ AI models through a single endpoint. When paired with CC-Switch, you get:

FeatureBenefit
One API key for everythingAccess Claude, GPT, Gemini, and more without separate accounts
One-click switchingSwitch between Crazyrouter and other providers instantly via system tray
Automatic config syncCC-Switch writes the correct config files for each tool
Cost savingsCompetitive pricing with pay-as-you-go billing
30% first top-up bonusExclusive for CC-Switch users (details below)

Setup Guide#

Step 1: Install CC-Switch#

Download CC-Switch for your platform:

  • Windows: MSI installer or portable ZIP from GitHub Releases
  • macOS: brew install --cask farion1231/tap/cc-switch
  • Linux: DEB, RPM, AppImage, or Flatpak available

Step 2: Add Crazyrouter as a Provider#

  1. Open CC-Switch
  2. Click "Add Provider"
  3. Fill in the configuration:
FieldValue
NameCrazyrouter
API Base URLhttps://crazyrouter.com
API KeyYour Crazyrouter API token (starts with sk-)

Don't have a Crazyrouter account yet? Sign up here to get the exclusive CC-Switch bonus.

  1. Click Save

Step 3: Configure Models (Optional)#

CC-Switch supports granular model configuration with 4 tiers:

  • Haiku tier — Fast, lightweight models (e.g., claude-sonnet-4-20250514)
  • Sonnet tier — Balanced performance (e.g., claude-sonnet-4-20250514)
  • Opus tier — Maximum capability (e.g., claude-opus-4-20250514)
  • Custom — Any model available on Crazyrouter

Since Crazyrouter supports 300+ models, you can configure any combination across tiers.

Step 4: Switch with One Click#

Once configured, switching to Crazyrouter is instant:

  • From the app: Click the Crazyrouter entry in your provider list
  • From system tray: Right-click the CC-Switch icon → select Crazyrouter
  • Via deep link: Use ccswitch:// protocol links for one-click import

CC-Switch automatically updates the config files for whichever AI tools you have installed.

MCP Server Management#

CC-Switch also provides a unified panel for managing MCP (Model Context Protocol) servers across all your AI tools. This means you can:

  • Add MCP servers once and sync them to Claude Code, Codex, and Gemini CLI
  • Toggle servers on/off per tool
  • Import/export MCP configurations
  • Use built-in templates for common servers (filesystem, fetch, etc.)

This works seamlessly with Crazyrouter since MCP server configuration is independent of your API provider.

Speed Testing#

CC-Switch includes a built-in speed test feature. You can measure the latency of your Crazyrouter endpoint compared to other providers, helping you choose the fastest option for your region.

Exclusive CC-Switch Bonus#

Users who sign up for Crazyrouter through CC-Switch get a 30% bonus on their first top-up:

  1. Register at crazyrouter.com/register?ref=cc-switch
  2. Use redemption code CCSWITCH on your first top-up
  3. Receive 30% extra credits automatically

For example, if you top up 10,youllreceive10, you'll receive 13 in credits.

Quick Reference#

Crazyrouter API Configuration#

code
API Base URL: https://crazyrouter.com
API Key: sk-xxxxxxxxxxxx (create at crazyrouter.com → API Tokens)

Supported Tools#

ToolConfig File Updated by CC-Switch
Claude Code~/.claude/settings.json
OpenAI Codex~/.codex/auth.json + config.toml
Gemini CLI~/.gemini/.env + ~/.gemini/settings.json
OpenCode~/.opencode/config.json

System Requirements#

  • Windows 10+, macOS 10.15+, or Linux (Ubuntu 22.04+, Debian 11+, Fedora 34+)
  • Node.js 18+ (for Claude Code / Gemini CLI)
  • Any of the supported AI coding tools installed

Summary#

CC-Switch eliminates the hassle of managing multiple AI coding agent configurations. Combined with Crazyrouter's unified API access to 300+ models, you get a streamlined workflow:

  1. One app to manage all your AI coding tools
  2. One API key to access all models
  3. One click to switch between providers

Get started by downloading CC-Switch and signing up for Crazyrouter with the exclusive 30% first top-up bonus.

Implementation Guides

Related Posts

How to Get a Claude API Key: Step-by-Step GuideTutorial

How to Get a Claude API Key: Step-by-Step Guide

"Step-by-step guide to getting a Claude API key from Anthropic or through Crazyrouter. Includes setup instructions, code examples, and pricing comparison."

Feb 15
AI Face Reading & Personal Color Analysis with GPT-image-2 — Two Viral Use Cases in One GuideTutorial

AI Face Reading & Personal Color Analysis with GPT-image-2 — Two Viral Use Cases in One Guide

Build AI face reading and personal color season analysis tools using GPT-image-2 via Crazyrouter API. Full Python, curl, and Node.js code.

May 1
Crazyrouter Codex CLI: Use Codex with One API Key and an OpenAI-Compatible GatewayTutorial

Crazyrouter Codex CLI: Use Codex with One API Key and an OpenAI-Compatible Gateway

Set up OpenAI Codex CLI through Crazyrouter with one command on Windows, macOS, and Linux. Use an OpenAI-compatible base URL, one API key, and model routing for GPT, Claude, Gemini, DeepSeek, and Qwen-style workflows.

Jun 4
Best AI Assistants for Telegram, WhatsApp & Discord in 2026Tutorial

Best AI Assistants for Telegram, WhatsApp & Discord in 2026

Looking for an AI assistant that works across your favorite messaging apps? Whether you want to chat with Claude on Telegram, use GPT-4 through WhatsApp

Jan 26
text-embedding-3-small Dimensions Explained: How to Pick the Right Size for Quality, Speed, and CostTutorial

text-embedding-3-small Dimensions Explained: How to Pick the Right Size for Quality, Speed, and Cost

At 1536 dimensions, one text-embedding-3-small vector stored as float32 uses 6,144 bytes, so 10 million vectors need about 61 GB before index overhead. That number catches teams off guard when retr...

Mar 26
Function Calling Across Providers: OpenAI, Claude, Gemini, and Router-Friendly PatternsTutorial

Function Calling Across Providers: OpenAI, Claude, Gemini, and Router-Friendly Patterns

A practical guide to function calling across OpenAI, Claude, and Gemini, with patterns that make provider switching easier through Crazyrouter.

Mar 18