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:

"You've reached your usage limit."

Momentum gone. Context lost. Productivity crater.

The Solution

CCS enables parallel workflows instead of sequential switching:

Run all simultaneously:
# Terminal 1: Main work (Work Account)
ccs work "implement authentication system"
# Terminal 2: Side task (Personal Account)
ccs personal "review PR #123"
# Terminal 3: Cost-optimized task (GLM - 81% cheaper)
ccs glm "add tests for all service files"

All running simultaneously. No context switching. No downtime.

1

Installation

Install CCS globally with npm:

Created by @kaitranntt
$
npm install -g @kaitranntt/ccs
# Verify installation
ccs --version
2

Quick Start

Basic Usage

ccs # Claude subscription (default)
ccs glm # GLM (cost-optimized)
ccs kimi # Kimi (with thinking support)

Delegation with -p flag

Use the -p flag to delegate tasks to cost-optimized models:

# Delegate task to GLM
ccs glm -p "fix linting errors in src/"
# Delegate to Kimi for analysis
ccs kimi -p "analyze project structure and document"
# Continue previous session
ccs glm:continue -p "run the tests and fix failures"

Multi-Account Setup

Manage multiple accounts for OAuth providers like Gemini, Antigravity, and more:

# First account (default)
ccs gemini --auth
# Add another account
ccs gemini --auth --add
# Add with nickname for easy identification
ccs gemini --auth --add --nickname work
# List all accounts
ccs agy --accounts
# Switch to a different account
ccs agy --use work

Accounts are stored in <code>~/.ccs/cliproxy/accounts.json</code> and can be managed via web dashboard.

Run concurrently in separate terminals
terminal-1 work
$ ccs work "implement feature"
terminal-2 personal
$ ccs personal "review code"

Sync Shared Data

# Sync latest delegation commands and skills from ClaudeKit to CCS:
ccs sync
3

Core Features

Model Switching

ccs # Claude
ccs agy # Antigravity
ccs glm # GLM-4.6
ccs kimi # Kimi
ccs gemini # Gemini 2.5 Pro
ccs codex # GPT-5.1 Codex Max

AI-Powered Delegation

Delegate tasks to cost-optimized models with -p flag:

ccs glm -p "add tests"

Slash Command Support

Use slash commands inside delegated sessions:

ccs glm -p "/cook create landing page"

OAuth Authentication

Zero-config auth for supported models:

ccs gemini # Interactive OAuth
ccs gemini --auth # Save tokens
4

Integration with ClaudeKit

CCS works seamlessly with ClaudeKit commands. Use Claude for complex planning and GLM for simple execution:

Recommended Workflow

1
# Plan with Claude
ccs "/plan add payment integration"
2
# Implement with GLM (cost-optimized)
ccs glm -p "/cook implement Stripe payment flow"
3
# Test with GLM
ccs glm -p "/fix:test run payment tests"
4
# Review with Claude
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
5

Provider Configuration

Configure specific settings for each AI model provider to optimize your workflow.

Antigravity Configuration

Recommended

Configure Antigravity to use specific Claude models through a simple interactive menu:

ccs agy --config
[OK] CLIProxy binary ready (0.5s)
Antigravity Model Selection
Note: Models marked [DEPRECATED] may be removed in future versions.
Select model:
1. Claude Sonnet 4.5
2. Gemini 3 Pro
* 3. Claude Opus 4.5 Thinking
4. Claude Sonnet 4.5 Thinking
Enter choice [1-4] (default: 3): _

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:

> What model are you using?
⏺ I'm powered by Gemini Claude Opus 4.5 (model ID: gemini-claude-opus-4-5-thinking).
Logout from Antigravity

Clear your Antigravity session:

ccs agy --logout

Expected output:

[OK] Logged out from Antigravity
Multi-Account Management

Manage and switch between multiple Antigravity accounts:

# First account (default)
ccs agy --auth
# Add with nickname for easy identification
ccs agy --auth --add --nickname work
# List all accounts
ccs agy --accounts
# Switch to a different account
ccs agy --use work
# Configure the selected account
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:

