A userscript that adds Gmail-style instant account switching to Claude.ai. Switch between your work and personal accounts with a single click - no re-login required!
- Instant switching - Switch accounts immediately without logging out
- Gmail-style account dropdown menu
- Work/Personal account labels with colored badges
- Customizable avatar colors (20 options)
- Saves session keys for each account
- Clean, native-looking UI that matches Claude's design
- Persistent storage via Tampermonkey
-
Install a userscript manager:
- Tampermonkey (Chrome, Firefox, Safari, Edge)
- Violentmonkey (Chrome, Firefox)
-
Click here to install the script - Tampermonkey will automatically prompt you to install it
-
Navigate to claude.ai - you'll see a small dropdown indicator on your avatar
- Log into Claude with your first account (e.g., work)
- Click on your avatar in the sidebar
- Click "Save current session"
- Fill in:
- Display Name: A friendly name (e.g., "Work Account")
- Email Address: Your Google email (for your reference)
- Account Type: Work or Personal
- Avatar Color: Pick a color to distinguish accounts
- Log out of Claude and log in with your other account (e.g., personal)
- Click on your avatar
- Click "Save current session" again
- Fill in the details for this account
- Click on your avatar
- Click the account you want to switch to
- That's it! The page reloads and you're instantly signed in as that account
- Click on your avatar
- Click "Manage accounts"
- Click on any account to edit or delete it
Claude uses session cookies (sessionKey) for authentication. This script:
- Captures your session key when you save an account
- Stores session keys locally using Tampermonkey's secure storage
- Swaps the session cookie when you switch accounts
- Reloads the page to apply the new session
Both accounts remain valid - you're not logging out, just switching which session is active.
- All data is stored locally using Tampermonkey's GM_setValue
- No data is sent to any external servers
- Session keys are stored in your browser's userscript storage
- The script only runs on claude.ai
- You can delete accounts anytime, which removes their stored session keys
Account not switching?
- Make sure you saved the session while actually logged into that account
- Try clearing your cookies for claude.ai and re-saving both accounts
Session expired?
- Sessions can expire over time. Delete the old account entry and save a fresh session
Menu not appearing?
- Refresh the page - the script needs to detect the avatar element
- Check that the userscript is enabled in Tampermonkey
MIT License