usage

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

A usage-report command that reads recorded Octopus activity and shows estimated costs and token counts by provider, skill, and MCP server. MCP servers are external services that an agent can call.

In plain words
What is it for?
Use it to view a table or machine-readable report of recorded provider costs, token use, skill use, and MCP-server use.
Why use it?
It gives one place to inspect agent usage instead of reviewing separate recorded activity files by hand.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; positional $N argument.

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 view a table or machine-readable report of recorded provider costs, token use, skill use, and MCP-server use.

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,056 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 usage

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/usage"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 522 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.00026 $0.00522
Opus 5 $0.00013 $0.00261
Sonnet 5 $0.00005 $0.00104
Haiku 4.5 $0.00003 $0.00052

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

Security

Grade A, and why

usage 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 4d 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-usage — 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/usage.md · 50 lines

What it actually says

Usage Report (/octo:usage)

Your first output line MUST be: 🐙 Octopus Usage Report

Produce a per-provider, per-skill, and per-MCP-server cost and token breakdown from recorded Octopus usage artifacts. Output schema matches Claude Code's native /usage report (claude-code/usage-v1), so results can be compared or merged with the host session's own usage pane.

EXECUTION CONTRACT (Mandatory)

STEP 1: Run the report helper

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}"
"$OCTO_ROOT/scripts/helpers/usage-report.sh" --view usage --format table

If the user asked for machine-readable output (or passed --format json):

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}"
"$OCTO_ROOT/scripts/helpers/usage-report.sh" --view usage --format json

The helper reads:

  • ~/.claude-octopus/usage/*.jsonl — JSONL records written by hooks/subagent-stop-gate.sh and provider adapters
  • ~/.claude-octopus/results/**/summary.json — council and workflow roster artifacts (query counts)

STEP 2: Present the breakdown

Show the helper's table output directly. Then add a one-paragraph interpretation:

  • Which provider drove the most estimated cost
  • Whether any external CLI seat (🔴 Codex, 🧭 Antigravity) dominates and could be swapped for an included provider
  • Whether MCP server usage is material

STEP 3: Flag empty data honestly

If the helper prints No usage records found, say so and point the user at OCTOPUS_SUBAGENT_GATE_STRICT and the SubagentStop gate hook (hooks/subagent-stop-gate.sh), which populates the usage log as subagents complete. Do not fabricate numbers.

Cost reference

Rates come from config/model-pricing.tsv. The helper is the only calculator. Providers with subscription or local backends such as agy, Copilot, Ollama, Cursor Agent, and native OpenCode report $0.00.

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. 4d ago First seen · 50 lines · 26 tokens per session scan A 41123c85715a

Subscribe to this mod's changes

usage is a command published in the GitHub repository nyldn/claude-octopus (4,056 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 522 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-usage, differing in 3 lines, and is treated as a copy.