cost-tracking

Compute per-request costs for Claude API usage using token-based formulas.

3|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/hungrytech/hungrytech-claude-skills --skill cost-tracking-hungrytech
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cost-tracking
Source: https://github.com/hungrytech/hungrytech-claude-skills/tree/main/plugins/plugin-introspector/skills/cost-tracking
Command: npx skills add https://github.com/hungrytech/hungrytech-claude-skills --skill cost-tracking-hungrytech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cost tracking for Claude API usage is often opaque; this Skill provides model pricing data, per-request cost calculations, and budgeting utilities to help teams estimate and control expenses.

Core Features & Use Cases

  • Model pricing data per 1M tokens (input/output) for Claude models
  • Per-request and session cost calculations using token counts
  • Budget thresholds, cost monitoring, and ROI-oriented optimization guidance

Quick Start

Use this skill to estimate the cost of a Claude API session by applying the per-request cost formula to your token counts.

Frequently Asked Questions about cost-tracking

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

FAQPage Schema
How do I calculate Claude API costs per request based on token counts?▼

To calculate Claude API costs per request, apply model-based pricing data to your input and output token counts. This approach provides precise per-request and session cost calculations for accurate budget tracking.

What is the best way to track Claude API token usage against a budget?▼

The best way to track Claude API token usage against a budget is to monitor per-request costs against predefined budget thresholds. This allows for cost monitoring and ROI-oriented optimization guidance across your API calls.

Does prompt caching affect Claude API cost calculation?▼

Yes, prompt caching affects Claude API cost calculation. Cost tracking applies caching considerations for cost efficiency, allowing you to estimate expenses accurately across API calls, caching, and session estimates.

How do I estimate the total cost of a Claude API session?▼

To estimate the total cost of a Claude API session, apply the per-request cost formula to your aggregated token counts. This utilizes model pricing data per 1M tokens for both input and output.

Can I monitor Claude API expenses across different models?▼

Yes, you can monitor Claude API expenses across different models by applying model-specific pricing data per 1M tokens. This ensures precise budgeting and cost tracking regardless of the Claude model used.

What are the limitations of manual Claude API cost tracking?▼

Manual Claude API cost tracking is often opaque and lacks built-in budgeting utilities. Without precise pricing data and token-based cost formulas, teams struggle to control expenses and optimize caching for cost efficiency.