A live dashboard that tracks Claude Code’s token usage by project and session. It estimates costs using API pricing. Benefits operations teams managing AI workloads. Connects to Claude Code’s local files.
git clone https://github.com/ocodista/claude-usage.gitClaude Usage is a local dashboard that monitors Claude Code's token consumption across projects and sessions. It reads Claude's local session logs, measures input, output, and cache tokens, and estimates equivalent API costs in real time. The tool displays activity patterns by hour and day, calculates cache savings, and updates live as you work. All data remains on your machine—the tool never inspects content, only token volume and timestamps. It's built with TypeScript, React, and Bun, and runs via a simple command-line installation.
Install with curl -fsSL https://ocodista.com/claude-usage-install.sh | bash, then run claude-code-usage to open the dashboard at http://localhost:3190. The tool automatically watches your ~/.claude directory and streams live usage updates to the dashboard.
Monitor token spending across multiple Claude Code projects
Track peak usage hours and optimize session timing
Estimate API costs for Claude usage patterns
Understand cache efficiency and cost savings
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/ocodista/claude-usageCopy 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.
Create a live dashboard that tracks Claude Code's token usage for [COMPANY] in the [INDUSTRY] sector. The dashboard should display usage by project and session, estimate costs using the latest API pricing, and connect to local files. Provide a summary of the top 5 projects by token usage and a 7-day trend analysis.
# Claude Code Token Usage Dashboard ## Top 5 Projects by Token Usage 1. **Customer Support Automation** - 12,450 tokens ($24.90) 2. **Marketing Content Generation** - 9,870 tokens ($19.74) 3. **Technical Documentation** - 7,320 tokens ($14.64) 4. **Product Ideation** - 5,670 tokens ($11.34) 5. **Code Review Assistant** - 4,290 tokens ($8.58) ## 7-Day Trend Analysis - **Total Tokens Used**: 49,600 - **Average Daily Usage**: 7,085 tokens - **Peak Usage Day**: Wednesday (8,420 tokens) - **Lowest Usage Day**: Sunday (5,210 tokens) ## Cost Estimate - **Current Week**: $99.20 - **Projected Monthly**: $416.80 - **Projected Annual**: $5,001.60 ## Recommendations - Consider optimizing the Customer Support Automation project to reduce token usage. - Schedule intensive tasks during off-peak hours to balance daily usage. - Review the Marketing Content Generation project for potential efficiency improvements.
Accounting software with automated invoicing and reporting
AI assistant built for thoughtful, nuanced conversation
Auto-transcribe meetings and generate action items
Get more done every day with Microsoft Teams – powered by AI
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan