Quickly switch between multiple Claude Code accounts.
./init.sh
source ~/.bashrcThe init.sh script automatically creates convenient aliases for all commands:
claude-switch→claude-switch.shclaude-sync→claude-sync.shclaude-next→claude-next.shclaude-usage→python3 claude-usage.py
After installation, you can run these commands from anywhere in your terminal!
claude login # Login
claude-switch save work # Save as "work"claude-switch work
claude-switch personalclaude-switch list # List all accounts
claude-switch status # Show current accountclaude-next # Switch to next account (round-robin)
claude-usage # Show usage of all accounts
Share conversation history between all accounts so claude --resume works on any account.
claude-sync # Cross-sync all sessions between accounts# Work on account1, create new session
claude-switch account1
claude
# Sync sessions to all accounts
claude-sync
# Switch to account2, resume same session
claude-switch account2
claude --resume- Data stored at
~/.claude-accounts/ - Script auto-backups before switching
- Each account keeps its own login token
- Sync only shares conversation history, not tokens
claude-usagerequires Python 3 (uses standard library only, no pip install needed)