What problem does it solve?
Lack of transparency and control over Claude API costs for users can lead to frustration and unexpected bills. This Skill provides a mandatory, precise system for calculating, aggregating, and displaying API usage costs, fostering trust and clarity.
Core Features & Use Cases
- Exact Cost Calculation: Uses Anthropic's precise pricing ($0.003/1k input, $0.015/1k output) for accurate, auditable cost reporting.
- Per-Session Aggregation: Tracks costs for individual messages and aggregates them per user session for detailed analysis and historical review.
- Frontend Display & Slash Command: Integrates cost metrics directly into the app's Settings screen and provides a
/cost slash command for immediate user access.
- Use Case: Implement a cost tracking service in your mobile app that shows users exactly how much their AI interactions are costing them in real-time, fostering trust and preventing surprise bills.
Quick Start
Use the claude-mobile-cost-tracking skill to implement the CostService and integrate the total session cost display into the Settings screen.