Claude Code Usage Monitor for VS Code
Monitor your Claude Code usage and costs directly in your VS Code status bar.
Features
- Real-time cost tracking: Shows today's Claude Code usage cost in the status bar
- Automatic updates: Refreshes every 30 seconds to show current usage
- Detailed breakdown: Click the status bar item to see a table with the last 7 days of usage data
- Zero configuration: Works out of the box with your existing Claude Code setup


Usage
Once installed, the extension will automatically:
- Display today's Claude Code usage cost in the status bar (e.g., "Today: $2.45")
- Update the display every 30 seconds
- Show a detailed table with the last 7 days of usage when you click on the status bar item
Commands
Claude Code Usage: Refresh Usage Data - Manually refresh the usage data
Claude Code Usage: Show Usage Details - Show detailed usage breakdown
Requirements
- VS Code 1.74.0 or higher (also works with Cursor)
- Claude Code must be installed and have generated usage data in
~/.claude/projects/
Installation
From Source
- Clone this repository
- Run
npm install
- Run
npm run compile
- Run
npm run package to create a VSIX file
- Install the VSIX file in VS Code
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Package extension
npm run package
How it Works
The extension reads Claude Code usage data from the local JSONL files stored in ~/.claude/projects/ . It aggregates the data to show:
- Today's total cost in the status bar
- Detailed table view showing the last 7 days of usage data
- Daily breakdown of token usage (input, output, cache creation, cache read)
- Cost per day and total costs
- Real-time updates as you use Claude Code
Pricing
The extension calculates costs based on Claude Opus pricing (as of June 2025):
- Input tokens: $15.00 per million tokens
- Output tokens: $75.00 per million tokens
- Cache creation tokens: $18.75 per million tokens
- Cache read tokens: $1.50 per million tokens
Note: The extension supports both legacy and current Claude Code data formats for compatibility.
Privacy
This extension only reads local Claude Code usage data from your machine. No data is sent to external services.
Changelog
v0.1.2 (Latest)
- Fixed support for new Claude Code data format (post June 3, 2025)
- Updated cache pricing to correct values ($18.75 for creation, $1.50 for read)
- Now automatically calculates costs when costUSD field is not present
v0.1.1
- Initial release
- Basic cost monitoring and status bar display
- 7-day usage history table
License
MIT
| |