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.
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.
csw, a short name for claude-switcher.csw setup: name the account you are logged in to, add your other accounts, and map your folders.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.