CLI Commands
TokenSense provides built-in CLI tools to manage your local pricing database and view usage reports directly from your terminal.1. View Usage Report
Use thereport command to aggregate your local SQLite database and view total token usage and USD spent per model.
2. Update Pricing
TokenSense calculates costs locally to protect your data privacy. To ensure your cost attribution is perfectly accurate, even for models released today, use theupdate-prices command.
