Helps you track your claude.ai usage caps based on tokens sent, and syncs across devices using firebase.
Claude Usage Tracker Extension
This extension is meant to help you gauge how much usage of claude you have left, based on the tokens consumed by your messages.
The extension will correctly handle calculating token usage (via gpt-tokenizer) from:
- Files uploaded to the chat
- Project (knowledge files and instructions)
- Personal preferences
- Message history
- The system prompt of any enabled tools (analysis tool, artifacts) on a per-chat basis
- The AI's output (This is weighted as being 10x the usage of input tokens, a rough estimate)
It cannot currently handle:
- Files from integrations (eg, google drive)
It will additionally fetch your organization ID on claude.ai to synchronize your usage amounts across devices via firebase.
The source code can be found here: https://github.com/lugia19/Claude-Usage-Extension
Read more
The extension will correctly handle calculating token usage (via gpt-tokenizer) from:
- Files uploaded to the chat
- Project (knowledge files and instructions)
- Personal preferences
- Message history
- The system prompt of any enabled tools (analysis tool, artifacts) on a per-chat basis
- The AI's output (This is weighted as being 10x the usage of input tokens, a rough estimate)
It cannot currently handle:
- Files from integrations (eg, google drive)
It will additionally fetch your organization ID on claude.ai to synchronize your usage amounts across devices via firebase.
The source code can be found here: https://github.com/lugia19/Claude-Usage-Extension
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx",\t"manifest_version": 3,\t"name": "Claude Usage Tracker",\t"version": "3.0.0",\t"description": "Helps you track your claude.ai usage caps based on tokens sent, and syncs across devices using firebase.",\t"author": "lugia19",\t"browser_specific_settings": {\t\t"gecko": {\t\t\t"id": "[email protected]"\t\t}\t},\t"background": {\t\t"scripts": [\t\t\t"background.js"\t\t],\t\t"service_worker": "background.js",\t\t"type": "module"\t},\t"content_scripts": [\t\t{\t\t\t"matches": [\t\t\t\t"https://claude.ai/*"\t\t\t],\t\t\t"js": [\t\t\t\t"lib/browser-polyfill.min.js",\t\t\t\t"lib/o200k_base.js",\t\t\t\t"ui.js"\t\t\t]\t\t}\t],\t"permissions": [\t\t"storage",\t\t"alarms",\t\t"webRequest",\t\t"cookies",\t\t"tabs"\t],\t"host_permissions": [\t\t"*://claude.ai/*",\t\t"https://raw.githubusercontent.com/*"\t],\t"web_accessible_resources": [\t\t{\t\t\t"resources": [\t\t\t\t"default-config.json",\t\t\t\t"lib/browser-polyfill.min.js",\t\t\t\t"lib/o200k_base.js"\t\t\t],\t\t\t"matches": [\t\t\t\t"" \t\t\t]\t\t}\t],\t"icons": {\t\t"128": "icon128.png"\t},\t"action": {\t\t"default_icon": "icon128.png",\t\t"default_title": "Claude Usage Tracker - Source"\t}}
Read more