token-cost-tracking
Installation
SKILL.md
Token and Cost Tracking
Track token usage and costs across agents for budget management and optimization.
Core Principle
Every organization needs to answer:
- How much are we spending on LLMs?
- Where is the spend going (features, agents, users)?
- Are we within budget?
- What's trending (up or down)?
Essential Attributes
# Per-call token tracking
span.set_attribute("llm.tokens.input", 1500)
span.set_attribute("llm.tokens.output", 350)
span.set_attribute("llm.tokens.total", 1850)