Browser extension (Manifest V3) to keep several claude.ai accounts side by side and switch between them in one click — no logging out and back in every time.
Install: Firefox Add-ons · Chrome, Brave, Edge and other releases
Based on claude-switch-account by Smeagolworms4 (MIT). Unofficial, not affiliated with Anthropic.
claude.ai authentication lives in cookies (sessionKey chief among them). The extension:
- snapshots every
claude.ai/anthropic.comcookie into a profile; - fetches the account name and e-mail from the claude.ai API to label it automatically;
- on switching: re-saves the current session (the
sessionKeyrotates), clears the jar, restores the target profile's cookies, then reloads any open claude.ai tab.
Everything stays local in chrome.storage.local. No server, no telemetry, no passwords — only the cookies your browser already holds.
Download the zip for your browser from Releases:
| Browser | File | How to load |
|---|---|---|
| Chrome, Brave, Edge | …-chrome.zip |
Unzip it, open chrome://extensions (or brave://extensions, edge://extensions), enable Developer mode, Load unpacked → the unzipped folder |
| Firefox 140+ | Firefox Add-ons | Click Add to Firefox (recommended: signed, updates automatically) |
| Firefox 140+ (manual) | …-firefox.zip |
Open about:debugging#/runtime/this-firefox → Load Temporary Add-on… → pick the zip (or the unzipped manifest.json); it stays until Firefox restarts |
git clone https://github.com/agteamdev/claude-switch-account.git
cd claude-switch-accountLoad the folder directly (Load unpacked in Chrome, Load Temporary Add-on… → manifest.json in Firefox). The packages are built with bash tools/build.sh (see Development).
| Action | Effect |
|---|---|
| + Save current session | Adds the logged-in account to the list (name + e-mail detected automatically) |
| Click an account | Switches to it and reloads claude.ai tabs |
| ⇥ New login | Clears the session without deleting profiles — to add another account |
| ↻ Refresh active account | Re-saves the active account's cookies (handy after re-authenticating) |
| ✎ / 🗑 | Rename / delete a profile |
| Drag an account | Reorder the list; the order is saved |
| ◐ / ☀ / ☾ (header) | Theme: automatic (follows the system), light or dark; click to cycle |
| ⇩ Import / ⇧ Export | Export saves all accounts to a JSON file, optionally encrypted with a password; import merges such a file into the list (a session already saved is only replaced by a newer one) and asks for the password when the file is encrypted. On Firefox, Import opens in a tab |
- Log into account A on claude.ai → + Save current session.
- ⇥ New login → log into account B.
- + Save current session.
- Both accounts now sit in the list; one click switches between them.
UI translated through chrome.i18n, auto-selected from the browser language:
🇬🇧 English (default) · 🇫🇷 Français · 🇩🇪 Deutsch · 🇪🇸 Español · 🇮🇹 Italiano · 🇵🇹 Português · 🇺🇦 Українська · 🇷🇺 Русский
The popup follows the system light / dark theme (prefers-color-scheme). If your browser is set differently from the system, the button in the popup header switches between automatic, light and dark.
Adding a language = copy _locales/en/messages.json to _locales/<code>/messages.json. CI enforces that every locale carries exactly the same keys.
manifest.json # MV3, cookies/storage/tabs permissions
background.js # service worker: cookie snapshot / clear / restore, export / import
popup.html/.css/.js # account list UI
theme.js # applies the saved light/dark choice before the first paint
_locales/<lang>/ # translations
icons/ # extension icons
tools/build.sh # builds dist/: Chrome and Firefox packages + sources
Requirements: bash, zip, node 18 or newer.
bash tools/build.shOutput in dist/:
chrome-mv3/,firefox-mv3/: unpacked builds. They differ only inmanifest.json: Chrome getsbackground.service_worker, Firefox getsbackground.scriptsand thebrowser_specific_settingsblock.claude-switch-account-<version>-chrome.zipand…-firefox.zip: the packages.claude-switch-account-<version>-sources.zip: the complete sources, for stores that ask for them (addons.mozilla.org). Runningbash tools/build.shon them gives the same packages.
There is no minification, bundling or transpilation: the build only copies the files and rewrites manifest.json as described above, so the Firefox package is exactly the content of dist/firefox-mv3/. Built and tested on Ubuntu 24.04 with Node.js 22 and zip 3.0.
.github/workflows/build.yml runs on every push to main, every PR and every tag:
- validates the manifest and translation key parity across all locales;
- checks JS syntax (
node --check); - builds the Chrome, Firefox and sources zips and uploads them as downloadable artifacts;
- on a
v*tag: alignsmanifest.versionwith the tag and creates the GitHub release with the three zips attached.
Cutting a release:
git tag vX.Y.Z && git push origin vX.Y.Z # X.Y.Z is the version to release; CI writes it into manifest.json- Session cookies are stored in plaintext in the extension's local storage — same as your browser's cookie jar. On a shared machine, delete the profiles before walking away.
- An export file without a password contains the session cookies in plaintext and works like a password for those accounts: keep it private and delete it once imported. With a password the file is encrypted (AES-256-GCM, key derived with PBKDF2-SHA-256, 600,000 iterations); a lost password cannot be recovered.
- Only one account is active per browser profile at a time: this is switching, not simultaneous isolation (for that, use Chrome profiles or Firefox containers).
- Unofficial extension, unaffiliated with Anthropic.
- Works on Chrome / Brave / Edge and on Firefox 140 or newer.
If the extension saves you time, you can support its development:
MIT