claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[FEATURE] Multi-account support and account switching

Open addayounes opened this issue 3 months ago • 13 comments

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Switching between Anthropic accounts currently requires logging out and logging back in, which is annoying when you regularly use two or more accounts. It would be much easier to have multiple accounts logged in at the same time and switch between them directly.

Proposed Solution

Add a simple account switcher, similar to Google. Users could add multiple Anthropic accounts and switch between them without logging out. Each account should keep its own conversations, memory, projects, settings, and other data completely separate.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

I use Claude with both a personal and a work account. When I need to switch accounts, I currently have to log out, log back in, and go through the authentication process again. With an account switcher, I could simply click my profile, select the other account, and continue working with that account's own memory and conversations.

Additional Context

No response

addayounes avatar Aug 26 '26 11:08 addayounes

I'd like to add another use case for multi-account support that goes beyond just switching between accounts.

I have both a personal and work Claude account, and I need:

  1. Independent token management

Each account should have its own token budget and usage tracking, so I can monitor work vs personal spending separately and avoid one account affecting the other's usage limits.

  1. Account context sharing

The ability for my personal and work accounts to reference or share context with each other. For example:

  • Reference work documents/sessions when helping with personal projects
  • Pull insights from personal research into work conversations
  • Share session links or context between my accounts without manual copying/pasting
  • Have conversations that can span both accounts when needed
  1. Easy switching

Quickly toggle between accounts in the desktop app without logging out and back in each time.

This would let me maintain clear separation between work and personal while still leveraging the full power of Claude across both sides of my life. Right now, the workaround of using web + desktop separately makes it hard to bring context from one to the other.

tanyasabo-ai avatar Sep 25 '26 18:09 tanyasabo-ai

More valid use-case here -

There is a service company which provides their own Claude subscription to their devs - Say Dev has Claude subscription of Company A Now they deploy this employee to a client which also want to used claude and provide subscription so now Dev will also have a subscription of Company B which is a client company. Remember this developer is 50% assigned to this project.

Now a new client also want to use claude, but my dev already have two Claude subscriptions, In this situation, either I have to deploy another dev or I have to ask them to NOT use claude and use other AI like anti gravity or Codex as primary coding partner.

This is a very common situation in small companies. For Big enterprise or traditional companies they deploy one person on one project, but efficient and fast moving companies actually deploy best brains on multiple clients.

And THIS is a MAJOR ROADBLOCK

sanujbhatnagar avatar Oct 04 '26 06:10 sanujbhatnagar

Support multiple Claude accounts with fast switching

I run work for four organizations plus personal projects. I’d pay for separate subscriptions (for example $200/mo for my main company, $20/mo for each of the others) to keep billing, data and usage separate, but Claude only supports one signed-in account per OS user. Today the only way to switch is a separate macOS user per account, which costs storage and means logging out and back in all day.

Ask: let me sign in to several accounts in the desktop app and Claude Code and switch between them, ideally tied to a project or folder so my primary work repos always use the primary work account.

PeterNushPinsXP avatar Oct 09 '26 20:10 PeterNushPinsXP

+1 — adding my use case.

Stay signed in to multiple Claude accounts at once (like Slack / Notion)

I use Claude with two accounts: a work account (company email) and a personal account. Today, I have to log out and back in to switch, and in the desktop app a switch breaks things: Code sessions, Remote Control links and Claude in Chrome stay tied to the old account.

What I'd like:

  • Sign in to several accounts at the same time in the Claude desktop app, Claude Code (CLI and Code tab) and claude.ai, with a one-click switcher (avatar menu), the way Slack workspaces or Notion accounts work.
  • Each account keeps its own sessions, projects, connectors, usage limits and billing, fully isolated.
  • In the CLI, a claude auth switch <account> command (like gh auth switch), plus a way to pin an account per project or directory.

Why it matters: many people keep work and personal accounts separate, often because their company requires it. Logging out and back in is slow, error-prone, and right now the desktop app doesn't handle it cleanly.

Related: #30031, #55621, #36151.

louis-rapp avatar Oct 21 '26 09:10 louis-rapp

Workaround on the CLI side until this ships: I built Agent Guild (npm i -g @oddessentials/agent-guild), a local page that runs Claude Code sessions. Each account gets its own config folder, so a personal and a work sign-in run side by side with no logout, and each shows its own 5-hour and 7-day usage. Disclosure: I'm the author. https://github.com/oddessentials/agent-guild

