██████╗ ██████╗ ███████╗██╗ ██╗██╗████████╗ ██████╗██╗ ██╗ ██╔════╝██╔════╝ ██╔════╝██║ ██║██║╚══██╔══╝██╔════╝██║ ██║ ██║ ██║ ███████╗██║ █╗ ██║██║ ██║ ██║ ███████║ ██║ ██║ ╚════██║██║███╗██║██║ ██║ ██║ ██╔══██║ ╚██████╗╚██████╗ ███████║╚███╔███╔╝██║ ██║ ╚██████╗██║ ██║ ╚═════╝ ╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝

ccswitch

Switch Claude Code accounts in one keystroke.

Install via Cargo

$ cargo install ccswitch
macOS / Homebrew brew tap vyshnavsdeepak/ccswitch https://github.com/vyshnavsdeepak/ccswitch && brew install ccswitch

Commands

ccswitch open interactive TUI
ccswitch add snapshot current account to keychain
ccswitch switch rotate to next account
ccswitch export copy credentials to clipboard (VM sync)
ccswitch import paste credentials on remote machine
ccswitch doctor health check & diagnostics

Interactive TUI

╭─ ccswitch ─────────────────────────╮ │ Active: work@company.com │ ╰─────────────────────────────────────╯ ╭─ 3 accounts ────────────────────────╮ │ ▶ 1 work@company.com active │ │ 2 personal@gmail.com │ │ 3 team@startup.ai [token] │ ╰─────────────────────────────────────╯ ↑↓ navigate · ↵ switch · a add · d remove · q quit

One command, instant switch

No browser login flow. No logout/login dance. Credentials swap directly in the system keychain — restart Claude Code and you're in.

Keychain-backed security

On macOS, credentials live in the system keychain. On Linux, per-account files at 0600. No plaintext secrets anywhere.

Work / personal / client

Manage unlimited accounts. Switch by number or email. Perfect for consultants juggling multiple Claude subscriptions.

VM credential sync

Export credentials to clipboard on your local machine, import them on a remote VM — no SSH key forwarding or secret sharing needed.

macOS — system keychain
Linux — file store (0600)
WSL — Linux path