Samrand Hassan
English

Open source · 2026

claude-switch

Run work and personal Claude — Claude Code and Claude Desktop — side by side, fully isolated, with every sign-in routed to the right account.

Running two Claude accounts on one machine breaks in three places. Claude Code keeps configuration, history and credentials in one folder, so only one account fits. Claude Desktop is single-instance, so a second launch focuses the first window. And sign-in opens the default browser — already signed in to the other account — while Desktop’s claude:// callback always lands in the default window.

cswitch gives every profile its own configuration directory and Desktop data folder, so both run at once. It points Claude Code’s $BROWSER at itself to open the profile’s own browser profile, registers as the claude:// handler to route each sign-in to the window that asked for it, and reclaims the handler whenever Claude takes it back.

One Rust binary with arrow-key menus, packaged for Windows, macOS and Linux on x86_64 and arm64.

Get in touch

Research collaboration, a talk, or a hard engineering problem — write to me.