BOOT SEQUENCE
back to deck
case study/2026.05.10flagship
CLIClaude CodeOAuthCross-platform

claude-account-switcher (csw)

csw snapshots each native Claude Code login (refresh token + access token + organization metadata) as a profile and swaps between them in one command.

What makes it solid

  • Preserves native login state/status reports the right Email and Organization per profile, not an opaque token.
  • Repairs session visibility — rebuilds ~/.claude.json projects from raw transcripts so old conversations stay resumable after a switch.
  • Secure by constructionumask 077, credentials at 0600, dirs at 0700, atomic mkdir-based file locking with stale-lock recovery.
  • Cross-platform — macOS, Linux, Windows. Zero npm deps beyond zsh, python3, jq, and the real claude CLI.
npm install -g claude-cli-switcher
csw use work