Skip to content

[Resource]: claude-token-analyzer #1229

@li195111

Description

@li195111

Display Name

claude-token-analyzer

Category

Tooling

Sub-Category

Usage Monitors

Primary Link

https://github.com/li195111/claude-token-analyzer

Author Name

li195111

Author Link

https://github.com/li195111

License

MIT

Other License

No response

Description

Diagnoses token waste in Claude Code sessions with 6 anomaly types (token explosion, low cache hit, cost inefficient, extended session, repetitive errors, unusual model distribution), cost audit, and trend forecasting. Parses ~/.claude JSONL session logs into SQLite locally. Ships as a native Claude Code plugin with MCP server (7 tools) and CLI (9 commands). Fully local — nothing leaves your machine.

Validate Claims

Install with claude plugin install claude-token-analyzer, then run any of the MCP tools (e.g., analyze_session, anomaly_scan, cost_report) or the CLI (cta) to verify it parses your local session data and produces structured analytics.

Specific Task(s)

After installing the plugin, ask Claude Code to run an anomaly scan or cost report on your recent sessions. It should detect and report any statistical anomalies across your usage history.

Specific Prompt(s)

Scan my recent Claude Code sessions for anomalies and give me a cost report for the past week.

Additional Comments

Built in Rust with 98 tests (unit + integration). Supports macOS (x86_64 + ARM64) and Linux (x86_64 + ARM64). CI/CD via GitHub Actions builds release binaries on tag push.

Recommendation Checklist

  • I have checked that this resource hasn't already been submitted
  • It has been over one week since the first public commit to the repo I am recommending
  • All provided links are working and publicly accessible
  • I do NOT have any other open issues in this repository
  • I am primarily composed of human-y stuff and not electrical circuits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions