Skip to content

feat: use Anthropic usage API with deferred keychain access#13

Merged
bottlebrushes merged 1 commit intomainfrom
bettercoderthanyou/hide-empty-claude-widget
Feb 2, 2026
Merged

feat: use Anthropic usage API with deferred keychain access#13
bottlebrushes merged 1 commit intomainfrom
bettercoderthanyou/hide-empty-claude-widget

Conversation

@bottlebrushes
Copy link
Copy Markdown
Owner

Summary

  • Replace local file scanning with Anthropic's OAuth usage API for accurate rate limit data
  • Defer macOS Keychain permission to explicit user action via "Allow Access" button
  • Cache credentials in memory to avoid repeated permission prompts
  • Show 5-hour and weekly utilization from Anthropic's servers

Test plan

  • Click Claude widget — shows connect prompt with "Allow Access" button
  • Click "Allow Access" — single Keychain permission dialog
  • After granting, popup shows accurate usage percentages
  • Relaunch — auto-connects without re-prompting

🤖 Generated with Claude Code

Replace local file scanning with Anthropic's OAuth usage API for
accurate rate limit data. Defer keychain permission to explicit
user action via "Allow Access" button in popup.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bottlebrushes bottlebrushes merged commit 639e855 into main Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant