Claude Code usage
claude-code-costs
Script that tallies how much your Claude Code conversations have cost.
Install
npx claude-code-costsgit clone https://github.com/philipp-spiess/claude-code-costs.gitFrom the README
claude-code-costs Analyze your Claude Code conversation costs with interactive visualizations. š” Want to see how I use Claude Code? Here's my workflow and approach to getting things done with it. Installation You don't need to install anything! Just run: What it does This tool analyzes all your Claude Code conversations stored in ~/.claude/projects/ and: - Calculates total costs across all conversations - Shows daily cost breakdown for the last 30 days - Lists top 20 most expensive conversations - Provides project-based filtering - Generates an interactive HTML report with charts The report is automatically generated in your system's temp directory and opened in your default browser. Requirements - Node.js 14.0.0 or higher - Claude Code conversations stored in the default location (~/.claude/projects/) Output The tool provides: 1. Console summary of costs and top expensive conversations 2. Interactive HTML report with: - Total cost summary - Daily cost chart (last 30 days) - Top 20 conversations bar chart - Detailed table with filtering by project License MIT
Details
- Repository
- philipp-spiess/claude-code-costs
- Language
- JavaScript
- Last updated
- 16 June 2025
- Listed in
- jqueryscript/awesome-claude-code
FAQ
What is claude-code-costs?
Script that tallies how much your Claude Code conversations have cost. It is a usage for Claude Code, from philipp-spiess/claude-code-costs on GitHub.
How do I install claude-code-costs?
Run npx claude-code-costs, then follow the setup in the README.
Is claude-code-costs popular?
philipp-spiess/claude-code-costs has 204 GitHub stars and 16 forks, and is included in 1 curated Claude Code list. It was last updated on 16 June 2025.
More usage & cost trackers
Pbi CLI
486MinaSaad1/pbi-cli
Power BI CLI - semantic models (.NET TOM) and PBIR reports for token-efficient AI agent usage, built for Claude Code
OrcaReplay
295Continuum-AI-Corp/OrcaReplay
OrcaReplay ā Time travel for AI agents. Record, replay, fork, and debug any agent run with any model. Built by the OrcaRouter.ai team.
Claude Code Karma
337JayantDevkar/claude-code-karma
Dashboard for monitoring Claude Code sessions and activity.
Clawmetry
436vivekchand/clawmetry
See your agent think. Zero-config observability & governance for 30 AI agent runtimes: Claude Code, OpenAI Codex, Hermes, OpenClaw & 26 more. Live token costs, sessions, tool calls, crons.
ClaudeUsageBar
349Artzainnn/ClaudeUsageBar
Track your Claude.ai usage right from your Mac menu bar
tare
303kelviq/tare
Audits Claude Code session logs to explain where your usage and limits went.
Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.