Skill Cost — AI skill for Claude Code
Multi-harness token-usage cost reporter for AI agent sessions (pi, Claude Code, Codex, opencode).
How to install Skill Cost
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open gaia-research/skill-cost and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Skill Cost does
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.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Surface — Show ranked attack surface for a target from its recon manifest + hunt memory 3.8k ★
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
Model Specs
Community catalog of LLM model specs — pricing, context windows, capabilities, and AI-CLI compatibility. Auto-
Xiaoyaoclaw Usage Report
OpenClaw usage & performance reporting - parse session JSONL for task duration, tool/skill/model usage, token
Token Cost Tracker
Estimate, log, and report token usage using runtime-supplied billing rates; never rely on embedded model price
Tokentab
A CLI that reads Claude Code, Codex, and Gemini CLI session logs and works out how much they cost, by model, p
Usage Guard
Guard a running swarm against the claude.ai session usage limit. Reads the usage page in the owner''s Chrome o
TokenTracker
Local-first AI token usage & cost tracker for 31 coding tools incl. Claude Code, Codex, Cursor, Gemini & DeepS
Related Agents
Summarizer
Draft a session-handoff summary so a fresh agent can continue with zero conversation context. Locates the curr
Deps Currency
Build & dependency currency expert. Researches latest stable Gradle, Ktor, Compose, Kover, Kermit, logback, sl
Dependency Gatekeeper
Reviews any pom.xml change that adds, upgrades, or removes a dependency. Use proactively whenever a block is t