peiris

Token Cost — Development skill for Claude Code

Development community

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

Terminal
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 Repository