claude-code - 💡(How to fix) Fix [BUG] VS Code extension shows identical usage stats across different accounts in separate windows [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#45457Fetched 2026-04-09 08:04:58
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5closed ×1commented ×1

Error Message

Error Messages/Logs

Code Example

No errors. The panel renders without issues — usage numbers are just identical across both accounts.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Two VS Code windows authenticated with different Claude accounts display identical usage percentages. Auth info (email, plan, org) is correctly shown per account, but usage numbers are the same in both windows.

Window 1: [email protected] / Org: Company X / Plan: Claude team Window 2: [email protected] / no org / Plan: Claude max

Both show: Session (5hr) 26%, Weekly (7 day) 48%, Weekly Sonnet 0%

What Should Happen?

Each window should display the actual usage for its own authenticated account independently.

Error Messages/Logs

No errors. The panel renders without issues — usage numbers are just identical across both accounts.

Steps to Reproduce

  1. Have two separate Claude accounts (different emails, different plans)
  2. Open two VS Code windows with different projects
  3. Authenticate each window with a different account (verify correct email/plan is shown)
  4. Open "Account & Usage" panel in both windows
  5. Observe that Session, Weekly, and Weekly Sonnet percentages are identical

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.92

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Usage on claude.ai is correct per account — issue is isolated to the VS Code extension

extent analysis

TL;DR

The issue can be resolved by ensuring that the VS Code extension for Claude Code is properly handling authentication and usage data for multiple accounts.

Guidance

  • Verify that the authentication tokens or session IDs for each account are being stored and retrieved correctly in the VS Code extension.
  • Check the extension's code for any shared state or caching mechanisms that might be causing the usage data to be overwritten or shared between accounts.
  • Investigate the API calls made by the extension to the Anthropic API to ensure that they are being made with the correct authentication credentials for each account.
  • Consider adding logging or debugging statements to the extension to track the authentication and usage data being retrieved and displayed for each account.

Example

No code snippet is provided as the issue does not include specific code details.

Notes

The issue seems to be isolated to the VS Code extension, as the usage data is correct on the claude.ai website. This suggests that the problem lies in how the extension is handling authentication and usage data.

Recommendation

Apply workaround: Modify the VS Code extension to properly handle multiple accounts and ensure that each account's usage data is retrieved and displayed independently. This may involve changes to the extension's authentication and data storage mechanisms.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING