CCS - Claude Code Switch
One command, zero downtime, multiple accounts
Switch between Claude accounts, GLM, Kimi and more instantly. Stop hitting rate limits. Keep working continuously.
The Problem
You're deep in implementation. Context loaded. Solution crystallizing. Then:
Momentum gone. Context lost. Productivity crater.
The Solution
CCS enables parallel workflows instead of sequential switching:
All running simultaneously. No context switching. No downtime.
Installation
Install CCS globally with npm:
Quick Start
Basic Usage
ccs # Claude subscription (default) ccs glm # GLM (cost-optimized) ccs kimi # Kimi (with thinking support) Multi-Account Setup
Manage multiple accounts for OAuth providers like Gemini, Antigravity, and more:
Accounts are stored in <code>~/.ccs/cliproxy/accounts.json</code> and can be managed via web dashboard.
Sync Shared Data
ccs sync Core Features
Model Switching
ccs # Claude ccs agy # Antigravity ccs glm # GLM-4.7 ccs kimi # Kimi ccs gemini # Gemini 2.5 Pro ccs codex # GPT-5.1 Codex Max Slash Command Support
Use slash commands inside delegated sessions:
ccs glm "/cook create landing page" OAuth Authentication
Zero-config auth for supported models:
ccs gemini # Interactive OAuthccs gemini --auth # Save tokensIntegration with ClaudeKit
CCS works seamlessly with ClaudeKit commands. Use Claude for complex planning and GLM for simple execution:
Recommended Workflow
ccs "/plan add payment integration" ccs glm "/cook implement Stripe payment flow" ccs glm "/fix:test run payment tests" ccs "/review check payment implementation" Use Claude for:
- Complex planning
- Architecture decisions
- Code review
Use GLM for (81% cheaper):
- Simple implementations
- Testing & bug fixes
- Documentation updates
Use Kimi for:
- Long-context analysis
- Codebase reviews
- Multi-file refactoring
Provider Configuration
Configure specific settings for each AI model provider to optimize your workflow.
Antigravity Configuration
RecommendedConfigure Antigravity to use specific Claude models through a simple interactive menu:
ccs agy --config Pro Tip: Claude Opus 4.5 Thinking is recommended for complex coding tasks that require deep reasoning.
Verify Model Selection
After selecting a model, verify it by running a simple command:
ccs agy "What model are you using?" Expected output showing your selected model:
Logout from Antigravity
Clear your Antigravity session:
ccs agy --logout Expected output:
Multi-Account Management
Manage and switch between multiple Antigravity accounts:
ccs agy --auth ccs agy --auth --add --nickname work ccs agy --accounts ccs agy --use work ccs agy --config Gemini Configuration
Authenticate with Google OAuth to use Gemini models.
Step 1: Authenticate with Google
ccs gemini --auth A browser window will open for Google OAuth authentication. Complete the login in your browser to connect your Google account.
Expected output after successful authentication:
Step 2: Select Model (Optional)
ccs gemini --config After selecting a model:
Verify Your Selection
After configuration, verify the selected model:
ccs gemini "Which model are you using?" Logout from Gemini
Clear your Gemini session:
ccs gemini --logout Multi-Account Management
Manage multiple Google accounts for Gemini:
ccs gemini --auth ccs gemini --auth --add --nickname work ccs gemini --accounts ccs gemini --use work ccs gemini --config Codex Configuration
Authenticate with OpenAI OAuth.
This provider requires a paid OpenAI account. Free tier accounts are not supported - you need to subscribe to OpenAI models.
Step 1: Authenticate
ccs codex --auth A browser window will open for OpenAI authentication. Complete the login process in your browser.
Expected output:
Step 2: Verify Your Setup
After authentication, verify the setup:
ccs codex "Hello, which model are you using?" Logout from Codex
Clear your Codex session:
ccs codex --logout Multi-Account Management
Manage multiple OpenAI accounts for Codex:
ccs codex --auth ccs codex --auth --add ccs codex --auth --add --nickname work ccs codex --accounts GLM Configuration
Z.AI🚀 New Update: Z.AI has introduced GLM-4.7 (22 December 2025) - the latest and most advanced model! Check the official announcement: https://z.ai/blog/glm-4.7
Configure GLM-4.7 via API for cost-optimized development tasks.
Step 1: Create Settings File
Open or create the GLM settings file:
~/.ccs/glm.settings.json Add the following content:
{
"alwaysThinkingEnabled": true,
"env": {
"ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
"ANTHROPIC_AUTH_TOKEN": "<your_api_key>",
"ANTHROPIC_MODEL": "glm-4.7",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.7",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.7",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.7"
}
} Step 2: Add Profile to Config
Add the GLM profile to your CCS config file:
~/.ccs/config.json ccs glm "Which model are you using?" If you see GLM-4.7 model in the response, the configuration works. Otherwise, recheck your settings file and API key.
Kimi Configuration
Moonshot AIConfigure Kimi K2 for long-context analysis and deep thinking tasks.
Step 1: Create Settings File
Open or create the Kimi settings file:
~/.ccs/kimi.settings.json Add the following content:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.kimi.com/coding/",
"ANTHROPIC_AUTH_TOKEN": "<your_api_key>",
"ANTHROPIC_MODEL": "kimi-k2-thinking-turbo"
},
"alwaysThinkingEnabled": true
} Step 2: Add Profile to Config
Add the Kimi profile to your CCS config file:
~/.ccs/config.json Step 3: Verify Configuration
Test that Kimi is configured correctly:
ccs kimi "Which model are you using?" If you see K2 model in the response, the configuration works. Otherwise, recheck your settings file and API key.
Web Dashboard
NewCCS features a modern React 19 dashboard with real-time updates for managing your profiles and monitoring account health.
Launch Dashboard
ccs config # Open dashboard (auto-opens browser) ccs config --port 3000 # Specify custom port The dashboard will automatically open in your browser. If not, access it manually at http://localhost:PORT
Dashboard Preview
Account Management
Accounts are stored locally and can be managed via the web dashboard. Add, edit, or remove profiles directly from the UI.
~/.ccs/cliproxy/accounts.json Troubleshooting
OAuth Timeout
ccs gemini --auth --headless Port Conflict
ccs doctorlsof -ti:8317 | xargs killSession Not Continuing
ccs glm:continue "next task" Health Check
ccs doctor Hot Deals Available!
Get Claude Pro at 50% off ($10/month) and Z.AI Christmas deals with stacking discounts. Limited time offers to maximize your AI coding limits.
View Current Deals