Skip to content

Claude quota shows the default account when CLAUDE_CONFIG_DIR points to another login #510

Open

Description

@molovo

In one sentence, what do you see?

The Claude quota rows show my personal account's usage while OpenCode runs with a second Claude login.

Which OpenCode do you use?

OpenCode 2

Your OpenCode version

2.3.2

Your plugin version

6.3.0

What went wrong?

Claude Code keeps a separate login per CLAUDE_CONFIG_DIR. On macOS it stores that login under a Keychain service with a suffix (Claude Code-credentials-<first 8 hex of sha256(dir)>). On other platforms it reads $CLAUDE_CONFIG_DIR/.credentials.json. The plugin only reads the unsuffixed Keychain entry and ~/.claude/.credentials.json, so it reports the default account's quota.

How can we make it happen?

  1. Sign in to Claude Code with a second account: CLAUDE_CONFIG_DIR=~/.claude-work claude auth login
  2. Start OpenCode with the same variable: CLAUDE_CONFIG_DIR=~/.claude-work opencode
  3. Use a Claude model and open the sidebar. The quota belongs to the default account, not the second one.

Paste what /quota_status shows (optional)

Activity

  1. added
    bug
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions