usage-reporter

usage-reporter is a skill for Claude Code from getpapi/papi. It costs 57 tokens per session (997 once invoked), scanned A, original, MIT.

A usage-reporting skill that reads token counts from an AI client's local conversation transcript and sends them to PAPI. Tokens are units that measure how much text an AI model processes.

In plain words
What is it for?
Use it after a build to report input, output, cache-read, and cache-creation token totals, or to check the token cost of a task or stage.
Why use it?
PAPI cannot see usage recorded outside its own request. This records available counts without reading prompts or responses, and reports "Not recorded" when the source is unavailable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Part of the papi plugin — 14 skills, 1 MCP server shipped together

Good fit Use it after a build to report input, output, cache-read, and cache-creation token totals, or to check the token cost of a task or stage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/getpapi/papi/usage-reporter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add getpapi/papi --skill usage-reporter
Clone the repo
git clone --depth 1 https://github.com/getpapi/papi

Made for: Claude Code.

Or install papi, the plugin that ships this one along with the rest of its 14 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for usage-reporter

README.md
[![agentmods](https://agentmods.dev/badge/skills/getpapi/papi/usage-reporter/github.svg)](https://agentmods.dev/skills/getpapi/papi/usage-reporter)
Your own site
<a href="https://agentmods.dev/skills/getpapi/papi/usage-reporter"><img src="https://agentmods.dev/badge/skills/getpapi/papi/usage-reporter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for usage-reporter

Your own site · 80×15
<a href="https://agentmods.dev/skills/getpapi/papi/usage-reporter"><img src="https://agentmods.dev/badge/skills/getpapi/papi/usage-reporter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 997 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00997
Opus 5.5 $0.00023 $0.00399
Sonnet 5.5 $0.00011 $0.00199
Haiku 4.5 $0.00006 $0.00100

Measured 1mo ago against content hash 2ce8197f3c82, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

usage-reporter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/opencode-usage-report.mjs, scripts/usage-report.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/usage-reporter/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

usage-reporter

PAPI cannot see how many tokens a build used: the MCP call only sees its own request, and a model cannot read its own usage. The numbers exist in your AI client's local transcript. This skill sums them for a window and hands you the three numbers build_execute already accepts.

It is optional. If it cannot run, complete the build normally: tokens are recorded as Not recorded, never as 0 and never estimated.

What it supports today

Client Source Status
Claude Code ~/.claude/projects/<project path with dashes>/*.jsonl Verified. Every assistant message carries input, output, cache read and cache creation tokens, a timestamp and the model.
OpenCode ~/.local/share/opencode/opencode.db, table message Verified (task-4842). Each assistant row has input, output, reasoning, cache read and cache write tokens, a millisecond timestamp and the model id. Run node .claude/skills/usage-reporter/scripts/opencode-usage-report.mjs --from <iso> --to <iso>. It covers every OpenCode session on the machine, not only this project. Needs Node 22+ (node:sqlite).
Codex not verified Codex was not installed on the machine checked, so no real transcript was available. No reader is shipped for it; it reports Not recorded until one is confirmed.

How to use it

  1. Note the build window: started_at when you called build_execute to start, and the time you complete it.
  2. Run the script with that window (optionally with the stage windows):
node .claude/skills/usage-reporter/scripts/usage-report.mjs \
  --from 2026-10-14T09:00:00Z --to 2026-10-14T11:30:00Z
  1. If the result has "notRecorded": false, pass its buildExecute object into the completing build_execute call as input_tokens, output_tokens and cache_read_tokens. If "notRecorded": true, pass nothing.

Stage calls (plan, review_submit, release, strategy_review): each of these tool responses ends with a line naming the time the next window opened. On your next stage call, run the script with --from <that time> --to <now> and pass its buildExecute object, your model and window_started_at as the optional stage_usage argument. The server stores it on that call, so no one runs anything by hand and nothing is estimated.

Read the full file on GitHub · 51 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 2ce8197f3c82
  2. 1mo ago First seen · 50 lines · 57 tokens per session scan A 70b761e9cd84

Subscribe to this mod's changes

usage-reporter is a skill published in the GitHub repository getpapi/papi (13 stars, last pushed 13d ago), licensed MIT. It adds 57 tokens to every session and 997 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.

Related

usage-reporter compared with skills from other repositories

usage-reporter next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
usage-reportergetpapi/papiSkill1313d agoMITA57Claude Code
memorix-memoryAVIDS2/memorixSkill9573d agoApache-2.0A30Claude Code
memorixAVIDS2/memorixSkill9573d agoApache-2.0A34Claude Code
memorix-mini-skillsAVIDS2/memorixSkill9573d agoApache-2.0A30Claude Code
memorix-orchestrateAVIDS2/memorixSkill9573d agoApache-2.0A37Claude Code
memorix-git-memoryAVIDS2/memorixSkill9573d agoApache-2.0A31Claude Code
memorix-reasoningAVIDS2/memorixSkill9573d agoApache-2.0A30Claude Code