claude-mobile-cost-tracking

Community

Track Claude API costs, display to users.

Authorkrzemienski
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: claude-mobile-cost-tracking
Download link: https://github.com/krzemienski/claude-mobile-expo/archive/main.zip#claude-mobile-cost-tracking

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository