← Back to Leaderboard
CSaladDay

SaladDay/cc-switch-cli

GitHub Trending ×7d

Rust CLI and TUI for managing coding assistants, providers, and MCP settings

View on GitHub ↗
Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated 2d ago
Latest Release
v5.11.4
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption19/25
Release Cadence20/20
License Clarity20/20
CLI
Total Stars
★ 5,664
24h Growth
+4
7d Growth
+68
Forks
535

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

SaladDay/cc-switch-cli Star History (2025-11-23 - 2026-12-04) ALL-TIME STAR HISTORY (2025-11 – 2026-12) +5.6k in 376d · avg +15/day 6k 3k 0 2025-11-23: ★ 502025-12-20: ★ 2292026-01-17: ★ 3082026-02-14: ★ 5632026-03-14: ★ 1,0352026-04-11: ★ 1,7382026-05-09: ★ 2,4582026-06-06: ★ 3,2282026-07-04: ★ 3,9032026-08-01: ★ 4,4152026-08-29: ★ 4,8072026-09-26: ★ 5,1152026-10-24: ★ 5,3452026-11-16: ★ 5,4912026-12-04: ★ 5,664 ★ 5.7k 2025-11 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

CC Switch CLI is a Rust fork of the CC Switch desktop application. It reuses the desktop service layer behind a full-screen TUI and a scriptable cc-switch entry point. It manages external coding assistants rather than performing inference. SQLite holds providers, MCP definitions, prompts, and app state in ~/.cc-switch/cc-switch.db; skill source files live under skills/, and legacy config.json remains for import and migration.

Managed state is distinct from the files each assistant consumes. For example, Claude uses ~/.claude/settings.json for provider settings and ~/.claude.json for MCP, while Codex uses config.toml and auth.json in its resolved configuration directory. By default, live sync skips uninitialized apps. The service layer uses scoped RwLock guards and writes a temporary file before renaming it into place. An optional relay uses a Unix-domain-socket supervisor with a separate worker for each active supported app route.

Key Capabilities & Differentiators

The CLI manages providers for Claude Code, Codex, Gemini CLI, OpenCode, Hermes, OpenClaw, and Pi. --app selects the target, while provider switch and use change its global provider. start claude and start codex instead select a provider for the launched process only. The tool also syncs MCP definitions, imports token and cost data from local sessions, and exposes a 30-day app and model breakdown in the TUI. Shared Codex launches on macOS and Linux can reuse session files, archives, and the SQLite history index across providers.

Proxy routing is narrower than provider management: it serves Claude Code, Codex, and Gemini. Routes have independent ports and can be enabled or disabled separately. The supervisor starts on the first active route and exits after the last route is disabled; foreground mode can be used for debugging when daemon-managed routes are inactive. The relay adapts OpenAI Responses and Chat Completions providers and lets Codex use Anthropic Messages-compatible endpoints. Examples of supported upstreams include DeepSeek, Kimi, Qwen, and OpenRouter, subject to the route and protocol.

Trade-offs & Limitations

For one assistant and one provider, native configuration has fewer moving parts: it avoids a separate database and another tool writing client files. The CLI earns its place when switching providers, synchronizing MCP definitions, or collecting usage data is a recurring task. Compared with upstream CC Switch Desktop, it favors shell automation and terminal interaction while retaining WebDAV interoperability. Global switches and per-launch overrides are not interchangeable, and cross-platform installation does not imply that the Unix-socket proxy supervisor is available on Windows.

Codex shared history is not a guarantee that any provider can resume any session. Launch directories under .cc-switch-launches/ must remain in place because Codex records session paths through them. Per-thread writer locks are shared, and overrides such as --config, --profile, and --oss are unavailable in shared mode. A new upstream must also accept the previous conversation content, including encrypted reasoning. The MIT license covers the tool, not upstream service access or terms; evaluate credential handling and data destinations separately when using WebDAV or third-party relays.

Hardware & Deployment Guide

