[FEATURE] Multi-account support in VSCode extension
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)
Summary
The Claude Code VSCode extension does not support switching between multiple Claude accounts, making it impossible to use a second account when the first one hits its usage quota.
Motivation
Power users who rely heavily on Claude Code for coding sessions often exhaust the usage quota of a single Claude Pro account within a day. A common workaround is to maintain two separate Claude Pro accounts and switch between them. This works well in the terminal via CLAUDE_CONFIG_DIR, but the VSCode extension always uses a single fixed account with no way to switch.
Current behavior
- The terminal CLI supports multiple accounts via the
CLAUDE_CONFIG_DIRenvironment variable (e.g.CLAUDE_CONFIG_DIR=~/.claude-acc2 claude) - The VSCode extension reads from its own config directory (
~/.claude-code-gui/) and does not respectCLAUDE_CONFIG_DIR - The only way to switch accounts in the extension is to manually
/logoutand re-authenticate, which is disruptive
Expected behavior
The VSCode extension should allow users to:
- Add and save multiple Claude accounts
- Switch between accounts from the extension UI (e.g. a dropdown in the Account & Usage panel)
- Optionally: show remaining quota per account so users know when to switch
Workaround
Currently using terminal aliases as a partial workaround:
alias claude-a="claude"
alias claude-b="CLAUDE_CONFIG_DIR=~/.claude-acc2 claude"
This works in the terminal but the VSCode extension always stays on the primary account.
Environment
- OS: macOS
- Claude Code VSCode extension
- Plan: Claude Pro (multiple accounts)
Proposed Solution
The CLI already handles multiple accounts cleanly via CLAUDE_CONFIG_DIR. The VSCode extension could adopt a similar approach:
- Account profiles — Allow users to register multiple accounts in the extension settings, each mapped to a separate config directory (e.g.
~/.claude,~/.claude-acc2) - Account switcher UI — Add a dropdown or button in the existing Account & Usage panel to switch the active account without requiring a full logout/login flow
- Quota awareness — Display remaining session and weekly quota for each saved account, so users know when to switch
- Respect
CLAUDE_CONFIG_DIR— As a simpler short-term fix, the extension could read theCLAUDE_CONFIG_DIRenvironment variable from the workspace or shell environment, consistent with how the CLI already works
The last point (respecting CLAUDE_CONFIG_DIR) would be the lowest-effort change and would immediately unblock users who already manage multiple accounts via the terminal.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
_No response_
14 Comments
the multi-account-as-quota-pool pattern shows up everywhere right now (cursor threads, windsurf, the t3code issue floating around) and it's almost always a symptom of one missing thing: a real-time read of where each account actually sits against the rolling 5h and weekly window before you switch. without that, rotation just round-robins into accounts that are already cooling down. the headers anthropic returns on every /v1/messages call (anthropic-ratelimit-unified-5h-utilization, 7d-utilization) are the same numbers claude.ai/settings/usage shows, so the switcher should key off those per CLAUDE_CONFIG_DIR, not off a 429 after the fact. otherwise you're trading one mid-refactor stall for a slightly later one.
This is an important feature for me too. If have a company claude account and personal account I might like to use one for one project and another for another project in the same IDE - multi account support is important even for compliance to company policies. The same applies for the claude-extension for vscode and for the claude agent in the cli.
Yes, the same as said above. I have a work account, and need to set up a personal account, but being able to switch between them is critical for my use.
Same as above. Being able to easily switch between two accounts would be a great addition to the extension.
I have the same concern. I have a personal account and a company provided one. I want a good machanism to switch between these two in Visual Code IDE.
FYI my work-around was to use Claude privately but get Github Copilot from work since we have a choice. That way I can cleanly keep things separate. But would prefer to also use Claude for work.
Furthermore changing the account per context would be nice. So multiple sessions can use different accounts in parallel.
That's something the current workarounds can not provide easily.
it is possible with the “work around” I mentioned above by using a different provider entirely
You are a genius @lsmith77 but a lot of people (like me) have non-copilot claude only for both accounts
I can confirm a second, concrete multi-profile failure in the current VS Code extension.
Environment
The extension bundle resolves exactly one Claude root:
It has no configuration contribution for additional roots and no discovery of sibling profile directories. On this machine, the canonical root is
~/.claude/projects, while multiple active profiles have histories under~/.claude-accounts/*/projects. Those non-default histories are invisible to the extension even though they contain valid recent JSONL transcripts.There are two distinct product gaps:
CLAUDE_CONFIG_DIRhomes.For multi-account users, a useful short-term behavior would be to honor the extension-host
CLAUDE_CONFIG_DIRconsistently and expose the effective root in diagnostics. Longer term, profiles should be selectable without relogging and their histories should remain distinct.On top of the manual account-switcher proposed here, I'd like to request an automatic failover option:
When the active account hits its usage limit/quota, Claude Code (CLI and/or VSCode extension) could automatically switch to a second pre-authenticated account instead of blocking the session and requiring manual
/logout+/loginor a manual dropdown selection.Use case: I maintain two separate Claude subscriptions specifically to keep working past a single account's daily quota. Today this requires me to notice the quota error and manually re-authenticate (or, per the CLI workaround mentioned above, manually swap
CLAUDE_CONFIG_DIR). An automatic fallback — e.g. detect the quota-exhausted error and transparently retry the request against a second configured account/profile — would remove that manual step entirely and make multi-account usage seamless, especially for long/unattended sessions.This could build on the same underlying multi-account/profile mechanism proposed here, with an added "auto-switch on quota exhaustion" setting.
+1, hit this today on Windows 11 setting up two accounts split by workspace folder (one Pro, one Team, different orgs/clients).
Confirmed the split works correctly via the CLI (
CLAUDE_CONFIG_DIRper directory) — verified the two.credentials.jsonfiles have genuinely differentaccessToken/refreshTokenand differentsubscriptionType(provsteam), andclaude auth status --textcorrectly reports the right account per folder.But the VSCode extension does not follow this at all: both workspace windows kept showing the same account in
/usage, and real token consumption was attributed to a single account regardless of which folder/window was active — consistent with the extension always reading its own fixed~/.claude-code-gui/config dir instead of respectingCLAUDE_CONFIG_DIRor any per-workspace setting.Would be great if the extension either respected
CLAUDE_CONFIG_DIR(so the existing CLI-based workaround would "just work") or exposed an account switcher in the UI as described above. In the meantime we're falling back to the integrated terminal (claudeCLI) for the second account instead of the extension panel.Faced the same issue with personal Max and corporate Team plans
How come this has not been implemented yet!? I just realized I burned all my personal usage doing work stuff because not only does this not work but it silently uses a shared storage for credentials? This is outrageous for a company the size of Anthropic nowadays.
Please provide at least a workaround that doesn't silently use the last authenticated account for all agent windows so at least one can control usage.