@bi/beeper-tokentime-tracker
v1.1.1
Published
Uses ccusage to get Claude Code spending on MAX plan and pushes it to tokentime.beeper-tools.com API.
Maintainers
Readme
Beeper Token Time Tracker
Pulls your Claude Code token usage and costs from local JSONL files (using ccusage) and pushes them to tokentime.beeper-tools.com API for web analytics. Heavily inspired and built on top of ccusage.
Installation
npm install -g @bi/beeper-tokentime-trackerOr use directly with npx:
npx @bi/beeper-tokentime-tracker <userId> [--test]Usage
Production Mode
beeper-tokentime-tracker <userId>This will fetch your Claude Code usage data and send it to the Token Time API endpoint. You can get your userId from tokentime.beeper-tools.com.
Test Mode
beeper-tokentime-tracker <userId> --testIn test mode, the tool will send data to http://localhost:3000/api instead of the production API.
VS Code Extension
This package includes a VS Code extension that automatically syncs your usage data every 15 minutes. To use it:
- Navigate to the
extension/folder in this package - Copy the folder to your VS Code extensions directory, or
- Use
vsce packageto create a.vsixfile and install it manually
What it does
- Fetches your Claude Code usage data using
ccusage - Parses the daily usage statistics
- Sends the data to an API endpoint with the following format:
{
"userId": "your-user-id",
"data": {
"daily": [
// Daily usage data from ccusage
]
}
}Requirements
- Node.js 14 or higher
- Claude Code must be installed and configured
License
MIT
