/my-usage:my-usage [report | reading | demo] [--since YYYY-MM-DD] [--tz ZONE]from My Usage
Reports Claude subscription usage. It measures Claude Code token usage per request from the session files on this machine, and records the plan usage-meter percentages the user types in, which cover Claude, Claude Duet and Claude Code together because they share one set of plan limits. Use when the user runs /my-usage or asks how much of their Claude plan they have used, where their Claude Code tokens went, or wants a usage dashboard. Not for Claude Platform API (Console) usage.
Ships in My Usage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Shows how a Claude subscription is being used, from two sources only:
/usage screen. Claude and Claude Code share these limits, so one reading covers Claude (web, desktop, mobile), Claude Duet and Claude Code together.Never read or search chat history, memory, conversation summaries or uploaded chat files to fill gaps, and never open the session files yourself. The script parses the session files but discards message text and tool contents in memory; it stores and prints only usage metadata, and nothing leaves the machine.
${CLAUDE_SKILL_DIR}/scripts/my_usage.py (Python 3.9+, standard library only). If ${CLAUDE_SKILL_DIR} is not substituted on this surface, use the base directory shown when this skill loaded. Run it with python3.
| Command | What it does |
|---|---|
scan | Adds Claude Code requests from $CLAUDE_CONFIG_DIR/projects (default ~/.claude/projects) to the ledger, de-duplicated by message and request id. |
reading --where claude-app|claude-code --session-pct N --weekly-pct N | Records one meter reading. Optional: --extra-label NAME --extra-pct N for a model-specific weekly limit, --session-resets TEXT, --weekly-resets TEXT, --at ISO-TIME. |
report [--since D] [--until D] [--tz ZONE] [--html FILE] [--json] | Summarizes the ledger and readings, with checks that the day, model, project folder and main/subagent views each sum to the totals and that the ledger has no duplicates. |
demo [--html FILE] | Runs scan and report on the bundled synthetic sample. |
paths | Shows where the ledger (~/.my-usage/ledger.csv) and readings are kept. |
scan. If it finds no session folder (for example on the Claude app, or in a cloud session), say that Claude Code usage on this machine can't be measured here, and continue with readings./usage), record each with reading, using --where claude-app for bars read in Claude and --where claude-code for /usage. Never invent, estimate or carry over a reading. If they gave none, say they can paste their usage bars to add one, and go on without it.report with the user's time zone if they gave one (--tz America/Los_Angeles). Use --since/--until when they ask about a period.report --html my-usage-report.html) and the ledger CSV as files the user can keep./my-usage:my-usage at least monthly so the ledger keeps the history.paths; deleting it is their action.scan reports many unreadable or zero-usage lines, say the counts may be incomplete.--where claude-app), scan, report --since the start of the week.--since 2026-11-01 --until 2026-11-30 --html, list the top project folders.demo.assets/human0-logo.jpg (opens in a new tab)samples/projects/-Users-sample-demo-app/11111111-aaaa-4bbb-8ccc-000000000001.jsonl (opens in a new tab)samples/projects/-Users-sample-demo-app/11111111-aaaa-4bbb-8ccc-000000000001/subagents/agent-explore-1.jsonl (opens in a new tab)samples/projects/-Users-sample-notes/22222222-aaaa-4bbb-8ccc-000000000002.jsonl (opens in a new tab)samples/projects/-Users-sample-notes/33333333-aaaa-4bbb-8ccc-000000000003.jsonl (opens in a new tab)scripts/my_usage.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mmc7676/human0 --plugin my-usage