cc-switch
БесплатноЗапускает вложенные скриптыНе проверенManage farion1231/cc-switch, a cross-platform desktop and config manager for switching API providers, MCP servers, Skills, system prompts, and local failover…
от akillness★ 63 звезды на GitHubОб этом скилле
CC Switch (farion1231/cc-switch)
Source-pinned operator guide for farion1231/cc-switch (v3.13.0, MIT), an all-in-one Tauri desktop manager that unifies provider profiles, MCP configs, Skills, Prompts, and local HTTP failover proxying across Claude Code, Codex, Gemini CLI, OpenCode, and OpenClaw.
When to use this skill
- Installing or upgrading CC Switch (
brew tap farion1231/ccswitch && brew install --cask cc-switchon macOS, or official Windows/Linux releases). - Understanding CC Switch's SQLite + JSON storage architecture (
~/.cc-switch/cc-switch.db+~/.cc-switch/settings.json) and how switching updates live CLI files (~/.claude/settings.json,~/.codex/auth.json,~/.codex/config.toml,~/.gemini/.env, OpenCode/OpenClaw configs). - Configuring unified MCP synchronization, Skills discovery across
~/.claude/skills/,~/.codex/skills/,~/.gemini/skills/,~/.config/opencode/skills/, or local proxy auto-failover & circuit breakers. - Routing out: use
ccusagefor local JSONL token/cost reports,jarrodwatts-hudfor live statusline HUDs, andhappyfor encrypted mobile remote control.
Instructions
Run offline preflight first to inspect host CLI tools and SQLite availability:
python3 scripts/preflight.py --jsonInstall CC Switch safely and snapshot live configs BEFORE switching:
- macOS Homebrew tap:
brew tap farion1231/ccswitch brew install --cask cc-switch - Before importing or applying provider switches for the first time, back up existing live configs (
~/.claude/settings.json,~/.codex/auth.json,~/.codex/config.toml,~/.gemini/.env,~/.gemini/settings.json, OpenCode/OpenClaw configs) so manual rollback is trivial.
- macOS Homebrew tap:
Respect the SQLite SSOT and live-sync model (v3.7+):
- Provider records, MCP definitions, prompts, and proxy settings live in SQLite (
~/.cc-switch/cc-switch.db), while local preferences mirror to~/.cc-switch/settings.json. - Switching a provider writes atomically to the active tool's live configuration files. When using CC Switch's local proxy takeover/auto-failover mode, note that live configs point
ANTHROPIC_BASE_URL/ provider endpoints to the local CC Switch proxy while active.
- Provider records, MCP definitions, prompts, and proxy settings live in SQLite (
Enforce strict secret and backup hygiene:
- Never dump, echo, log, or commit API keys,
auth.json,.env, or~/.cc-switch/cc-switch.dbcontents into chat output, skill files, or repositories. - Require explicit user confirmation before overwriting live
~/.claude/,~/.codex/,~/.gemini/, or WebDAV sync targets, or importingccswitch://deep links from untrusted sources.
- Never dump, echo, log, or commit API keys,
Examples
- Pre-switch backup and verification:
Copy
~/.claude/settings.jsonand~/.codex/config.tomlto a private timestamped backup directory outside git -> open CC Switch -> test endpoint latency -> switch active provider. - Triage broken CLI auth after stopping CC Switch proxy:
Inspect whether live
~/.claude/settings.jsonstill pointsANTHROPIC_BASE_URLto localhost proxy port; disable proxy takeover in CC Switch or restore the backed-up live provider profile.
Best practices
- Never inspect or print raw API token values when diagnosing config sync issues; inspect only key names (
base_url, model names, schema keys). - Keep WebDAV / cloud database backups encrypted or private, since
cc-switch.dbstores provider credentials. - Avoid simultaneously running another config-rewriting manager against the same live
~/.claude/or~/.codex/files without coordination.
References
- Pinned upstream features, config file targets, and storage notes: references/upstream.md
- Pinned source provenance and file digests: references/source.json
- Offline manifest preflight helper: scripts/preflight.py
- Eval suite: evals/evals.json
Установить cc-switch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBashВложенные файлы
FAQ
Что делает скилл cc-switch?
Manage farion1231/cc-switch, a cross-platform desktop and config manager for switching API providers, MCP servers, Skills, system prompts, and local failover proxies across Claude Code, Codex, Gemini CLI, OpenCode, and OpenClaw. Use when installing CC Switch (brew install --cask cc-switch), backing up or migrating ~/.cc-switch/cc-switch.db, configuring multi-CLI MCP/Skills sync, or troubleshooting local proxy failover endpoints. Do not use for historical token cost analytics (route to ccusage) or terminal statusline HUDs (route to jarrodwatts-hud). Triggers on: cc-switch, farion1231/cc-switch, provider switcher, cc-switch.db, failover proxy.
Как установить скилл cc-switch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cc-switch запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic