cost-tracker

Track token usage and enforce per-task budgets across agent sessions.

1|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Cheggin/request-for-startups --skill cost-tracker-cheggin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cost-tracker
Source: https://github.com/Cheggin/request-for-startups/tree/main/skills/cost-tracker
Command: npx skills add https://github.com/Cheggin/request-for-startups --skill cost-tracker-cheggin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the monitoring of token usage and costs per agent session, ensuring budgets are observed and costs are allocated accurately.

Core Features & Use Cases

  • Track input and output token counts for every LLM invocation and tool call, enabling precise cost calculations.
  • Aggregate costs by agent session, task, and time period (daily, weekly) for reporting and forecasting.
  • Enforce per-task budget ceilings by warning at 80% and hard-stopping at 100%, with Slack escalation.
  • Route tasks to the appropriate model tier (Haiku, Sonnet, Opus) based on complexity to optimize spend.
  • Generate per-agent and aggregate cost summaries for investor updates and budgeting reviews.
  • Store historical cost data for trend analysis and budget forecasting.

Quick Start

Start the cost-tracker harness and begin recording token usage and costs for all active agent sessions.

Frequently Asked Questions about cost-tracker

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

FAQPage Schema
How do I track token usage and costs across multiple AI agent sessions?

You can track token usage and costs across multiple AI agent sessions by recording input and output token counts for every LLM invocation. The cost-tracker automates this monitoring process per agent session, aggregating spend by task and time period for accurate cost allocation.

Can I automatically route tasks to different model tiers like Haiku, Sonnet, or Opus to optimize spend?

Yes, you can automatically route tasks to different model tiers like Haiku, Sonnet, or Opus to optimize spend. The dynamic routing evaluates task complexity and assigns the appropriate model tier, ensuring you do not overspend on high-cost models for simple operations.

What is the best way to generate cost summaries for investor updates from LLM spending?

The best way to generate cost summaries for investor updates is to aggregate historical cost data by agent session and time period. This process produces per-agent and aggregate cost reports, enabling accurate budgeting reviews and spend forecasting for stakeholders.

How do I enforce daily and weekly budget limits for multi-agent startup harness workflows?

To enforce daily and weekly budget limits for multi-agent startup harness workflows, you apply per-task budget ceilings with automated 80% warnings and 100% hard stops. This spend oversight prevents budget overruns across daily and weekly periods.

Does cost tracking for AI agents support historical spend trend analysis and budget forecasting?

Cost tracking for AI agents supports historical spend trend analysis and budget forecasting by storing historical cost data. This stored token usage and spend data enables you to analyze cost trends over time and accurately forecast future budget requirements.