Per folder
Map ~/work to your work account and ~/personal to yours. Subfolders inherit and can override; symlinks and git worktrees resolve the same way.
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 | shShows what it will change and asks first. macOS and Linux; tested on macOS.
~/work -> work (your work account)
~/work/side-project -> personal (an override for one folder)
~/personal -> personal
~/other -> asks once, then remembersInstall with the command above, then run claude-account setup: it names the login you already have, adds your other accounts and maps your folders. From then on, claude picks the account on its own. Read the guide.