Install a prebuilt binary for macOS, Linux, or Windows, or use brew install cc-switch-cli and continue to upgrade through Homebrew. The macOS release offers a universal binary; Linux provides x64 and ARM64 musl builds, and installer auto mode does not fall back to glibc. Source builds require Rust 1.85+ and run cargo build --release from src-tauri/. The CLI itself does not run models: local overhead comes from configuration and history storage and any enabled proxy workers. Requests still go to the selected upstream endpoints.

Start with cc-switch config path and cc-switch config validate to check the active configuration. Setting CC_SWITCH_CONFIG_DIR selects a new root without migrating existing data. Local backup rotation keeps 10 copies. Before upgrading across desktop and CLI versions, back up configuration and check schema compatibility: v5.11.3 restored startup and WebDAV compatibility for schemas 21 and 22; v5.11.4 restored compatibility with desktop v4.0.33 schema 26 and added managed ChatGPT account selection for Codex.

State management: cc-switch.db stores managed configuration, while skill source files live under skills/ and legacy JSON serves import and migration paths.
Live configuration: Atomic file replacement and default skipping of uninitialized apps reduce the risk of partial writes and unexpected config directories.
Provider scope: provider switch and use change the global provider; start claude and start codex scope the selection to a single launch.
Codex history: --shared-sessions shares session files and the SQLite index while retaining per-provider launch directories and shared writer locks.
Model relay: A Unix-socket supervisor starts one worker per active Claude, Codex, or Gemini route, with configurable ports and token accounting.
Interoperability: WebDAV sync works with upstream CC Switch; v5.11.4 restores desktop v4.0.33 schema 26 compatibility.
Best For

Terminal-first developers who use multiple coding assistants or providers and need scriptable configuration, MCP sync, or separate provider choices across terminals.

Skip If

Native settings already cover a single-assistant workflow, or you need a self-contained offline inference runtime or daemon-managed proxy routes on Windows.

Reviewed on 2026-11-29 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bash

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
cc-switch-cli ★5.7k+68RustMITRust CLI and TUI for managing coding assistants, providers, and MCP settings
impeccable121.7k+3.5kRustApache-2.0Coding-agent design skills with a Rust CLI for repeatable UI checks
rtk88.7k+684RustApache-2.0A local Rust CLI wrapper that trims command output before coding agents read it.
ECC316.1k+4.2kJavaScriptMITPlugins and CLI workflows for planning, reviewing, and verifying agent-written c

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/SaladDay/cc-switch-cli.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

SaladDay/cc-switch-cli Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about cc-switch-cli

How do I run two Codex providers without changing the global configuration?

cc-switch use <id> changes the global provider. cc-switch start codex <id> selects a provider only for the launched process. On macOS and Linux, --shared-sessions lets those launches share the configured Codex home's session files and SQLite history index through persistent per-provider directories. A second shared launch for the same provider is rejected while the first is running.

Does the CLI need a GPU, and what should I size for?

The Rust CLI manages local files, SQLite state, and optional proxy routes; it does not run model inference and has no GPU or VRAM requirement of its own. Size the CLI host for local disk growth from backups and session history, and test proxy overhead at your expected concurrency. Hardware requirements for any separately hosted model are independent of the CLI.

Can we deploy it commercially and keep data on infrastructure we control?

The MIT license permits commercial use and modification, subject to retaining the required copyright and license notices when redistributing the software. The CLI and relay run locally, but that does not make inference offline or override provider terms. Before enabling WebDAV or a third-party endpoint, check what configuration and credentials are synchronized and where request data is sent.

When is this preferable to native settings or upstream CC-Switch Desktop?

Use native settings if you have one assistant, one provider, and no need for cross-client MCP sync or usage tracking. Choose the upstream CC-Switch desktop app if a GUI is the priority. The CLI fork fits terminal-first workflows that need scripted changes or per-launch provider selection. When alternating between desktop and CLI, check database schema compatibility before upgrading either one.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining SaladDay/cc-switch-cli? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature SaladDay/cc-switch-cli on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare