Claude Usage Report
Description
Claude Code stop hook: per-prompt usage report with token costs, context window, and rate limits
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
claude-usage-report
A Claude Code stop hook that displays a usage summary after each prompt cycle.
────────────────────────────────────────────────────────
SESSION USAGE REPORT
────────────────────────────────────────────────────────
Duration: 1m 0s
Token Usage
Input: 141 Cache Write: 241.5k
Output: 21.0k Cache Read: 1.5M
Requests: 47 Cache Hit: 86%
Est. Cost: $ 0.5711 Session: $8.4136
Context Window
Total: [#######..................] 27.7% (55.4k / 1M)
Added: +5.2k (+2.6%)
Rate Utilized
5-Hour: [####.....................] 15.2% (resets in 3h 12m)
Weekly: [##.......................] 8.1% (resets in 5d 2h)
────────────────────────────────────────────────────────
Features
- Per-prompt metrics -- duration and cost reflect the last prompt cycle, not the full session
- Token breakdown -- input, output, cache write, cache read with cache hit rate
- Cost estimation -- per-prompt and session totals based on published Anthropic pricing
- Context window -- current fill percentage and how much was added in the last prompt
- Rate limits -- 5-hour and weekly utilization with reset countdowns (requires Claude login)
- Enable/disable -- toggle on and off without modifying settings
- Zero dependencies -- pure Node.js, reads Claude Code's own transcript data
Requirements
- Node.js 18+
- Claude Code CLI (authenticated via
claude login)
Installation
git clone https://github.com/abhiyankhanal/claude-usage-report.git
cd claude-usage-report
bash install.sh
The install script will:
- Copy
usage-report.mjsto~/.claude/hooks/ - Register the stop hook in
~/.claude/settings.json(or print instructions if settings already exist) - Install the
claude-usage-reportCLI to~/.local/bin/
Manual installation
If you prefer to install manually:
- Copy the hook script:
cp usage-report.mjs ~/.claude/hooks/usage-report.
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11