# Claude Code usage report

> Show what your Claude Code sessions cost, in tokens and dollars per day, week, project, model or session, from local transcripts with no network.

Claude Code usage report is a free AI agent skill on Agensi by Naresh Prabu, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Naresh Prabu](https://www.agensi.io/creators/naresh-prabu)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/claude-code-usage-report
- Tags: llm-ops, node-js, cli-tool, cost-analysis, privacy, claude-code, token-usage, cost-tracking

## About this skill

Claude Code usage report shows what your Claude Code sessions cost. Type `/claude-code-usage-report` and it prints a table of tokens and dollars for the last 7 days, or grouped by project, model, week or session, with a quick view of today and this week and a JSON option. It is free. Dollars are API list prices; on a subscription plan nothing is billed per token, so read them as how fast your limits fill.

Everything stays on your machine. The skill runs a small bundled Node script (Node 18 or newer, no dependencies, MIT license) that reads the transcripts under your Claude config folder (`CLAUDE_CONFIG_DIR`, default `~/.claude`) and adds up their usage records. It sends nothing anywhere and has no network code. To keep repeat runs fast it saves an index of token counts, session titles and project folders in a `cost-guard` folder inside your Claude config folder. The index holds no prompts, answers or tool output.

The script is the `bin`, `src`, `LICENSE` and `package.json` of claude-cost-guard, unchanged from its release tag v1.0.1. For daily and weekly budgets with warnings inside Claude Code, see the full open-source tool: https://github.com/nrzz/claude-cost-guard

## Requires

- Node.js 18 or newer

## Known limitations

Needs Node.js 18 or newer. Reads only the transcripts on this machine, under the Claude config folder: sessions on other machines or in the Claude apps are not in them. Dollars are API list prices, not what a subscription bills. Budgets and warnings are in the full tool (claude-cost-guard), not in this skill.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Claude Code usage report skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Why do I need a specific skill to track my Claude Code usage instead of just asking Claude?

Claude Code keeps each session as a transcript file under its config folder, and the usage numbers sit inside those files. The skill runs a small script that reads every transcript and adds the numbers up; asking the model cannot do that, because the model does not see the files or the prices.

### Is my session data sent to an external server for analysis?

No. Everything runs on your machine. The script reads the transcripts under your Claude config folder, prints the report, and keeps an index of token counts in a cost-guard folder there. It has no network code and sends nothing anywhere.

### Which AI agents or environments are compatible with this usage report skill?

It is written for Claude Code: the skill pre-approves its two commands, so /claude-code-usage-report runs with no permission prompt. The script itself is plain Node.js, so any other agent, or you in a terminal, can run it by hand: node cost-guard/bin/claude-cost-guard.mjs report --days 7

### How does the skill stay updated with the latest Anthropic API pricing?

The prices are a table inside the script, the API list prices at release 1.0.1 of claude-cost-guard. Nothing is fetched. A new release of the skill updates the table. On a subscription plan nothing is billed per token, so read the dollars as how fast your limits fill.

### Can I filter the reports to see costs for a specific coding project only?

report --by project groups the week by project folder, and report --by model, --by week and --by session group it the other ways; today shows the split by project for today. The script reads all sessions in the config folder.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
