octo-costs

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

A command that reports the costs of AI workflow usage in a table or JSON format.

In plain words
What is it for?
Use it to review session costs, provider costs, and the cost breakdown of different workflows.
Why use it?
It gives you a cost-focused view of usage without requiring you to inspect usage files or calculate provider rates yourself.

Command for Claude CodeCursor

Written for Claude Code and Cursor: allowed-tools in frontmatter, but also a Cursor plugin manifest.

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 session costs, provider costs, and the cost breakdown of different workflows.

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, Cursor.

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 octo-costs

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/octo-costs"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-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 307 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.00012 $0.00307
Opus 5 $0.00006 $0.00153
Sonnet 5 $0.00002 $0.00061
Haiku 4.5 $0.00001 $0.00031

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

Security

Grade A, and why

octo-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

Copies of this mod

1 near-identical copy found in the catalogue:

  • costs — 91% identical, 3 lines differ
.cursor-plugin/commands/octo-costs.md · 37 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 · 37 lines · 12 tokens per session scan A 876b05d15297

Subscribe to this mod's changes

octo-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 307 once invoked, about $0.0001 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-09-03.