claudesu
v0.1.2
Published
su for Claude Code — switch between accounts without logging out
Maintainers
Readme
Capture each Claude Code account once, then jump between them with a single command. No logging out, no re-authenticating, no copy-pasting tokens.
Install
With npm:
npm install -g claudesuOr with curl:
curl -fsSL https://github.com/santidalmasso/claudesu/releases/latest/download/install.sh | shBoth install the csu command. Prefer not to install? Run it on demand with
npx claudesu <command>.
Quick start
$ csu add # capture the account you're signed in as
added [email protected] at slot 1
# sign in as your other account in Claude Code, then capture it too:
$ csu add
added [email protected] at slot 2
$ csu switch # rotate accounts — no login needed
switched to slot 1 ([email protected]). Restart Claude Code to pick up the change.
$ csu list
┌───┬────────┬─────────────────────┬──────────────┬────────────┐
│ # ┆ active ┆ email ┆ organization ┆ added │
╞═══╪════════╪═════════════════════╪══════════════╪════════════╡
│ 1 ┆ ● ┆ [email protected] ┆ Acme Inc ┆ 2026-05-16 │
├╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ 2 ┆ ┆ [email protected] ┆ ┆ 2026-05-16 │
└───┴────────┴─────────────────────┴──────────────┴────────────┘You only add an account once. After that, switch swaps them forever.
Commands
| Command | What it does |
| --- | --- |
| csu add | Capture the account Claude Code is currently signed into. |
| csu list | List stored accounts; ● marks the active one. |
| csu status | Show the active account. |
| csu switch | Rotate to the next account. |
| csu switch-to <slot\|email> | Switch to a specific account. |
| csu remove <slot\|email> | Forget a stored account. |
| csu purge | Forget every account. |
Restart Claude Code after a switch so it picks up the change.
