Skip to content
Automation
Command

/spend

Show Claude Code spend summary — total cost, per-session breakdown, and burn rate

From plugin
claudectl
1997 skills1 agent7 commands1 MCP
Install
$ npx -y skills add mercurialsolo/claudectl --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/spend

Context preview

What this command does when you run it.

Show Claude Code spend summary — total cost, per-session breakdown, and burn rate

Command definition

spend.md
name: spend
description: Show Claude Code spend summary — total cost, per-session breakdown, and burn rate
args: "[time-window]"

Show the user's Claude Code spending. The optional argument is a time window (e.g., "8h", "24h", "7d"). Default is "24h".

Run these commands to gather spend data:

1. `claudectl --stats --since {{time_window}}` for aggregated statistics (total cost, token counts, per-project and per-model breakdown) 2. `claudectl --list` for current active session costs and burn rates

Present the results showing:

  • Total spend in the time window
  • Active session costs and burn rates
  • Per-project breakdown if available
  • Today's spend vs weekly average if the window is large enough
Ships withclaudectl

Swarm orchestration for claude code agents with a local brain that steers based on your preferences

Get the whole plugin
Stats
199
Stars
22
Forks
Maintained
Maintenance
Rust
Language
MIT
License
2mo ago
Last commit
5mo ago
Created

Repo: mercurialsolo/claudectl

Other commands on claudectl.