[OK] CLIProxy binary ready (0.0s)
[i] Opening browser for Google Gemini authentication...
[i] Complete the login in your browser.
[OK] Authenticated with Google Gemini (14.8s)
[OK] Authentication successful
Step 2: Select Model (Optional)
ccs gemini --config
[OK] CLIProxy binary ready (0.0s)
Configure Gemini Model
Models marked [Paid Tier] require a paid Google account (not free tier).
Select model:
* 1. Gemini 3 Pro [Paid Tier]
2. Gemini 2.5 Pro
Enter choice [1-2] (default: 1): _

After selecting a model:

[OK] Model set to: Gemini 3 Pro
Config saved: ~/.ccs/gemini.settings.json
Verify Your Selection

After configuration, verify the selected model:

ccs gemini "Which model are you using?"
> Which model are you using?
⏺ I am currently using the gemini-3-pro-preview model.
Switch Google Account

To switch to a different Google account:

ccs gemini --logout
Multi-Account Management

Manage multiple Google accounts for Gemini:

# First account (default)
ccs gemini --auth
# Add with nickname for easy identification
ccs gemini --auth --add --nickname work
# List all accounts
ccs gemini --accounts
# Switch to a different account
ccs gemini --use work
# Configure the selected account
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:

[OK] CLIProxy binary ready (0.0s)
[i] Opening browser for OpenAI authentication...
[i] Complete the login in your browser.
[OK] Authenticated with OpenAI (12.5s)
[OK] Authentication successful
Step 2: Verify Your Setup

After authentication, verify the setup:

ccs codex "Hello, which model are you using?"
> Hello, which model are you using?
⏺ I'm running as GPT-5.1-Codex-Max-High (model ID: opus).
Switch OpenAI Account

To switch to a different OpenAI account:

ccs codex --logout
Z

GLM Configuration

Z.AI

🚀 New Update: Z.AI has introduced GLM-4.6V (8 December 2025) - the latest and most advanced model! Check the official announcement: https://z.ai/blog/glm-4.6v

Configure GLM-4.6 via API for cost-optimized development tasks.

Step 1: Create Settings File

Open or create the GLM settings file:

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.6",
        "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.6",
        "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.6",
        "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.6"
    }
}
Step 2: Add Profile to Config

Add the GLM profile to your CCS config file:

File:
~/.ccs/config.json
{
"profiles": {
"glm": "~/.ccs/glm.settings.json", <-- add this line
"default": "~/.claude/settings.json"
}
}

ccs glm "Which model are you using?"
> Which model are you using?
⏺ I'm using the GLM-4.6 model.

If you see GLM-4.6 model in the response, the configuration works. Otherwise, recheck your settings file and API key.

K

Kimi Configuration

Moonshot AI

Configure Kimi K2 for long-context analysis and deep thinking tasks.

Step 1: Create Settings File

Open or create the Kimi settings file:

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:

File:
~/.ccs/config.json
{
"profiles": {
"kimi": "~/.ccs/kimi.settings.json", <-- add this line
"default": "~/.claude/settings.json"
}
}
Step 3: Verify Configuration

Test that Kimi is configured correctly:

ccs kimi "Which model are you using?"
> Which model are you using?
⏺ I'm using the Kimi K2 Thinking Turbo model.

If you see K2 model in the response, the configuration works. Otherwise, recheck your settings file and API key.

6

Web Dashboard

New

CCS features a modern React 19 dashboard with real-time updates for managing your profiles and monitoring account health.

Modern UI
Real-time Updates
Profile Management
Health Monitoring
Dark Mode
Responsive

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

Light Mode
CCS Dashboard - Light Mode
Account Management

Accounts are stored locally and can be managed via the web dashboard. Add, edit, or remove profiles directly from the UI.

File:
~/.ccs/cliproxy/accounts.json

Troubleshooting

OAuth Timeout

ccs gemini --auth --headless

Port Conflict

ccs doctor
# Kill process using port 8317
lsof -ti:8317 | xargs kill

Session Not Continuing

ccs glm:continue -p "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