Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Claude Token Cost TrackerNew to Visual Studio Code? Get it now.
Claude Token Cost Tracker

Claude Token Cost Tracker

Jason Nicolini

|
4 installs
| (0) | Free
Analyze Claude API token costs from ~/.claude/projects/
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Token Cost Tracker

VS Code extension that analyzes Claude API token usage and estimated costs from your ~/.claude/projects/ session files.

Usage

Ctrl+Shift+P → Token Cost: Analyze

Select a project or "All Projects" — results appear in the Claude Token Cost output channel.

Output example

Project: my-cool-project
Sessions: 8 JSONL files

Model: claude-sonnet-4-6
  Input tokens:          123,456   → $0.37
  Output tokens:          45,678   → $0.69
  Cache write tokens:    234,567   → $0.88
  Cache read tokens:   1,234,567   → $0.37
  Subtotal:                        → $2.31

TOTAL ESTIMATED COST: $2.31

Pricing

Model Input Output Cache Write Cache Read
claude-opus-4-6 $15/M $75/M $18.75/M $1.50/M
claude-sonnet-4-6 $3/M $15/M $3.75/M $0.30/M
claude-haiku-4-5 $0.80/M $4/M $1/M $0.08/M

Requirements

  • VS Code 1.85+
  • ~/.claude/projects/ populated by Claude Code

Install

Install from .vsix via Extensions sidebar → ... → Install from VSIX.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft