From claude-spend
Use when the user wants to see actual Anthropic-billed cost — invoked as /claude-spend [days] or natural language like "show my Claude spend", "how much have I spent on Anthropic this month", "anthropic billing this week", "what's my Claude bill". Distinct from /claude-usage (client-side ccusage estimate).
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-spend:claude-spend [days][days]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The user invoked `/claude-spend` (or asked a natural-language question about Anthropic spend). Argument: `$ARGUMENTS` (empty → default 30 days).
The user invoked /claude-spend (or asked a natural-language question about Anthropic spend). Argument: $ARGUMENTS (empty → default 30 days).
This is the authoritative billed cost — what Anthropic actually charges — distinct from /claude-usage, which is the client-side ccusage estimate (good for breakdowns by project/session, but not the source of truth for spend).
!`python "${CLAUDE_PLUGIN_ROOT}/scripts/anthropic-spend.py" $ARGUMENTS`
The script reads its Admin API key from ~/.claude/.anthropic-admin-key (single line, no quotes). If the key file is missing or empty, the script exits with setup instructions — relay them and stop.
If python is not on PATH (common on Windows when only the py launcher is installed), retry with py in place of python.
The script's output is already a compact report: total, per-day with bar chart, per-model breakdown, link to the Console for the full GUI. Forward it verbatim — no rewriting.
Then add one short framing line at the top (or repeat it as a footer) the first time it runs in a conversation:
Source: Anthropic Admin API cost_report. This is billed cost, not the ccusage estimate.
Skip the framing line on subsequent runs in the same conversation.
401 / 403 — key invalid or not an Admin Key. The script's stderr already names the fix; relay it.429 — rate-limited. Suggest waiting a minute, don't retry automatically.days out of range — the script errors clearly; relay./claude-usage project / session — those are estimates but they can attribute spend to specific work.Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub aasadi1978/claude-spend --plugin claude-spend