api-cost-tracker

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

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/k5rs4n/api-cost-tracker --skill api-cost-tracker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-cost-tracker
Source: https://github.com/k5rs4n/api-cost-tracker/tree/main
Command: npx skills add https://github.com/k5rs4n/api-cost-tracker --skill api-cost-tracker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Track and manage AI API costs across multiple providers to prevent budget overruns and optimize spending.

Core Features & Use Cases

  • Real-time cost tracking across OpenAI, Anthropic, and Google AI
  • Budget alerts and usage analytics to optimize spending
  • Exportable reports (JSON, CSV, Markdown) for team sharing and governance
  • Use Case: A product manager can monitor daily spend and trigger alerts when thresholds are exceeded.

Quick Start

Run node scripts/main.mjs track to begin real-time cost tracking across all providers.

Frequently Asked Questions about api-cost-tracker

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

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

You can track API costs across multiple providers by running a script-driven workflow that applies deterministic cost calculation, budget monitoring, and usage analytics for OpenAI, Anthropic, and Google AI.

Can I set up budget alerts to prevent AI API spending overruns?

Yes, you can configure budget alerts to prevent AI API spending overruns by setting spending thresholds that trigger automated alert generation when your daily usage exceeds defined budget limits.

How do I export API cost reports for team governance and sharing?

You can export API cost reports for team governance by generating shareable usage analytics and cost tracking data in JSON, CSV, and Markdown formats directly from the script workflow.

Does this API cost tracker work without external dependencies?

Yes, this API cost tracker works without external dependencies, using a configurable script-driven workflow to enforce deterministic cost calculation and budget monitoring across all supported providers.

What is the best way to monitor daily spend on Google AI APIs?

The best way to monitor daily spend on Google AI APIs is to run a real-time cost tracking script that calculates deterministic usage analytics and reports current spending across your configured providers.

Are there limitations to the script-driven approach for API cost optimization?

The script-driven approach for API cost optimization is limited to deterministic cost calculation and alert generation, meaning it functions within a configured workflow rather than offering automated spending reduction actions.