cost-tracking

Tracks and reports AI token usage and spending from a SQLite database.

12|4|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TeiNam/kiro-with-harness --skill cost-tracking-teinam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cost-tracking
Source: https://github.com/TeiNam/kiro-with-harness/tree/main/skills/cost-tracking
Command: npx skills add https://github.com/TeiNam/kiro-with-harness --skill cost-tracking-teinam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of tracking and reporting AI model token usage, spending, and budgets, enabling users to manage their resources effectively.

Core Features & Use Cases

  • Token Usage Analysis: Analyze AI model cost and usage history from a local SQLite database.
  • Budget Management: Monitor spending limits and overruns, and enforce cost controls.
  • Cost Breakdown: View usage by project, tool, session, model, or date for detailed insights.
  • Data Export: Generate CSV exports of recent usage records for further analysis.
  • Use Case: For a team managing multiple AI models, this Skill helps to understand spending patterns and optimize resource allocation.

Quick Start

Analyze the cost of your AI model usage with the 'cost-tracking' skill by running the command: analyze-cost --start-date "2023-01-01" --end-date "2023-01-31" --report-type csv

Frequently Asked Questions about cost-tracking

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

FAQPage Schema
How do I track AI model token usage and spending from a local SQLite database?

You can track AI model token usage and spending by querying your local SQLite database with the analyze-cost command, which generates reports on usage patterns, budget limits, and cost breakdowns by project, model, or date.

Can I export AI cost tracking data to a CSV file for further analysis?

Yes, you can export AI cost tracking data to a CSV file by running the analyze-cost command with the report-type parameter set to csv, which generates an export of recent usage records for further analysis.

Does this cost tracking tool require a specific database format for AI usage data?

The cost tracking tool requires a local SQLite database pre-populated with AI usage data. It has no external dependencies, but you must ensure your SQLite database contains the necessary token usage and spending records before analysis.

How do I monitor AI budget overruns and enforce spending limits across multiple projects?

You monitor AI budget overruns and enforce spending limits by analyzing cost breakdowns by project, tool, session, or model from your SQLite database, allowing you to identify spending patterns and optimize resource allocation across teams.

What is the best way to analyze AI model cost breakdown by session or date without external dependencies?

The best way to analyze AI model cost breakdown by session or date without external dependencies is using a local SQLite database with a script-based cost tracking tool, which provides detailed insights into spending patterns and usage history.

What happens if my SQLite database does not have the expected AI token usage tables?

If your SQLite database lacks the expected AI token usage tables, the cost tracking analysis cannot generate accurate spending or budget reports because the skill relies entirely on querying existing usage data within your local database.