cost-tracker

Track LLM API costs across Anthropic, OpenAI, and Google providers.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/winsorllc/upgraded-carnival --skill cost-tracker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cost-tracker
Source: https://github.com/winsorllc/upgraded-carnival/tree/main/.pi/skills/cost-tracker
Command: npx skills add https://github.com/winsorllc/upgraded-carnival --skill cost-tracker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps users track and manage their spending on Large Language Model (LLM) API calls across various providers, preventing budget overruns and providing cost transparency.

Core Features & Use Cases

  • Real-time Cost Monitoring: Track API expenses as they occur.
  • Multi-Provider Support: Integrates with major LLM providers like Anthropic, OpenAI, and Google.
  • Budget Alerts: Notifies users when spending approaches predefined limits.
  • Cost Attribution: Assigns costs to specific jobs, tasks, or projects for better financial management.
  • Use Case: A development team can use this skill to monitor the daily, weekly, and monthly API costs of their AI-powered application, ensuring they stay within their allocated budget and identifying which features or jobs are the most expensive.

Quick Start

Use the cost-tracker skill to track an API usage event with provider 'openai', model 'gpt-4o', 1000 input tokens, and 500 output tokens.

Frequently Asked Questions about cost-tracker

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

FAQPage Schema
How do I track LLM API costs across multiple providers like OpenAI and Anthropic?

To track LLM API costs across multiple providers, you can monitor API expenses in real-time, capturing token usage and setting configurable pricing for OpenAI, Anthropic, and Google to maintain cost transparency across your projects.

Can I set budget alerts to prevent LLM API spending overruns?

Yes, you can set budget alerts to prevent LLM API spending overruns. The system notifies you when spending approaches predefined limits, ensuring your development team stays within your allocated financial budget.

How do I assign API costs to specific jobs or tasks for better cost attribution?

You can assign API costs to specific jobs or tasks for better cost attribution by logging usage events with their corresponding job identifiers. This allows you to identify which application features are the most expensive.

What's the best way to monitor real-time token usage for Google AI models?

The best way to monitor real-time token usage for Google AI models is to use a tracking system that logs input and output tokens per API call. This provides immediate visibility into your current Google AI spending.

Does this cost tracking approach work without external dependencies?

Yes, this cost tracking approach works without external dependencies. It operates as a standalone script component, allowing you to integrate token usage monitoring directly into your existing software engineering workflows.

How do I log an OpenAI API usage event with specific input and output tokens?

To log an OpenAI API usage event, you track the usage by specifying the provider as OpenAI, the model as gpt-4o, and entering the exact input and output token counts for that specific API call.