[FEATURE] Multi-account support in VSCode extension

Status Open
Maintainer reply None cached
Activity 14 comments · opened May 2, 2026

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_DIR environment variable (e.g. CLAUDE_CONFIG_DIR=~/.claude-acc2 claude)
  • The VSCode extension reads from its own config directory (~/.claude-code-gui/) and does not respect CLAUDE_CONFIG_DIR
  • The only way to switch accounts in the extension is to manually /logout and re-authenticate, which is disruptive

Expected behavior

The VSCode extension should allow users to:

  1. Add and save multiple Claude accounts
  2. Switch between accounts from the extension UI (e.g. a dropdown in the Account & Usage panel)
  3. 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:

  1. Account profiles — Allow users to register multiple accounts in the extension settings, each mapped to a separate config directory (e.g. ~/.claude, ~/.claude-acc2)
  2. 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
  3. Quota awareness — Display remaining session and weekly quota for each saved account, so users know when to switch
  4. Respect CLAUDE_CONFIG_DIR — As a simpler short-term fix, the extension could read the CLAUDE_CONFIG_DIR environment 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_

View original on GitHub ↗

14 Comments

m13v · 4 months ago

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.

delian · 3 months ago

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.

WarrenSchultz · 3 months ago

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.

mariovelyov · 3 months ago

Same as above. Being able to easily switch between two accounts would be a great addition to the extension.

ramith · 3 months ago

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.

lsmith77 · 1 month ago

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.

davidenke · 1 month ago

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.

lsmith77 · 1 month ago
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

abhishek-jaisingh · 1 month ago

You are a genius @lsmith77 but a lot of people (like me) have non-copilot claude only for both accounts

joshmouch · 1 month ago

I can confirm a second, concrete multi-profile failure in the current VS Code extension.

Environment

  • macOS
  • VS Code 1.129.1 arm64
  • Anthropic Claude Code extension 2.1.217

The extension bundle resolves exactly one Claude root:

process.env.CLAUDE_CONFIG_DIR ?? path.join(os.homedir(), ".claude")

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:

  1. The extension needs a supported profile/root switcher or configured-root list so it can discover/select multiple CLAUDE_CONFIG_DIR homes.
  2. It does not register VS Code's native chat-sessions provider API at all. Its sessions can only appear in the extension-owned Past Conversations view, never under VS Code/Copilot's generic Sessions list.

For multi-account users, a useful short-term behavior would be to honor the extension-host CLAUDE_CONFIG_DIR consistently and expose the effective root in diagnostics. Longer term, profiles should be selectable without relogging and their histories should remain distinct.

yanivhrs · 1 month ago

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 + /login or 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.

balamrod · 27 days ago

+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_DIR per directory) — verified the two .credentials.json files have genuinely different accessToken/refreshToken and different subscriptionType (pro vs team), and claude auth status --text correctly 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 respecting CLAUDE_CONFIG_DIR or 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 (claude CLI) for the second account instead of the extension panel.

artoby · 20 days ago

Faced the same issue with personal Max and corporate Team plans

roli93 · 16 days ago

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.