You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Claude quota shows the default account when CLAUDE_CONFIG_DIR points to another login #510
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?
Sign in to Claude Code with a second account: CLAUDE_CONFIG_DIR=~/.claude-work claude auth login
Start OpenCode with the same variable: CLAUDE_CONFIG_DIR=~/.claude-work opencode
Use a Claude model and open the sidebar. The quota belongs to the default account, not the second one.
Activity