Skip to content

[Bug]: System-default Claude account label disagrees with OAuth identity, duplicating managed account usage (Windows) #29897

Open

Description

@Ivey2048

Operating system

Windows

Orca version

1.4.227 (installed Windows executable FileVersion; ProductVersion 1.4.227.0)

Details

Orca lists two different Claude emails, but both account rows show 82% weekly usage. Read-only checks against Anthropic confirm that the system-default credential and the managed profile credential both authenticate as Account B, although the system-default metadata still names Account A.

Environment: Windows NT 10.0.26200.0, native host runtime. Account A and Account B below replace the real emails and UUIDs.

Observed state

  • System default is labelled Account A.
  • One saved managed account is labelled Account B.
  • orca account list --json reports claude.activeAccountId: null, activeAccountIdsByRuntime.host: null, systemDefaultEmail: Account A, and systemDefaultMayBeCopied: true.
  • Both rateLimits.claude.weekly.usedPercent and the saved account's inactiveClaudeAccounts[].rateLimits.weekly.usedPercent are 82, with status ok.
  • The account owner reports Account A has 0% weekly usage and Account B has 82%. Account A's actual usage could not be independently queried because the effective system-default token belongs to B.

Server-verified identity mismatch

Each credential was read locally and used only for GET requests to https://api.anthropic.com/api/oauth/profile and /api/oauth/usage. Tokens are omitted.

Local source Stored identity Identity returned by Anthropic Weekly usage returned
%USERPROFILE%\.claude.json + %USERPROFILE%\.claude\.credentials.json Account A Account B (B's email, account UUID and organization UUID) 82%
%APPDATA%\orca\claude-profiles\<managed-id>\home\.claude.json + .credentials.json Account B Account B (same account and organization UUID as above) 82%

The profile responses, including matching account and organization UUIDs, establish that both effective credentials belong to B; this conclusion does not rely on matching usage alone.

A third credential file, %APPDATA%\orca\claude-accounts\<managed-id>\auth\.credentials.json, returns HTTP 401 from the usage endpoint. This is an additional observed divergence between auth stores, not an established cause of the identity mismatch.

Verification and reproduction limits

This was diagnosed in an existing installation. The login/switch/upgrade sequence that created the mismatch has not been reproduced from a clean state.

To verify the affected state:

  1. Compare the system-default email and per-account usage in orca account list --json.
  2. Compare the local oauthAccount metadata with the account returned by /api/oauth/profile for each effective credential, keeping all tokens private.
  3. Compare the corresponding /api/oauth/usage responses.

The investigation did not change credentials, switch accounts, or send inference requests.

Expected behavior

The system-default label, authenticated identity and usage should describe the same account. If credentials belong to B while metadata says A, Orca should surface the mismatch and offer a recovery path, rather than presenting B's usage as A's. Separate accounts should retain separate credentials and quota attribution.

Related reports

No credential values, real emails, account UUIDs or raw local logs are included.

Activity

  1. added theissue type on Oct 17, 2026
  2. AmethystLiang commented on Oct 18, 2026

    @AmethystLiang
    Contributor

    looking into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions