Home / Claude Code mods / Cost & usage / usage-reporter

usage-reporter

usage-reporter is a Claude Code mod by tksunw that writes your Claude usage limits and credits to ~/.claude/usage-reporter/usage.json so other tools can read them.

Updated 2026-10-13

What is usage-reporter?

usage-reporter is a Claude Code mod by tksunw that writes your Claude usage limits and credits to ~/.claude/usage-reporter/usage.json so other tools can read them. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authortksunw
Repositorytksunw/usage-reporter
Popularityno public popularity data yet
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#4,859 of 5,272 Claude Code mods; #962 in Cost & usage
LicenseMIT
Last commit2026-10-13
Hooks3 events
Seesonly the events it hooks
Draws onnothing

Is usage-reporter safe to install?

usage-reporter scores 60/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; writes files or config; reads environment variables. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.env.getreads env vars
$.fs.readreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.session.authorizereads the transcript
$.session.usage
$.store.getkeeps its own state
$.store.setkeeps its own state

How do I install usage-reporter?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/tksunw/usage-reporter
    claude plugin validate ./usage-reporter/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/tksunw/usage-reporter && claude --plugin-dir ./usage-reporter/.

Or ask Claude to set it up

Paste this into Claude Code and it installs usage-reporter for you:

Install the "usage-reporter" Claude Code mod from https://github.com/tksunw/usage-reporter. Run claude plugin validate on it first and show me what it can access before you enable it.