Socket
Book a DemoInstallSign in
Socket

claude-code-costs

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

claude-code-costs

Analyze Claude Code conversation costs with interactive visualizations

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

claude-code-costs

Claude Code Costs Analyzer

Analyze your Claude Code conversation costs with interactive visualizations.

Installation

You don't need to install anything! Just run:

npx claude-code-costs

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:

  • Console summary of costs and top expensive conversations
  • 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

Keywords

claude

FAQs

Package last updated on 13 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.