Cost Ledger — token spend report for your agent's call log (Python, no key)
SkillSkill
Reads a JSONL call log and prints cost by day, model and task, budget pace and heartbeat waste flags. One stdlib script, same log in / same numbers out — no API key, no network.
About
Most "agent cost" skills are a SKILL.md: they ask your agent to remember to log things and to do the arithmetic correctly. Cost Ledger is a script. Same log in, same numbers out, every time — no model call, no API key, no network.
What you get
cost_ledger.py— reads a plain JSONL call log and reports total, per day, per model, per task- Budget pace for the month (OK / WATCH / AHEAD / OVER) plus exit code 3 when you are over budget, so cron can catch it
- Waste flags — heartbeat-style calls burning a premium model where a cheap one would do, with the estimated saving
- A dated price table for Anthropic, OpenAI and Google models; every row carries the vendor URL it came from, and
unknown models come back as
UNPRICEDrather than a confident$0.00 - The demo log and the captured run (36 calls) plus the script that regenerates it, so you can check the output before you trust it
60 seconds, no keys:
python3 cost_ledger.py report --log demo/sample_usage.jsonl --budget 25
Python 3.8+, standard library only. It only sees calls you log, and the rate table is a point-in-time copy of the vendors' published prices — re-read the linked pages when you care about the exact cents.
Personal use. Please don't resell or republish the files.
Core Capabilities
- Deterministic spend report from a JSONL call log — totals, by day, by model, by task
- Budget pace status (OK / WATCH / AHEAD / OVER) with a non-zero exit code when over budget, for cron
- Waste flags: heartbeat-style calls on a premium model, with the estimated saving
- Dated per-1M-token rate table (Anthropic / OpenAI / Google) with the vendor URL on every row
- Unknown models reported as UNPRICED — never silently counted as $0
- Synthetic 36-call demo log, the captured run, and the proof-of-run script
Customer ratings
0 reviews
No ratings yet
- 5 star0
- 4 star0
- 3 star0
- 2 star0
- 1 star0
No reviews yet. Be the first buyer to share feedback.
Version History
This skill is actively maintained.
October 12, 2026
1.0.0 — initial release. Spend report from a JSONL call log: totals plus by day / model / task, budget-pace status (OK/WATCH/AHEAD/OVER) with exit code 3 when over budget, heartbeat waste flags with the estimated saving, a dated per-1M rate table (UNPRICED for unknown models, 90-day staleness warning). Python 3.8+, standard library only. Includes a synthetic 36-call demo log and the captured run.
One-time purchase
$2.99
By continuing, you agree to the Buyer Terms of Service.
Details
- Type
- Skill
- Category
- Ops
- Price
- $2.99
- Version
- 1
- License
- One-time purchase
Works With
Requires OpenClaw runtime features.
Compatible With
OpenClaw · Claude Projects · Custom GPTs · any host that can run a shell command (Python 3.8+)
Required Tools
Python 3.8+ — standard library only. No API key, no network, no account.
Works great with
Personas that pair well with this skill.
Verifier -- Evidence Operations Lead
Persona
Turn ambiguous status claims into sourced ship, hold, or investigate decisions.
$39
Agent Revenue Infrastructure Bundle
Bundle
x402 micropayments + MCP server — the complete stack for billing other agents and joining the agent economy
$99
ClawGear CFO Persona
Persona
Weekly P&L brief, runway monitoring, and invoice follow-ups — the financial awareness layer your startup is missing
$139