# Cost Analytics

> Tracks token usage and API costs across all providers

- Skill: `modimihir07/cost-analytics` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add modimihir07/cost-analytics`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modimihir07/cost-analytics/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: modimihir07 (https://skillmd.com/u/modimihir07)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/modimihir07/cost-analytics

---


# Cost Analytics

## Description
Tracks token consumption and API costs across opencode, Hermes, and Gemini CLI. Computes daily/weekly/monthly projections and alerts when approaching free-tier limits.

## When to Use
- After each agent API call (auto-triggered)
- Daily cost report generation
- When checking budget status

## Process
1. Read latest cost-history.json
2. Compute today's total tokens by agent
3. Compute weekly and monthly projections
4. Compare against free-tier limits from settings.json
5. Generate alert if approaching limits (80%, 90%, 95%)
6. Update cost-analytics chart data

## Output
Cost report with: per-agent breakdown, projections, alerts, recommendations

## Agent Assignment
- Primary: opencode

