Loading...
Loading...
Cross-platform CLI tool for managing Claude Code, Codex, Gemini, OpenCode & OpenClaw providers, MCP servers, prompts, skills, and proxies.
npx skill4agent add aradotso/devtools-skills cc-switch-cliSkill by ara.so — Devtools Skills collection.
curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bash~/.local/binCC_SWITCH_INSTALL_DIRCC_SWITCH_INSTALL_DIR=/usr/local/bin curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bashCC_SWITCH_FORCE=1 curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bashcurl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-darwin-universal.tar.gz
tar -xzf cc-switch-cli-darwin-universal.tar.gz
chmod +x cc-switch
sudo mv cc-switch /usr/local/bin/
xattr -cr /usr/local/bin/cc-switch # Remove quarantine attributecurl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-x64-musl.tar.gz
tar -xzf cc-switch-cli-linux-x64-musl.tar.gz
chmod +x cc-switch
sudo mv cc-switch /usr/local/bin/cc-switch-cli-windows-x64.zipcc-switch.exePATHgit clone https://github.com/saladday/cc-switch-cli.git
cd cc-switch-cli/src-tauri
cargo build --release
sudo cp target/release/cc-switch /usr/local/bin/--appclaudecodexgeminiopencodeopenclawcc-switch --app codex provider list
cc-switch --app gemini prompts activate custom-presetcc-switchcc-switch provider switch pro-account
cc-switch mcp synccc-switch provider list
cc-switch --app codex provider list # Codex-specificcc-switch provider currentcc-switch provider switch dev-apidev-apicc-switch provider add$ENV_VARcc-switch provider edit prod-accountcc-switch provider duplicate staging-api-copycc-switch provider delete old-endpoint./.claude/settings.local.jsoncc-switch provider export my-providercc-switch provider export my-provider --output ~/.claude/settings-prod.jsoncc-switch provider speedtest my-providercc-switch provider stream-check my-providercc-switch provider fetch-models my-providercc-switch mcp list
cc-switch --app codex mcp listcc-switch mcp addcc-switch mcp edit filesystem-servercc-switch mcp delete old-servercc-switch mcp enable postgres-mcp --app claude
cc-switch mcp disable postgres-mcp --app codexcc-switch mcp validate node
cc-switch mcp validate /usr/local/bin/custom-binarycc-switch mcp sync
cc-switch --app gemini mcp syncclaude_desktop_config.jsonconfig.tomlcc-switch mcp import --app claudecc-switch prompts list
cc-switch --app gemini prompts listcc-switch prompts currentcc-switch prompts activate rust-expert.claude/CLAUDE.md.codex/AGENTS.mdcc-switch prompts deactivatecc-switch prompts createcc-switch prompts create typescript-tutor$EDITORvicc-switch prompts rename old-name new-namecc-switch prompts rename old-namecc-switch prompts edit rust-expertcc-switch prompts show rust-expertcc-switch prompts delete outdated-presetcc-switch skills list
cc-switch --app codex skills listcc-switch skills discover database
cc-switch skills discover postgrescc-switch skills install postgres-expertcc-switch skills uninstall postgres-expertcc-switch skills enable postgres-expert --app claude
cc-switch skills disable postgres-expert --app codexcc-switch skills scancc-switch skills import custom-tool --app claudecc-switch skills show postgres-expertcc-switch skills sync.skills/cc-switch skills refresh-repocc-switch proxy showcc-switch proxy start8080cc-switch proxy stopcc-switch proxy add-routecc-switch proxy remove-route /api/claudecc-switch config webdav showcc-switch config webdav setupcc-switch config webdav enable
cc-switch config webdav disablecc-switch config webdav synccc-switch env toolscc-switch env validate~/.config/cc-switch/%APPDATA%\cc-switch\config.jsonproviders.jsonmcp_servers.jsonprompts.jsonskills.json~/.claude/claude_desktop_config.json~/.claude/CLAUDE.md~/.codex/config.toml~/.codex/AGENTS.md~/.gemini/gemini.toml~/.gemini/GEMINI.md~/.opencode/config.toml~/.opencode/AGENTS.md~/.openclaw/config.toml~/.openclaw/AGENTS.md# List providers
cc-switch provider list
# Switch to production
cc-switch provider switch prod-api
# Verify
cc-switch provider current# Add filesystem MCP
cc-switch mcp add
# Select stdio, command: npx, args: -y @modelcontextprotocol/server-filesystem ~/projects
# Enable for Claude
cc-switch mcp enable filesystem-server --app claude
# Sync to live config
cc-switch mcp sync# Create new prompt
cc-switch prompts create senior-rust-dev
# Edit content in $EDITOR
# Activate for Claude
cc-switch --app claude prompts activate senior-rust-dev
# Verify
cat ~/.claude/CLAUDE.md# Discover available skills
cc-switch skills discover postgres
# Install
cc-switch skills install postgres-mcp
# Enable for Codex
cc-switch skills enable postgres-mcp --app codex
# Sync
cc-switch skills sync# Export current provider to Claude auto-load location
cc-switch provider export my-provider
# Or custom path
cc-switch provider export my-provider --output ~/Desktop/claude-config.jsoncc-switch mcp sync
cc-switch prompts activate <current-prompt>cc-switch mcp validate npxcc-switch mcp listcc-switch mcp synccc-switch prompts currentcc-switch prompts activate <name>cat ~/.claude/CLAUDE.mdcc-switch skills enable <skill-name> --app claudecc-switch skills synccc-switch config webdav showcc-switch config webdav syncls -la ~/.config/cc-switch/
chmod -R u+w ~/.config/cc-switch/CC_SWITCH_INSTALL_DIR~/.local/binCC_SWITCH_FORCE1CC_SWITCH_LINUX_LIBCglibcmuslmuslEDITORvi# Add a shared API provider
cc-switch provider add
# Name: shared-api
# Base URL: https://api.example.com/v1
# API key: $MY_API_KEY
# Model: claude-3-5-sonnet-20241022
# Switch Claude to this provider
cc-switch --app claude provider switch shared-api
# Switch Codex to the same provider
cc-switch --app codex provider switch shared-api
# Verify both
cc-switch --app claude provider current
cc-switch --app codex provider current# Create new skill
cc-switch skills create --name custom-debugger
# Edit in $EDITOR, add content:
# ---
# name: custom-debugger
# description: Advanced debugging patterns for Rust
# triggers:
# - "debug this Rust code"
# - "add debugging instrumentation"
# ---
# # Custom Debugger Skill
# Use `dbg!()` for quick variable inspection...
# Save and exit editor
# Enable for Claude and Codex
cc-switch skills enable custom-debugger --app claude
cc-switch skills enable custom-debugger --app codex
# Sync
cc-switch skills sync# Speed test
cc-switch provider speedtest prod-api
# Stream health check
cc-switch provider stream-check prod-api
# Fetch available models
cc-switch provider fetch-models prod-api#!/bin/bash
# ci-setup.sh
# Install cc-switch
curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bash
# Add CI provider
cc-switch provider add \
--name ci-api \
--base-url "$CI_API_URL" \
--api-key "$CI_API_KEY" \
--model claude-3-5-sonnet-20241022
# Switch to it
cc-switch provider switch ci-api
# Export for downstream tools
cc-switch provider export ci-api --output ./claude-settings.json