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

agent-burn

v20.0.17

Published

Compare local coding-agent usage against subscription limits and API-equivalent value

Readme

Agent Burn

Agent Burn is a local CLI for answering one question: is your coding-agent subscription paying for itself?

The public surface is intentionally small and centered on subscription-value reporting. The CLI keeps fast local log readers and cost aggregation logic, then exposes only two commands:

  • agent-burn summary for an all-up local usage and cost overview.
  • agent-burn harness <claude|codex> for focused weekly subscription-limit detail.

The npm package also installs burn as a short alias.

Install

npx agent-burn@latest summary --value
pnpm dlx agent-burn@latest harness claude --value
bunx agent-burn@latest harness codex --value

Commands

# Default overview. Running without a command is the same as summary.
agent-burn
agent-burn summary

# Quick date windows.
agent-burn summary today
agent-burn summary week --value
agent-burn summary --range month --value

# Focused subscription harnesses.
agent-burn harness claude --value
agent-burn harness codex --value

# Machine-readable output.
agent-burn summary --json
agent-burn harness claude --json --offline

Subscription Value

--value compares local API-equivalent usage against known or supplied monthly subscription prices.

agent-burn summary --value
agent-burn summary --value --claude-plan max-20x --codex-plan pro
agent-burn harness claude --value --claude-plan 200
agent-burn harness codex --value --codex-plan plus

Supported plan overrides:

  • Claude: pro, max-5x, max-20x, or a raw monthly price.
  • Codex: plus, pro, or a raw monthly price.

Shared Options

Common options work on both commands:

--since <YYYYMMDD>       Start date
--until <YYYYMMDD>       End date
--json                   JSON output
--jq <filter>            Apply a jq filter to JSON output
--mode <auto|calculate|display>
--breakdown              Include model breakdowns
--offline                Use embedded pricing and skip live requests
--no-cost                Hide cost fields
--timezone <tz>          Date grouping timezone
--compact                Force compact table layout
--config <path>          Load a config file

Data Sources

Agent Burn reads local logs and never uploads your data. The subscription harness is currently built around Claude Code and Codex because those are the sources with useful subscription-limit signals. The summary view still aggregates detected local usage from the inherited readers so your total agent spend remains visible.

Primary source locations:

| Source | Default location | | --- | --- | | Claude Code | ~/.claude, ~/.config/claude/projects | | Codex | ${CODEX_HOME:-~/.codex} |

Development

The Rust CLI lives in the Rust workspace; the npm launcher and package metadata live in apps/agent-burn.

Useful direct commands when the Nix dev shell is unavailable:

cargo test --manifest-path rust/Cargo.toml --workspace
cargo build --manifest-path rust/Cargo.toml --release --bin agent-burn
node --test apps/agent-burn/src/cli.test.ts

Release

After npm login, publish a new npm release for the current platform and the main wrapper package with one command:

pnpm release:npm -- --bump patch --commit --push

Use --dry-run to validate the release without publishing.

License

MIT