Uses ccusage to get Claude Code spending on MAX plan and pushes it to tokenti.me API.
npm install token-time-tracker``bash`
npm install -g token-time-tracker
Or use directly with npx:
`bash`
npx token-time-tracker
bash
token-time-tracker
`This will fetch your Claude Code usage data and send it to the TokenTi.me API endpoint. You can get your userId from the Token Time Website.
$3
`bash
token-time-tracker --test
`In test mode, the tool will send data to
http://localhost:3000/api instead of the production API.What it does
1. Fetches your Claude Code usage data using
ccusage
2. Parses the daily usage statistics
3. Sends the data to an API endpoint with the following format:`json
{
"userId": "your-user-id",
"data": {
"daily": [
// Daily usage data from ccusage
]
}
}
``- Node.js 14 or higher
- Claude Code must be installed and configured
MIT