oddessentials avatar Oct 22 '26 02:10 oddessentials

I built a small open source workaround for running two accounts side by side in Claude Desktop: https://github.com/MartinFerret/twindesk

It launches the official app with a separate --user-data-dir per profile, so each window keeps its own session. Tested on macOS; Windows and Linux code exists but is untested.

Known limits, so nobody is surprised: sign-in requires closing the other instances (the claude:// link always lands in the first one), the Chrome extension is disabled in relocated profiles, and an app update could break it. Unofficial, not affiliated with Anthropic. Native support would still be the real fix.

MartinFerret avatar Oct 27 '26 08:10 MartinFerret

If it helps in the meantime: csw (I'm the author) keeps one profile per account and switches without logging out. csw use work changes the default account, csw run personal runs a single terminal on another account, and csw bind work in a project directory makes that directory always use that account. On macOS, csw use work --all also switches Claude Desktop. Each profile has its own config, so conversations, memory and settings stay separate.

mtxr avatar Oct 27 '26 15:10 mtxr

+1. On the desktop app (Code tab) I can only have one Claude account signed in at a time — no way to add a second account and switch, unlike the mobile app which already supports multiple accounts with switching. Would like to see the desktop app catch up to mobile here: separate conversations/sessions/settings per account, switch without logging out.

oriolfg avatar Nov 02 '26 11:11 oriolfg

On the desktop Code tab point: each account keeps its own Code sessions when you switch. If it helps while this is open, I built an open-source macOS menu bar app, Claude Accounts, that switches the desktop app between saved logins with one click, and can optionally sync the session lists of your own accounts. Disclosure: I am the author; it is unofficial.

jomonkj avatar Nov 09 '26 14:11 jomonkj

For Windows: CCT (https://github.com/chiarorosa/claude-codex-taskbar) includes a manual account switcher for the Claude Code CLI. You save each paid account once, then pick one from the taskbar menu, with no logout/login. It takes Claude Code's own locks, writes atomically and backs up the outgoing credential. Saved accounts are DPAPI-encrypted, and switching is manual only. It also shows the 5h/weekly usage.

Disclosure: I'm the author.

If it helps, a star on the repo is appreciated, and contributions are welcome there too.

chiarorosa avatar Nov 10 '26 12:11 chiarorosa

For Windows users: I built Claude Multi, a free MIT launcher for the real Claude Desktop (Microsoft Store). Each account runs in its own window at the same time, email sign-in links go to the window that is waiting for them, and every account shows its weekly and 5-hour usage. Claude Code history and MCP config can be shared between accounts. https://github.com/Markwork51020/claude-desktop-multi-account

Markwork51020 avatar Nov 18 '26 14:11 Markwork51020

fwiw, on my Mac I keep each account in its own copy of Claude Desktop. Both stay signed in, and I switch with Cmd-Tab. I wrote a free MIT tool to make the copies: https://github.com/dakiquang/claude-desktop-twins. Each copy gets its own Dock icon and notifications. Unofficial, not affiliated with Anthropic.

The Code tab in every copy still shares ~/.claude.

dakiquang avatar Nov 29 '26 15:11 dakiquang

Windows user who ran into exactly this (work + personal accounts). What the community usually suggests — terminal user-data-dir tricks — doesn't really carry over to the installed Desktop app.

What worked for me: per-instance profile isolation. Each instance of Claude Desktop gets its own user-data + config directory, so sign-ins and sessions stay completely separate and multiple accounts run side by side on one machine. I wanted it friction-free for non-terminal folks, so I built a small launcher around that idea (full disclosure: it's my app, one-time purchase on the Microsoft Store — happy to explain the isolation technique regardless): https://apps.microsoft.com/detail/9n3x1fsclmwk?cid=github-issue-89785

The short technical version: Claude Desktop resolves its userData path from one env var (CLAUDE_USER_DATA_DIR) and ignores --user-data-dir when it does, and Chromium's single-instance lock keys on that resolved path — so a launcher that injects a different dir per instance is enough to keep the lock and the 3p root separated. No patches to the master install, no touching the claude:// handler (which belongs to the package and can't be overridden). Unofficial, not affiliated with Anthropic.

radelqui avatar Nov 30 '26 16:11 radelqui