Skill Cost
Description
Multi-harness token-usage cost reporter for AI agent sessions (pi, Claude Code, Codex, opencode). Reads JSONL logs, prices from LiteLLM catalog, auto-refresh built-in. One file, zero deps.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
cost
**Token-usage & USD cost report for AI agent sessions — pi, Claude Code, Codex, opencode, Hermes Agent**
[](./LICENSE) [](https://gaiaskilltree.com) [](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json) [](https://www.python.org) [](#requirements) [](./.github/workflows/refresh-prices.yml)
**Prices sourced from [BerriAI/litellm](https://github.com/BerriAI/litellm) (MIT).** **[Powered by Gaia](https://gaiaskilltree.com) — an open registry of AI agent skills.**
**How much did that agent session actually cost?**
Your harness persists token counts in JSONL logs or a local session database. It often does *not* record dollars — pi records `cost: 0`, self-hosted proxies rarely price anything, and the "cost" number many CLIs surface is stale by a version. `cost` reads the persisted token counts and prices them against [LiteLLM's canonical catalog](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json), producing a reproducible public-rate estimate. Subscription-included or negotiated billing may differ from this estimate.
No pip. No npm. No config. **One Python file, one JSON price sheet, prices auto-refresh every 7 days.**
Why this exists
I kept asking my agent, at the end of long orchestration sessions, "how much did that cost?" It would say things like `~$2` with high confidence. I believed it for a while.
Then I checked the raw token counts. One session it had estimated at $2 was closer to $8 — 4× off
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI