token-audit

Monitor Claude Code session token usage and calculate API costs.

1|1|Updated May 9, 2026
One-click install
npx skills add https://github.com/butterflyskies/claude-marketplace --skill token-audit-butterflyskies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-audit
Source: https://github.com/butterflyskies/claude-marketplace/tree/main/plugins/bsky/skills/token-audit
Command: npx skills add https://github.com/butterflyskies/claude-marketplace --skill token-audit-butterflyskies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides insights into token usage, costs, and budget projections, helping users manage their resources effectively.

Core Features & Use Cases

  • Session Stats: Display current session statistics including context usage and input tokens.
  • API-Equivalent Cost: Calculate the cost of the session at API rates.
  • Burn Rate vs Budget: Track the burn rate against the budget and project when rate limits will be hit.
  • Use Case: Ideal for budget-aware operations and understanding the value gap between subscription and API pricing.

Quick Start

Run the token-audit script with the 'full' argument to get a comprehensive report.

Frequently Asked Questions about token-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track Claude Code session token usage and API costs?

You can monitor Claude Code token usage by running a session statistics script that reports context usage, input tokens, and API-equivalent costs. It requires a statusline hook to collect session data for accurate calculations.

How do I calculate the API equivalent cost of my Claude Code session?

Calculate the API equivalent cost of a Claude Code session by applying Anthropic API rates to your input token counts. This reveals the value gap between your subscription pricing and standard API costs.

Can I predict when my rate limits will be hit based on current token burn rate?

Yes, you can predict rate limit breaches by tracking your token burn rate against a defined budget. The script projects when limits will be hit based on current session consumption patterns.

Do I need a statusline hook to monitor context usage in Claude Code?

Yes, a statusline hook is required to monitor context usage in Claude Code. The hook collects session data necessary for the script to calculate statistics and project rate limit breaches.

What is the best way to project budget limits for Anthropic API token consumption?

The best way to project budget limits for Anthropic API token consumption is to track session burn rate against your budget. This approach calculates API costs and predicts when rate limits will be reached.

Why does my Claude Code session show different costs compared to standard API pricing?

Claude Code session costs differ from standard API pricing because the tool calculates API-equivalent costs using Anthropic rates applied to input tokens, highlighting the value gap between subscription and API models.