Powrót do marketplace
claude-code-usage
Check Claude Code OAuth API usage limits, including session and weekly quotas, with automated session refresh reminders and reset detection monitoring.
3,690pobrań17instalacji17gwiazdek
v1.2.0
cmdopDevelopmentapi, Automated monitoring, claude-code, oauth, Reset detection, Session quotas, Usage limits, Weekly quotas3/2/2026
Overview
Check your Claude Code OAuth API usage limits for both session (5-hour) and weekly (7-day) windows. Get automated session refresh reminders and reset detection monitoring.
Key Features
- Session limit (5-hour window) - Short-term rate limit
- Weekly limit (7-day window) - Long-term rate limit
- Smart caching - 60-second cache to avoid API spam
- Beautiful output - Progress bars, emojis, color-coded status
- Force refresh -
--freshflag to bypass cache - JSON output - Machine-readable format
- Automated monitoring - Get notified when quotas reset
How It Works
- Retrieves OAuth token from system keychain
- Queries
api.anthropic.com/api/oauth/usagewith OAuth bearer token - Parses
five_hourandseven_dayutilization metrics - Calculates time remaining until reset
- Formats output with progress bars and status indicators
- Caches result for 60 seconds (configurable)
Use Cases
- Check usage before starting work
- Integrate with statusline
- Get JSON for monitoring
- Automated session refresh reminders
- Reset detection monitor
Recenzje
Brak recenzji.