Token Cost banner
peiris peiris

Token Cost

Development community

Description

--- 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 —

Installation

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.

Full documentation available on GitHub

View Source Repository