npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

openclaw-claude-usage

v1.0.1

Published

Claude Max subscription usage calculator for OpenClaw agents

Readme

Claude Usage

Calculate your Claude Max subscription usage from OpenClaw session data.

Built for OpenClaw — This tool reads OpenClaw session JSONL transcripts to calculate Claude API credit consumption. It requires an OpenClaw installation with active sessions.

Track credits consumed, rate limits, and per-session breakdown based on the reverse-engineered credits system from she-llac.com/claude-limits.

Features

  • Weekly overview with progress bar and remaining budget
  • 5-hour sliding window rate limit warning (⚡ >50%, ⚠️ >80%)
  • Per-session breakdown — see which sessions cost the most
  • Single session detail — deep-dive into any session's usage
  • Saved config — set reset time once, never type it again
  • JSON output for programmatic use

Install

# npm (global CLI)
npm install -g claude-usage

# Or as an OpenClaw skill via ClawHub
npx clawhub@latest install claude-usage

Usage

# First time — save your reset time (from claude.ai Settings > Usage)
claude-usage "2026-02-09 14:00" --plan 5x --save

# After saving, just run:
claude-usage

# Top 5 sessions only
claude-usage --top 5

# Single session detail
claude-usage --session "main"

# JSON output
claude-usage --json

You can also run the Python script directly: python3 scripts/claude-usage.py [args]

Example Output

╔══════════════════════════════════════════════════════╗
║  Claude Max 5X Usage Report                  ║
╠══════════════════════════════════════════════════════╣
║  Reset:  2026-02-09 14:00                           ║
║  Budget:   41,666,700 credits/week                ║
║  Used:      1,819,685 credits (4.4%)             ║
║  Remain:   39,847,015 credits                     ║
║  Turns:           253                             ║
╠──────────────────────────────────────────────────────╣
║  5h window:  1,814,155 /  3,300,000 (55.0%)  ⚡ Watch it  ║
╚══════════════════════════════════════════════════════╝

  Weekly: [█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 4.4%
  5h:     [█████████████████████░░░░░░░░░░░░░░░░░░░] 55.0%

Credits Formula

| Model | Input rate | Output rate | |--------|-----------|-------------| | Haiku | 2/15 | 10/15 | | Sonnet | 6/15 | 30/15 | | Opus | 10/15 | 50/15 |

Cache reads are free on subscription plans. Non-Claude models don't consume Claude credits.

Plans

| Plan | $/month | Credits/5h | Credits/week | |------|---------|-----------|-------------| | Pro | $20 | 550,000 | 5,000,000 | | 5× | $100 | 3,300,000 | 41,666,700 | | 20× | $200 | 11,000,000| 83,333,300 |

Requirements

  • Python 3.9+
  • OpenClaw with session JSONL transcripts

License

MIT