claude-code - 💡(How to fix) Fix [FEATURE] Multi-account support in VSCode extension [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55621Fetched 2026-05-03 04:48:42
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3commented ×1

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.

Root Cause

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.

Fix Action

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.

Code Example

alias claude-a="claude"
alias claude-b="CLAUDE_CONFIG_DIR=~/.claude-acc2 claude"
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • 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

extent analysis

TL;DR

The VSCode extension for Claude Code can be modified to support multiple accounts by implementing account profiles, an account switcher UI, and respecting the CLAUDE_CONFIG_DIR environment variable.

Guidance

  • Implement account profiles in the extension settings to allow users to register multiple accounts, each mapped to a separate config directory.
  • Add a dropdown or button in the Account & Usage panel to switch the active account without requiring a full logout/login flow.
  • Display remaining session and weekly quota for each saved account to help users decide when to switch accounts.
  • As a simpler short-term fix, modify the extension to read the CLAUDE_CONFIG_DIR environment variable from the workspace or shell environment.

Example

# Example of how the CLAUDE_CONFIG_DIR environment variable is used in the terminal
alias claude-b="CLAUDE_CONFIG_DIR=~/.claude-acc2 claude"

This example shows how the CLAUDE_CONFIG_DIR environment variable is used to switch between accounts in the terminal, which could be adopted by the VSCode extension.

Notes

The proposed solution requires modifications to the VSCode extension, and the complexity of the changes may vary depending on the extension's architecture. Respecting the CLAUDE_CONFIG_DIR environment variable could be a lower-effort change to immediately unblock users who manage multiple accounts via the terminal.

Recommendation

Apply the workaround by respecting the CLAUDE_CONFIG_DIR environment variable as a short-term fix, as it would be the lowest-effort change and would immediately address the issue for users who already manage multiple accounts via the terminal.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

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

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING