All shelves / Mods / Usage
usage-stats
By omeerdvrn
usage-stats is a Claude Code usage mod by omeerdvrn.
Opens a /usage-stats pane of this machine's Claude Code tokens over 7 days, 30 days, or all time, by day, project, and model, with Linear issues closed.
Draws
Install
The marketplace name is o-mods.
claude plugin marketplace add omeerdvrn/o-mods claude plugin install usage-stats@o-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 6
- Last change
- 2026-10-15
What it can reach
- Draws in the session
- Reads usage or context figures
- Reaches the network or an outside service
- Calls another program on this machine
Needs Python 3 as python3, and Linear connected to Claude for the issues closed section; set linearServer in /config to use another server, or leave it empty to hide the section. It never opens on its own, and where no pane can be shown the same receipt is printed into the conversation. The first scan reads every log and takes a few seconds; after that only new or changed logs are read, and the results are cached in ~/.claude/usage-stats/cache.json. Claude Code removes old session logs, so all time goes back as far as the logs on this machine. claude --plugin-dir runs it from a clone.
The marketplace name is o-mods. The marketplace also holds heat, linear, usage-bar, persona, themes, and other mods. This one installs on its own. Token counts from the session logs are why this page files it under usage. heatmap draws a GitHub-style grid of your Claude Code time in a pane, one square per day, with your streak, peak hours, and top projects. session-receipt opens a pane of every turn's tokens in this session, with the five that spent the most. This one reads every session log on the machine, subagents included, counts each API response once, counts a worktree toward its repository, and adds the busiest day and hour of the week and the issue with the most tokens. Nothing leaves the machine except the Linear request. In the source, the pane is opened with $.ui.open and brought to the front.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/usage-stats/usage-stats:usage-statsui.renderDraws into the sessionPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/usage-statsShow your Claude Code usage on this machine: tokens, prompts, sessions, issues closed
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- omeerdvrn
- Category
- Usage
- Marketplace
- o-mods
- Repo
- omeerdvrn/o-mods
- Folder
- mods/usage-stats
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 6
- Last change
- 2026-10-15
- Language
- TypeScript
- Files
- 19