Skip to content

fix: support macOS Keychain for Claude credentials (re-submits #28) - #37

Merged
Carl723000 merged 1 commit into
mainfrom
fix/macos-keychain-credentials
Jun 15, 2026
Merged

Carl723000 merged 1 commit into
mainfrom
fix/macos-keychain-credentials

Conversation

@Carl723000

Copy link
Copy Markdown
Collaborator

Summary

Adds the macOS Keychain as a credentials source for the quota indicator. On macOS, Claude Code stores its OAuth credentials in the system Keychain (service Claude Code-credentials) rather than ~/.claude/.credentials.json, so the file-only reader shows 5h:--% wk:--% for those users. This reads the Keychain as a fallback — guarded to darwin, falling back to the file everywhere else — and mirrors token refreshes back to it.

Attribution

Original work by @Ailuras from #28, re-submitted here because that PR's fork/branch was deleted and it could no longer be reopened. The credit is theirs.

Type of change

  • Bug fix (non-breaking)

@Carl723000
Carl723000 requested a review from jack21 as a code owner June 15, 2026 16:27
@Carl723000 Carl723000 added the fix Patch — bug fix label Jun 15, 2026
@Carl723000
Carl723000 merged commit ee623e4 into main Jun 15, 2026
1 check passed
@Carl723000
Carl723000 deleted the fix/macos-keychain-credentials branch June 30, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Patch — bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants