costs

costs is a command for Claude Code from nyldn/claude-octopus. It costs 12 tokens per session (311 once invoked), scanned A, a copy of octo-costs, MIT.

A report command that shows Octopus usage and spending information in a table or JSON format.

In plain words
What is it for?
Use it to review cost summaries, provider rows, and workflow-level usage reports.
Why use it?
It makes provider usage, session totals, and workflow costs easier to inspect without calculating them manually.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the octo plugin — 70 skills, 106 commands, 10 agents, 18 hooks shipped together

Good fit Use it to review cost summaries, provider rows, and workflow-level usage reports.

Compare 6 commands from other repositories ↓
About the project

Claude Octopus is an orchestration project that sends research, design, and coding tasks to Claude Code and other AI model providers so their results can be compared. Developers use it for multi-model work, disagreement detection, reviews, persistent context, and an optional workflow that moves from discovery through delivery. The catalogue entries are its commands, skills, agents, instructions, hooks, plugins, and settings.

nyldn/claude-octopus · 4,061 stars · on GitHub · reddit.com

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add nyldn/claude-octopus
Claude Code
/plugin install octo

Made for: Claude Code.

Or install octo, the plugin that ships this one along with the rest of its 70 skills, 106 commands, 10 agents, 18 hooks.

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 costs

README.md
[![agentmods](https://agentmods.dev/badge/commands/nyldn/claude-octopus/costs/github.svg)](https://agentmods.dev/commands/nyldn/claude-octopus/costs)
Your own site
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/costs"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/costs/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 costs

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/costs"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/costs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 311 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 91% copy Near-identical to another mod 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.00012 $0.00311
Opus 5 $0.00006 $0.00156
Sonnet 5 $0.00002 $0.00062
Haiku 4.5 $0.00001 $0.00031

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

Security

Grade A, and why

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 8d 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

This is a copy

91% identical to octo-costs — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/costs.md · 38 lines

What it actually says

Cost Dashboard (/octo:costs)

For table output, your first output line MUST be 🐙 Octopus Cost Dashboard. For JSON, emit only the helper output—no banner or commentary.

This v10 compatibility command shows the cost-focused view of /octo:usage. It is scheduled for removal in v11.

EXECUTION CONTRACT (Mandatory)

When the user invokes /octo:costs, run the helper once with the Bash tool:

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}"
helper="$OCTO_ROOT/scripts/helpers/usage-report.sh"
if [[ ! -x "$helper" ]]; then
  echo "ERROR: Claude Octopus usage report helper is unavailable. Run /octo:setup." >&2
  exit 1
fi
format="table"
case " $ARGUMENTS " in
  *" --format json "*|*" --format=json "*) format="json" ;;
esac
"$helper" --view costs --format "$format"

Choose the format before invoking the helper and invoke it exactly once. For JSON, emit only the helper output. The helper owns pricing, session aggregation, provider rows, and the workflow cost breakdown. Do not inspect usage files or calculate rates inside the model response.

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. 8d ago First seen · 38 lines · 12 tokens per session scan A ab556da513dc

Subscribe to this mod's changes

costs is a command published in the GitHub repository nyldn/claude-octopus (4,061 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 311 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to octo-costs, differing in 3 lines, and is treated as a copy.