Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gravitex.ai/llms.txt

Use this file to discover all available pages before exploring further.

1. Overview

CC Switch is a Tauri 2-based desktop app that unifies management of Claude Code, Codex CLI, Gemini CLI, OpenCode and OpenClaw. Switch API providers, models and keys through a GUI โ€” no more hand-editing ~/.config/*, TOML or JSON files across five different tools.

One-click switching

Manage 5 CLI tools in one GUI โ€” no more manual config editing

Multi-model aggregation

Pair with GravitexAI for one key to Claude / GPT / Gemini / Kimi

Usage tracking

Built-in Usage Dashboard for spend, requests and token usage

Smart failover

Local proxy with hot-switching, auto-failover and circuit breaking
Project info

2. Core Features

2.1 Provider management

  • 50+ presets built-in (including AWS Bedrock, NVIDIA NIM, etc.)
  • Custom gateway support (which is how GravitexAI plugs in)
  • One-click switching, drag-to-reorder, import/export configs
  • System-tray quick access

2.2 MCP server management

  • Centrally manage MCP server configs across all CLI tools
  • Two-way sync โ€” change once, applied everywhere

2.3 More

FeatureDescription
Prompts managerMarkdown editor with cross-app sync
Skills installerInstall from GitHub repo or ZIP file
Session browserView and resume conversation history
Cloud syncDropbox, OneDrive, iCloud, WebDAV
Deep linkccswitch:// for one-click config import

3. Quick Start

Step 1 โ€” Install CC Switch

Homebrew:
brew install --cask cc-switch
Or download the DMG from GitHub Releases.
System requirements: Windows 10+, macOS 10.15 (Catalina)+, Ubuntu 22.04+ / Debian 11+ / Fedora 34+.

Step 2 โ€” Get a GravitexAI key

1

Sign in

Open the GravitexAI console and register or log in.
2

Create a token

Visit API Keys and click โ€œCreate new tokenโ€.
3

Copy the key

Copy the generated key (format sk-xxxxxxxxxx) and store it safely.

Step 3 โ€” Configure GravitexAI in CC Switch

1

Open Provider management

Launch CC Switch, open the Provider page, click โ€œAddโ€, and choose Custom Gateway.
2

Fill in the form

FieldValue
NameGravitexAI
API URLhttps://api.gravitex.ai
API KeyPaste the key from Step 2
Enabled appsAt least enable Claude Code (turn on Codex / Gemini CLI / OpenCode / OpenClaw as needed)
Each CLI tool expects a slightly different Base URL:
  • Claude Code: https://api.gravitex.ai (no /v1)
  • Codex CLI / OpenCode: https://api.gravitex.ai/v1 (must end with /v1)
  • Gemini CLI: https://api.gravitex.ai (no /v1)
CC Switch usually applies the right format per app, but if you set it manually, use the table above.
3

Save

Click โ€œAddโ€. CC Switch syncs this configuration to the config files of every CLI tool you enabled.

Step 4 โ€” Add models

Add the GravitexAI model IDs you intend to use: Claude โ€” standard models
Display nameModel IDNotes
Claude Opus 4.7claude-opus-4-7Latest flagship โ€” top choice for complex tasks
Claude Sonnet 4.6claude-sonnet-4-6Strong coding ability, best value
Claude Sonnet 4.5claude-sonnet-4-5-20250929200K long context
Claude Haiku 4.5claude-haiku-4-5-20251001Fast and light โ€” great for the haiku thread
GPT / Gemini / Kimi(mix and match under the same provider)
Display nameModel IDNotes
GPT 5.5gpt-5.5OpenAIโ€™s latest flagship
GPT 5.1 Codexgpt-5.1-codexCodex-only โ€” pair with Responses API in OpenCode
Gemini 3.5 Flashgemini-3.5-flashHigh throughput / low latency
Gemini 3.1 Pro Previewgemini-3.1-pro-previewDeep reasoning
Kimi K2kimi-k2-250905Great price/perf for long text and Chinese tasks
Model picks:
  • Daily coding: claude-sonnet-4-6
  • Complex architecture: claude-opus-4-7
  • Quick Q&A / haiku thread: claude-haiku-4-5-20251001
  • Cost-optimized: kimi-k2-250905 or gemini-3.5-flash
See the full ID list in the GravitexAI model catalog.

Step 5 โ€” Switch and launch a CLI

With GravitexAI set as the current Provider, every enabled CLI tool automatically picks up the configuration. Launch any of them:
# Claude Code
claude

# Codex
codex

# Gemini CLI
gemini

# OpenCode
opencode

4. Usage Guide

4.1 Manage multiple CLI tools

CC Switch can drive these tools concurrently: All tools share the same Provider config โ€” switching takes effect everywhere.

4.2 Local proxy

CC Switch ships a local proxy server that provides:
  • Hot-switching โ€” change Provider without restarting the CLI
  • Auto-failover โ€” fall back to a secondary Provider if the current one is down
  • Circuit breaking โ€” stop sending requests when a Provider keeps failing
Configure GravitexAI main + GravitexAI backup key as failover targets for maximum availability.

4.3 Backups

  • Auto-backup keeps the last 10 versions
  • Import / export full configs
  • Cloud sync via Dropbox, OneDrive, iCloud, WebDAV

5. FAQ

Windows 10+, macOS 10.15 (Catalina)+, and major Linux distros (Ubuntu 22.04+, Debian 11+, Fedora 34+, Arch Linux).
Check in order:
  1. API key starts with sk- and has no extra whitespace / newlines
  2. Base URL for Claude Code is https://api.gravitex.ai (no /v1)
  3. Account has sufficient balance โ€” see the GravitexAI console
  4. CC Switch actually wrote the config to ~/.claude/
  5. Restart the terminal โ€” env-var changes need a new session
Codex-series models only support the Responses API. Add "apiCompatibility": "responses" for that model in opencode.jsonc โ€” see the OpenCode guide for details.
On first launch, CC Switch scans ~/.claude/, ~/.codex/, ~/.config/opencode/ and similar paths and imports existing setups automatically. You can also use Import config for backup files.
Thinking models force a chain-of-thought before answering โ€” great for complex reasoning and architectural design. Standard models reply faster and suit everyday coding. GravitexAI variants ending in -thinking are the reasoning versions.
No. CC Switch is fully open-source (MIT). Only the API calls cost money โ€” billed at GravitexAIโ€™s per-token rates.

6. Best Practices

Pro tips:
  1. One Provider to rule them all โ€” point every CLI at GravitexAI to avoid juggling multiple keys/URLs.
  2. Use hot-switching โ€” flip between claude-opus-4-7 / claude-sonnet-4-6 / claude-haiku-4-5-20251001 based on task complexity.
  3. Enable auto-failover โ€” pair a primary and backup Provider (or two keys) for continuity.
  4. Back up regularly โ€” turn on cloud sync so reinstalls donโ€™t wipe your config.
  5. Pair with MCP โ€” manage MCP servers centrally so all CLI tools share the same external capabilities.

7. References

CC Switch on GitHub

Source, issues and latest releases

Claude Code guide

Detailed Claude Code setup

GravitexAI console

Manage keys and usage

Model catalog

Browse 100+ mainstream AI models