gpu-spend

gpu-spend is a skill for Claude Code from Rockielab/rockie-claude. It costs 153 tokens per session (871 once invoked), scanned A, original, Apache-2.0.

A spending and runtime check for Rockie GPU work, showing current cost rates, running pods, storage, and project totals through Rockie’s billing view. A GPU pod is a rented or allocated machine used for computation.

In plain words
What is it for?
Use it to check burn rate, weekly or total spend, active or idle resources, and costs after stopping a pod.
Why use it?
It answers whether compute is still running, how quickly costs are accumulating, and whether spending is approaching a budget before more resources are started.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event.

Part of the rockie-claude plugin — 29 skills, 1 MCP server shipped together

Good fit Use it to check burn rate, weekly or total spend, active or idle resources, and costs after stopping a pod.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockielab/rockie-claude/gpu-spend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Rockielab/rockie-claude --skill gpu-spend
Clone the repo
git clone --depth 1 https://github.com/Rockielab/rockie-claude

Made for: Claude Code.

Or install rockie-claude, the plugin that ships this one along with the rest of its 29 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gpu-spend

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockielab/rockie-claude/gpu-spend/github.svg)](https://agentmods.dev/skills/rockielab/rockie-claude/gpu-spend)
Your own site
<a href="https://agentmods.dev/skills/rockielab/rockie-claude/gpu-spend"><img src="https://agentmods.dev/badge/skills/rockielab/rockie-claude/gpu-spend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gpu-spend

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockielab/rockie-claude/gpu-spend"><img src="https://agentmods.dev/badge/skills/rockielab/rockie-claude/gpu-spend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.00871
Opus 5 $0.00077 $0.00436
Sonnet 5 $0.00031 $0.00174
Haiku 4.5 $0.00015 $0.00087

Measured 10d ago against content hash cc9f3e52e9ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

gpu-spend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • gpu-spend — 100% identical, 0 lines differ
project-harness/skills/gpu-spend/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/gpu-spend — Rockie-GPU spend snapshot

The single source of truth for "what is the agent costing me right now?" rockie-gpu spent reconciles live state, sums project spend, and prints both the LLM-readable JSON and a human view — all under Rockie's own deidentified billing surface, with no supplier names and no supplier billing URLs leaking through.

When to invoke

  • User asks anything about cost, spend, rate, burn, budget, or pods running.
  • Before any decision to spin up a new GPU (read state before adding load).
  • After terminating a pod, to confirm the bleed has stopped.
  • Periodically during long autonomous runs (the budget-reconcile.sh hook fires this on every UserPromptSubmit, but the agent should also check on entering the Codify phase).

Do NOT invoke if the user asked a non-cost question and you'd just be showing off. The hook keeps the budget honest in the background.

What the skill does

Runs:

rockie-gpu spent --json

Output shape (LLM-ergonomic, deidentified — Rockie-priced, no supplier names):

{
  "project": "...",
  "compute_per_hr": 0.0,
  "storage_per_hr": 0.011,
  "running_pods": 0,
  "idle_volume_gb": 80,
  "grand_total_per_hr": 0.011,
  "grand_cumulative_usd": 2.20
}

Read the JSON. Synthesize a 2–3 line summary for the user that:

  • Names the top spend driver (compute or storage).
  • Calls out idle storage if running_pods=0 but idle_volume_gb > 0 (user is paying for nothing — recommend tearing the pod down).
  • Compares grand_cumulative_usd to budget ceiling if known (rockie-gpu spent --json reports the ceiling when one is configured).

Composition

  • rockie-gpu spent reconciles implicitly, so numbers are always fresh (within seconds of the call). No separate reconcile step.
  • rockie-gpu audit-open-spend --demo-safe is the line-item audit when the user wants the full breakdown of where the dollars went — it is the only drill-down surface. There is no per-supplier CLI to reach for; rockie-gpu sees every dollar.

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 83 lines · 0 tokens per session scan A cc9f3e52e9ec

Subscribe to this mod's changes

gpu-spend is a skill published in the GitHub repository Rockielab/rockie-claude (21 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 153 tokens to every session and 871 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.