claude-stats

claude-stats is a Claude Code mod by estruyf that usage limits (5h / 7d) and ccusage spend, drawn as a status band above the prompt.

Updated 2026-10-02

What is claude-stats?

claude-stats is a Claude Code mod by estruyf that usage limits (5h / 7d) and ccusage spend, drawn as a status band above the prompt. It is listed under Cost & usage and has 2 GitHub stars.

TypeClaude code mod
Authorestruyf
Repositoryestruyf/claude-stats-mod
Popularity2 GitHub stars
CategoryCost & usage
SecurityHigh risk (37/100)
Rank#1,156 of 5,272 Claude Code mods; #214 in Cost & usage
Last commit2026-10-02
Hooks4 events
Seesonly the events it hooks
Draws onAbovePrompt

Is claude-stats safe to install?

claude-stats scores 37/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; reads environment variables; validator reported problems. 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
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsFlag
No license detectedNote

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.env.getreads env vars
$.process.runruns processes
$.session.usage
$.state.get
$.state.set
$.ui.logdraws interface
$.ui.resolvedraws interface

How do I install claude-stats?

  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/estruyf/claude-stats-mod
    claude plugin validate ./claude-stats-mod/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/estruyf/claude-stats-mod && claude --plugin-dir ./claude-stats-mod/.

Or ask Claude to set it up

Paste this into Claude Code and it installs claude-stats for you:

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