Token Cost — Development skill for Claude Code
Show token usage and estimated cost for this project.
How to install Token Cost
Installs to ~/.claude/skills/peiris-token-cost-token-cost/SKILL.md
mkdir -p ~/.claude/skills/peiris-token-cost-token-cost && curl -fsSL https://raw.githubusercontent.com/peiris/token-cost/HEAD/commands/token-cost.md -o ~/.claude/skills/peiris-token-cost-token-cost/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Token Cost does
description: Show token usage and estimated cost for this project argument-hint: "[tasks|sessions|days|ui|html] [today|week|month]" allowed-tools: Bash(python3:*) model: haiku effort: low
!`R="${CLAUDE_PLUGIN_ROOT}/scripts/report.py"; if [ -f "$R" ]; then python3 "$R" --cwd "$PWD" --budget 28000 $ARGUMENTS; else echo "token-cost: cannot locate report.py (CLAUDE_PLUGIN_ROOT=${CLAUDE_PLUGIN_ROOT:-unset}). Is the plugin installed?"; fi`
The command's output is above. It is always there —
Alternatives in Development
- Benjamin Plus Skill — Benjamin-Plus: a measured token-efficiency skill for coding agents (−17.9% cost median, quality unchanged) 272 ★
- Claude Dashboard — Comprehensive status line plugin for Claude Code with context usage, API rate limits, and cost tracking 258 ★
- Cc Bar — Native macOS menu bar app: track quota, usage and cost for Codex (multi-account) and Claude Code, from your me 119 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
TokenWatch
Native macOS app for tracking coding-agent token usage and estimated cost
Context Mem Status
Show session status — estimated token usage, session duration, observation count, and session chain
Optimus Stats
Show Optimus token usage, subagent dispatch counts, and estimated savings for this project
Cache Tax
Keep Claude Code’s prompt cache warm during breaks and show the estimated cost before a cold send.
Claude Usage
Local dashboard for visualizing Claude Code token usage and estimated API costs
VSCode Claude Status
Claude Code token usage & cost in VSCode status bar
Related Agents
Stats Analyzer
Analyzes ~/.claude/stats-cache.json and history.jsonl to produce a concise usage report with model token break
Usage Reporter
Reads real Claude Code usage from ~/.claude/stats-cache.json. Reports daily/weekly token usage by model, cache
API Cost Scanner
Scans codebase for AI/API cost optimization opportunities including model usage, token estimates, caching stra