Tools for managing CCS daemon and configuration
ccst (Claude Code Switch Tools) provides utilities for CCS daemon management and configuration backup/restore.
- CCS daemon management
- Configuration backup and restore
- Shell completions for major shells
Install globally with npm (default):
npm install -g @leynier/ccstAlternative package managers:
# bun
bun add -g @leynier/ccst
# pnpm
pnpm add -g @leynier/ccst
# yarn
yarn global add @leynier/ccst# Install CCS CLI tool (interactive package manager selection)
ccst install
# Run initial setup
ccst setup
# Force setup even if already configured
ccst setup -f# Start daemon
ccst start
# Start with specific dashboard port
ccst start -p 3001
# Set startup timeout (Windows only, default: 30 seconds)
ccst start -t 60
# Force restart if already running
ccst start -f
# Keep existing logs (append instead of truncate)
ccst start --keep-logs
# Stop daemon
ccst stop
# Force kill daemon
ccst stop -f# Check daemon status
ccst status
# View logs (last 50 lines by default)
ccst logs
# View more lines
ccst logs -n 100
# Follow logs in real-time
ccst logs -fBackup and restore all CCS configuration:
# Export configuration to ZIP file
ccst config dump
# Export to custom path
ccst config dump my-backup.zip
# Import configuration from ZIP
ccst config load
# Import from custom path
ccst config load my-backup.zip
# Replace all existing files during import
ccst config load -r
# Skip confirmation prompt
ccst config load -yCCS daemon files (~/.ccs/):
~/.ccs/
├── .daemon.pid # Daemon process ID
├── .daemon.log # Daemon log file
└── .daemon.ports # Dashboard port tracking
ccst install- Install CCS CLI tool (interactive package manager selection)ccst setup- Run CCS initial setupccst setup -f- Force setup even if already configuredccst start- Start CCS daemonccst start -f- Force restart if already runningccst start -p <port>- Start with specific dashboard portccst start -t <seconds>- Set startup timeout (Windows only)ccst start --keep-logs- Keep existing logs (append instead of truncate)ccst stop- Stop CCS daemonccst stop -f- Force kill daemon (SIGKILL)ccst status- Show daemon status, PID, and log infoccst logs- View daemon logs (last 50 lines)ccst logs -n <lines>- View specified number of linesccst logs -f- Follow log output in real-time
ccst config dump [output]- Export CCS config to ZIP (default: ccs-config.zip)ccst config load [input]- Import CCS config from ZIP (default: ccs-config.zip)ccst config load -r- Replace all existing files during importccst config load -y- Skip confirmation prompt
Enable tab completion for faster workflow:
# Bash
ccst --completions bash > ~/.local/share/bash-completion/completions/ccst
# Zsh
ccst --completions zsh > /usr/local/share/zsh/site-functions/_ccst
# Fish
ccst --completions fish > ~/.config/fish/completions/ccst.fish
# PowerShell
ccst --completions powershell > ccst.ps1ccst --completions <shell>- Generate shell completionsccst --help- Show help informationccst --version- Show version
This tool has been simplified to focus exclusively on CCS daemon management and configuration backup/restore. Profile switching and permission merging features have been removed as they are now natively supported by CCS.