# Cost

> Track and report token usage and estimated cost per session, agent, and phase

- Skill: `lucassantana-dev/cost` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add lucassantana-dev/cost`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lucassantana-dev/cost/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: LucasSantana-Dev (https://skillmd.com/u/lucassantana-dev)
- Updated: 2026-08-19
- Page: https://skillmd.com/skills/lucassantana-dev/cost

---


# Cost

Track token usage and cost across the session.

## When to Report

- After completing a major phase
- When switching agents or tiers
- At session end
- When asked explicitly

## Output

```text
Cost Report
───────────
Phase:   <current phase name>
Agent:   <agent name> (<tier>)
Tokens:  <input> in / <output> out
Est:     $<amount>
Session: $<running total>
Budget:  $<remaining or unlimited>
```

## Rules

- Report in-line, not as a separate step — cost is metadata, not a task
- Never stop work to report cost unless budget is exceeded
- On budget exceeded: warn, continue, and note the overage
- Track per-agent to identify which agents consume the most
- Use the cheapest tier that works — cost awareness drives routing

