run-costs

run-costs is a command for Claude Code from giggsoinc/raven. It costs 32 tokens per session (77 once invoked), scanned A, original, MIT.

A local calculator for estimating the cost of an assistant session, with an optional lookup of billed spending from Claude, OpenAI, or xAI.

In plain words
What is it for?
Use it to check the cost of a coding-assistant session or retrieve available billed spending in US dollars.
Why use it?
It helps you see session costs and, when the cloud lookup is used, compare them with actual billed amounts. It does not make up billed figures when that lookup is skipped.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/session/run_costs.py.

Part of the raven plugin — 63 skills, 13 commands, 10 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it to check the cost of a coding-assistant session or retrieve…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/giggsoinc/raven
agentmods
npx agentmods add commands/giggsoinc/raven/run-costs

Made for: Claude Code.

Or install raven, the plugin that ships this one along with the rest of its 63 skills, 13 commands, 10 agents, 5 hooks, 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 run-costs

README.md
[![agentmods](https://agentmods.dev/badge/commands/giggsoinc/raven/run-costs.svg)](https://agentmods.dev/commands/giggsoinc/raven/run-costs)
Your own site
<a href="https://agentmods.dev/commands/giggsoinc/raven/run-costs"><img src="https://agentmods.dev/badge/commands/giggsoinc/raven/run-costs.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 77 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.00032 $0.00077
Opus 5 $0.00016 $0.00039
Sonnet 5 $0.00006 $0.00015
Haiku 4.5 $0.00003 $0.00008

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

Security

Grade A, and why

run-costs 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 6d 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.

core/commands/run-costs.md · 15 lines

What it actually says

/run-costs

Run:

python3 scripts/session/run_costs.py

Show the printed disclaimer and numbers. Do not invent billed USD if cloud was skipped.

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. 6d ago First seen · 15 lines · 32 tokens per session scan A b077be064e0a

Subscribe to this mod's changes

run-costs is a command published in the GitHub repository giggsoinc/raven (5 stars, last pushed 6d ago), licensed MIT. It adds 32 tokens to every session and 77 once invoked, about $0.0002 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-31.