cost-tracker — Claude Code command: costs and installation
cost-tracker is a Claude Code command that estimates current-session spend, identifies its main cost drivers, and suggests optimizations. Compare the estimate with a task budget.
MIT ★ 2,966 updated 2026-09-29
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflowWhat cost-tracker does
Run /cost-tracker to view an estimate for the current session, its main cost drivers, and suggestions for reducing spend. It also gives budget guidance by task type. For instance, the listed bug-fix range is $0.10–0.50, with a budget alert at $1.00.
The benchmarks also cover small and large features and refactoring. Treat these as reference points, not fixed prices or spending limits. In Claude Code, install the command through the pro-workflow marketplace.
What it helps with
- estimate the cost of the current session
- identify the biggest cost drivers
- compare session spend with a task benchmark
- get suggestions for reducing costs
Example prompts for the agent
- Estimate this session’s cost and show its biggest cost drivers.
- Compare this session’s spend with the bug-fix benchmark.
- Suggest ways to reduce costs for the current task.
How to install cost-tracker
1Plugin marketplace
/plugin marketplace add rohitg00/pro-workflow/plugin install pro-workflow@pro-workflow2Manually: put the files in place
.claude/commands/cost-tracker.mdCall it with /cost-tracker. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/cost-tracker.mdCall it with /prompts:cost-tracker. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/cost-tracker.prompt.mdManually: put the files in place
.gemini/commands/cost-tracker.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about cost-tracker
How do I install cost-tracker in Claude Code?
Run /plugin marketplace add rohitg00/pro-workflow, then /plugin install pro-workflow@pro-workflow.
What does cost-tracker do?
It estimates the current session’s cost, highlights its main cost drivers, and offers optimization suggestions. It also provides budget guidance by task type.
What budget benchmarks does cost-tracker show?
For a bug fix, it lists a typical range of $0.10–0.50 and a budget alert of $1.00. The table also includes benchmarks for small and large features and refactoring.
Source text
cost-tracker.md · MIT
--- description: Track session costs, understand token spend, and get optimization tips --- # /cost-tracker - Cost Awareness Understand and optimize your session costs. ## Quick Start Run to see: - Current session cost estimate - Top cost drivers - Optimization suggestions - Budget guidance for your task type ## Cost Benchmarks | Task Type | Typical | Budget Alert | |-----------|---------|-------------| | Bug fix | $0.10-0.50 | $1.00 | | Small feature | $0.50-2.00 | $3.00 | | Large feature | $2.00-8.00 | $10.00 | | Refactor | $1.00-5.00 | $7.00 | ## Usage ``` /cost-tracker ```
© Rohit Ghumare · MIT · rohitg00/pro-workflow