Skip to content

Claude Account Switcher

Several Claude Code accounts on one machine. Every login stays live, and each folder decides which one claude uses.

curl -fsSL https://switcher.diananerd.com | sh

Shows what it will change and asks first. macOS and Linux; tested on macOS.

See it in a terminal

zsh

Each folder runs claude with its own account; a new folder asks once. Recorded from the real claude-switcher with example accounts; Claude Code itself is a stand-in.

Quick start ​

  1. Install with the command above. It also adds csw, a short name for claude-switcher.
  2. Run csw setup: name the account you are logged in to, add your other accounts, and map your folders.
  3. Run claude in any project. It uses that folder's account, and asks once in a folder that has none.

Switch a project later with csw. Read the guide for daily use, or how it works for the details.

MIT licensed. Provided as-is.