[BUG] There is a serious issues with Claude Code AI - Can't switch accounts

Resolved 💬 4 comments Opened Feb 25, 2026 by AnirudhTripathi Closed Mar 1, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The Claude Code VS Code extension does not provide a way to switch between multiple logged-in Anthropic accounts. I have two separate Claude Code accounts (e.g., personal and work) and have authenticated both via /login, but there is no UI or command to switch between them within the extension. The extension always uses the last logged-in account with no option to select which account to use. Even after logging out and then logging back gain with different account the previous account is showing.

What Should Happen?

The VS Code extension should provide a way to switch between multiple authenticated Claude Code accounts — either through a command palette option (e.g., "Claude Code: Switch Account"), a dropdown in the Claude Code panel, or support for the CLAUDE_CONFIG_DIR environment variable so users can maintain separate sessions. This is already partially possible in the terminal CLI using CLAUDE_CONFIG_DIR, but the VS Code extension does not respect this variable when set in the shell profile.

Error Messages/Logs

No error messages. The issue is a missing feature/workflow — there is no visible error, the extension simply always defaults to one account with no switch option.

Steps to Reproduce

  1. Install the Claude Code VS Code extension
  2. Open the Claude Code panel and run /login — authenticate with Account A
  3. Run /login again — authenticate with Account B
  4. Observe that only Account A is now active
  5. There is no command, setting, or UI element to switch to Account B
  6. Even you yo logout and login back with B account account A email is showin in the accounts and usage settings
  7. Setting CLAUDE_CONFIG_DIR in the terminal profile and launching VS Code does not affect which account the extension uses

Claude Model

None

Is this a regression?

I don't know

Last Working Version

2.1.56

Claude Code Version

2.1.56

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