cost

cost is a command for Claude Code from danielraffel/generous-corp-marketplace. It costs 7 tokens per session (1,418 once invoked), scanned A, original, MIT.

A command for viewing image-generation spending and usage statistics from a local configuration file. It can report costs by day or week and show recent generations.

In plain words
What is it for?
Use it to view today’s or this week’s costs, provider breakdowns, image counts, budget status, recent generations, and estimated remaining usage.
Why use it?
It helps track image-generation spending against a daily budget and see which providers or image jobs used it.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the design-partner plugin — 1 skill, 4 commands, 1 agent shipped together

Good fit Use it to view today’s or this week’s costs, provider breakdowns, image counts, budget status, recent generations, and estimated remaining usage.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/danielraffel/generous-corp-marketplace/cost
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.

Clone the repo
git clone --depth 1 https://github.com/danielraffel/generous-corp-marketplace

Made for: Claude Code.

Or install design-partner, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 agent.

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 cost

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/cost/github.svg)](https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/cost)
Your own site
<a href="https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/cost"><img src="https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/cost/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 cost

Your own site · 80×15
<a href="https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/cost"><img src="https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,418 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.00007 $0.01418
Opus 5 $0.00003 $0.00709
Sonnet 5 $0.00001 $0.00284
Haiku 4.5 $0.00001 $0.00142

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

Security

Grade A, and why

cost 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.

plugins/design-partner/commands/cost.md · 207 lines

How it starts

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

Design Partner Cost Command

For Claude: Display cost tracking and usage statistics for image generation.

Process

  1. Read .claude/dp.local.md to get:

    • image_generation.current_daily_spend
    • image_generation.daily_budget_usd
    • image_generation.providers stats
    • generated_images array
  2. Calculate statistics based on timeframe

  3. Display formatted report

Output Formats

Today's Costs (default)

Usage: /dp:cost or /dp:cost today

Image Generation Costs - Today

Provider Breakdown:
- OpenAI DALL-E 3: $0.12 (3 images)
  └─ Standard: $0.12 (3 images)
  └─ HD: $0.00 (0 images)

- Gemini Imagen: $0.00 (0 images)

Total: $0.12 / $5.00 daily budget (2%)

Recent generations:
1. img-003 - Gamified Timer mockup - $0.04 - 2:35 PM
2. img-002 - AI Buddy concept art - $0.04 - 2:25 PM
3. img-001 - Study app hero image - $0.04 - 2:20 PM

Budget status: Well within limit
Estimated remaining: ~122 images at current rate

Weekly View

Usage: /dp:cost week

Image Generation Costs - This Week

Daily breakdown:
Mon 1/13: $0.32 (8 images)
Tue 1/14: $0.28 (7 images)
Wed 1/15: $0.16 (4 images)
Thu 1/16: $0.12 (3 images) ← Today
Fri 1/17: $0.00
Sat 1/18: $0.00
Sun 1/19: $0.00

Week total: $0.88 (22 images)
Average per day: $0.22
Projected month: $6.60

Provider preference:
DALL-E 3: 95% (21 images)
Gemini: 5% (1 image)

Monthly View

Usage: /dp:cost month

Image Generation Costs - January 2026

Week-by-week:
Week 1 (Jan 1-7):   $2.40 (60 images)
Week 2 (Jan 8-14):  $1.92 (48 images)
Week 3 (Jan 15-21): $0.88 (22 images) ← Current
Week 4 (Jan 22-28): $0.00
Week 5 (Jan 29-31): $0.00

Month total: $5.20 (130 images)
Average per day: $0.33
Days with generation: 16 days
Most active day: Jan 5 ($0.48, 12 images)

Cost distribution:
DALL-E Standard: $4.96 (124 images)
DALL-E HD: $0.16 (2 images)
Gemini: $0.08 (4 images)

Image types generated:
- UI Mockups: 78 (60%)
- Concept Art: 32 (25%)
- User Scenarios: 15 (12%)
- Marketing: 5 (3%)

Read the full file on GitHub · 207 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 · 207 lines · 7 tokens per session scan A e2b11707d337

Subscribe to this mod's changes

cost is a command published in the GitHub repository danielraffel/generous-corp-marketplace (11 stars, last pushed 11d ago), licensed MIT. It adds 7 tokens to every session and 1,418 once invoked, about $0.0000 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.