Skip to content
Back to skills

Oee Ai Cost Tracker

ASecurity

Track every AI API call, generate spend reports, and get routing

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
ai-agentspythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill oee-ai-cost-tracker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Oee Ai Cost Tracker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Oee Ai Cost Tracker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-oee-ai-cost-tracker/badge)](https://www.skillsdirectory.com/skills/modbender-oee-ai-cost-tracker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 🐾 AI Cost Tracker — Know What You Spend
description: Track every AI API call, generate spend reports, and get routing
  suggestions to cut costs.
---

# 🐾 AI Cost Tracker — Know What You Spend

> by Odin's Eye Enterprises — Ancient Wisdom. Modern Intelligence.

Track every AI API call, generate spend reports, and get routing suggestions to cut costs.

## What It Does

1. **Logs** every API call with model, tokens, cost to JSONL
2. **Reports** spending by model, time period, and use case
3. **Suggests** cheaper model routing based on task complexity

## Trigger Phrases

- "how much have I spent on AI"
- "AI cost report"
- "track this API call"
- "show AI spending"
- "cost breakdown"

## Usage

### Logging (in your code)
```python
from tracker import log_usage
log_usage(model="claude-3-haiku", input_tokens=500, output_tokens=200, task="humanize")
```

### Reports
```bash
# Full spend report
python report.py

# Last 7 days
python report.py --days 7

# By model
python report.py --by-model
```

## Files

- `tracker.py` — logging library, import into your tools
- `report.py` — CLI dashboard for spend analysis
- `pricing.json` — model pricing data (update as needed)

## Requirements

- Python 3.10+ (stdlib only)
- No API keys needed (this tracks YOUR usage)

## For Agents

To check spending: `python report.py`
To log usage from other tools: `from tracker import log_usage`

<!-- 🐾 Odin's ravens count every coin -->

Files in this skill

  • SKILL.md1.5 KB
  • pricing.json996 B
  • report.py6 KB
  • tracker.py2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.