token-cost-tracking

Official

Track token usage and costs across agents.

Authornexus-labs-automation
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Track token usage and costs across agents to enable budgeting and cost optimization.

Core Features & Use Cases

  • Per-call token tracking: capture input, output, and total tokens for each LLM call.
  • Per-call cost: attribute USD cost per call based on model pricing and token usage.
  • Attribution: tag costs with feature, agent, and hashed user/org identifiers for accurate attribution.
  • Budget alerting: define thresholds and trigger alerts when spending exceeds limits.
  • Aggregation levels: collect per-call, per-agent run, per-session, and per-user totals for comprehensive visibility.

Quick Start

Start tracking token usage and costs for a given agent run.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: token-cost-tracking
Download link: https://github.com/nexus-labs-automation/agent-observability/archive/main.zip#token-cost-tracking

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.