A Chrome extension that tracks your token usage across Claude Chat, Projects, Cowork, and Design in real time — with desktop alerts before you run low and full trend analytics.
Independent open-source project. Not affiliated with Anthropic.
The extension intercepts fetch calls on claude.ai and reads the input_tokens / output_tokens fields from Anthropic’s streaming SSE responses. Message content is never read or stored. Since Anthropic does not expose a public quota API, usage is tracked relative to your own rolling average rather than against an absolute limit.
git clone https://github.com/Ashutosh-Sharma-IN/claude-usage-tracker.git
cd claude-usage-tracker
Generate icons
Open icons/create-icons.html in Chrome, click Download all icons, and move the three PNGs into the icons/ folder.
chrome://extensionsclaude-usage-tracker folderPublishing in progress — link will be added here once approved.
claude-usage-tracker/
├── manifest.json Extension config (Manifest V3)
├── background/
│ └── service-worker.js Storage, notifications, stats aggregation
├── content/
│ ├── interceptor.js Fetch interceptor (MAIN world)
│ └── bridge.js Event relay to service worker (ISOLATED world)
├── popup/
│ ├── popup.html/css/js Toolbar popup — live status + mini charts
├── dashboard/
│ ├── dashboard.html/css/js Full analytics page with SVG charts
├── options/
│ ├── options.html/css/js Settings: products, thresholds, data export
├── icons/
│ ├── create-icons.html Open in Chrome to generate PNGs
│ ├── icon16.png (generate via create-icons.html)
│ ├── icon48.png
│ └── icon128.png
└── privacy-policy.md
| Setting | Default | Description |
|---|---|---|
| Tracked products | All 4 | Which Claude surfaces to include |
| Alert thresholds | 50 / 75 / 90 % | Notification triggers (% of daily avg) |
| Baseline window | 7 days | Rolling average used for relative comparisons |
PRs welcome. Open an issue first for anything beyond a small bug fix.
MIT © Ashutosh-Sharma-IN
This extension reads token-count metadata from Anthropic’s API responses on claude.ai. It does not read, store, or transmit message content. Claude and claude.ai are trademarks of Anthropic. This project is not affiliated with or endorsed by Anthropic.