# Repository Briefing: farion1231/cc-switch
> Source: https://repoforai.com/repo/farion1231/cc-switch (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/farion1231/cc-switch
- **Official Docs / Website**: https://ccswitch.io
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Rust
- **License**: MIT
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v4.0.47 (2026-12-02) — https://github.com/farion1231/cc-switch/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP
- **Momentum**: 159,084 ★ total (+169 24h / +1,692 7d) · 10,383 forks
- **Topics**: `ai-tools`, `claude-code`, `codex`, `deepseek-harness`, `desktop-app`, `grok`, `grokbuild`, `hermes`, `kimi-code`, `mcp`, `open-source`, `opencode`
- **When to Use**: Best for: Developers who use several AI coding clients and want one workstation app for provider switching, selective MCP sync, and optional failover or model aggregation on supported clients. Skip if: One client's native settings are enough, or your primary requirement is local inference or a centrally administered team gateway.

## Overview
```text
### Architecture & Core Mechanics
CC Switch is a Tauri desktop app that manages the native configuration of existing AI coding clients. The repository separates the Rust desktop side in `src-tauri/` from the TypeScript frontend in `src/`. The frontend uses Vite, `@tauri-apps/api` for desktop integration, and CodeMirror packages for JSON and Markdown editing. Provider switches update connection fields—endpoint, key, and model—rather than replacing unrelated hooks, plugins, or MCP settings.

In Direct mode, the coding client calls its provider without CC Switch forwarding requests. In Routing mode, a local forwarder handles requests and can translate supported API formats and fail over between providers. Aggregation exposes models from multiple providers in one client menu and routes each request according to the selected model. MCP management is separate from the inference path: CC Switch imports or creates server definitions and syncs them to selected clients.

### Key Capabilities & Differentiators
More than 90 provider presets, including AWS Bedrock and NVIDIA NIM, sit alongside custom configurations. Claude Code and Codex support both routing and aggregation; for example, routing can connect Claude Code to an OpenAI- or Gemini-format provider or Codex to a Claude provider. The modes are not uniform across clients: Claude Desktop offers model mapping rather than general local routing or aggregation, while clients such as OpenCode and Hermes can keep multiple provider entries instead of switching a single active entry.

Beyond provider configuration, CC Switch can distribute MCP definitions and Skills to selected clients, maintain prompts per client, and turn supported session logs into a searchable reading view. Token and spend tracking can work without local routing. Antigravity gained routing, failover, and aggregation in v4.0.46, but those modes do not yet translate to or from OpenAI Responses or Anthropic Messages.

### Trade-offs & Limitations
For one client with a stable provider, native configuration has fewer moving parts. CC Switch earns its place when switching providers or keeping MCP configurations aligned across clients becomes recurring work. Direct mode preserves the client-to-provider request path; routing adds a local process that must remain available and whose compatibility needs testing. Aggregation is model-based dispatch, not a guarantee that every provider's features work identically through every client.

Compared with a shared API gateway, the practical advantage is workstation integration: CC Switch edits native configuration and can switch providers from the tray. Do not assume that optional config sync provides centralized policy, team credential administration, or fleet-wide observability. Before wider rollout, validate the modes for each client and the credential handling of each upstream. Sync encryption protects the upload, not requests sent to a chosen provider or relay.

### Hardware & Deployment Guide
Install on Windows 10 or later via MSI or portable ZIP, with ARM64 builds available. macOS 12 or later has a Homebrew cask and a signed, notarized Universal build. Linux packages cover x86_64 and ARM64 in DEB, RPM, and AppImage formats; the baseline is glibc 2.35+ and WebKitGTK 4.1. Flatpak is a self-build option, not an official release artifact.

Run CC Switch on the workstation that owns the client configurations. It is not an inference server: local configuration work does not require a GPU, and calls to hosted providers still need network access. A configuration switch takes effect without a restart in Claude Code, whereas Codex and Gemini CLI need a CLI or terminal restart and Claude Desktop needs an app restart. In v4.0.47, configuring an encryption key for optional WebDAV or S3 sync encrypts data before upload and prevents devices with a mismatched key from overwriting it.
```

## Key Capabilities
```text
- Native config updates: Provider switching replaces the endpoint, key, and model while preserving unrelated settings such as hooks and MCP entries.
- Request paths: Direct mode bypasses the forwarder; routing adds failover and supported format conversion; aggregation sends each selected model to its own provider.
- MCP distribution: Import existing entries or add custom definitions, then opt supported clients into sync individually.
- Usage visibility: Token and cost tracking can work without local routing; quota and balance information can appear on provider cards and in the tray.
- Sync security: v4.0.47 adds optional client-side encryption for WebDAV and S3 and prevents devices with mismatched keys from overwriting remote data.
- Desktop packaging: Universal macOS builds, Windows installers and portable ZIPs, and x86_64/ARM64 Linux packages cover workstation installs.
```

## Quick Start / Clone
```bash
brew install --cask cc-switch
```
