claude-code-token-usage

Community

Measure token usage and project costs.

AuthorDavidTeju
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Calculates project-specific token usage and estimated costs from Claude Code session data. Use when you want to understand token spending per project, track costs, and compare usage across projects.

Core Features & Use Cases

  • Parse session data from ~/.claude and project-specific JSONL transcripts to accumulate per-message token usage.
  • Compute project-level token counts (input, output) and cache-related tokens from prompt caching.
  • Estimate costs with configurable pricing and provide cross-project comparisons for optimization.

Quick Start

Run the included script to compute token usage and project costs for a given Claude Code project.

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-code-token-usage
Download link: https://github.com/DavidTeju/shared-skills/archive/main.zip#claude-code-token-usage

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.