A Go application that tracks Claude Code and Cursor token usage and sends metrics to Prometheus. It can run in CLI mode (outputs today's token count) or daemon mode (system tray application with periodic metrics sending).
git clone https://github.com/ca-srg/tosage.gitA Go application that tracks Claude Code and Cursor token usage and sends metrics to Prometheus. It can run in CLI mode (outputs today's token count) or daemon mode (system tray application with periodic metrics sending).
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/ca-srg/tosageCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I'm using Tosage to track my team's AI token usage. We need to monitor [COMPANY] across [INDUSTRY] platforms. Can you help me set up Tosage to track [PLATFORM1], [PLATFORM2], and [PLATFORM3]? What are the key metrics I should focus on for [SPECIFIC_USE_CASE]?
## Tosage Setup Guide for AI Token Monitoring
### Platforms to Track
- **Claude Code**: Primary platform for code generation
- **Cursor**: Used for document editing and formatting
- **AWS Bedrock**: Deployed for custom model training
### Key Metrics to Monitor
- **Token Count**: Daily and monthly usage
- **Cost Analysis**: Based on current pricing models
- **Usage Patterns**: Peak times and user distribution
### Recommended Configuration
```
# Example configuration for Tosage
platforms:
- name: Claude Code
api_key: your_api_key_here
interval: 3600
- name: Cursor
api_key: your_api_key_here
interval: 7200
- name: AWS Bedrock
api_key: your_api_key_here
interval: 14400
metrics:
- token_count
- cost_analysis
- usage_patterns
```
### Next Steps
1. Install Tosage on your local machine.
2. Configure the `config.yaml` file with your API keys.
3. Run Tosage in daemon mode for continuous monitoring.
4. Set up Prometheus to collect and visualize the metrics.AI assistant built for thoughtful, nuanced conversation
Open source metrics and monitoring for your systems and services
Automate invoicing and financial reporting for streamlined business management.
Unlock data insights with interactive dashboards and collaborative analytics capabilities.
AI-first code editor
Fare payment for public transport
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan