Skip to content
Automation
Command

/usage

[advanced] Per-provider, per-skill, and per-MCP-server cost and token breakdown (Claude Code /usage schema)

From plugin
octo
4.3k53 skills49 agents53 commands18 hooks
> /plugin marketplace add nyldn/claude-octopus

Command definition

usage.md
command: usage
disable-model-invocation: true
description: "[advanced] Per-provider, per-skill, and per-MCP-server cost and token breakdown (Claude Code /usage schema)"
allowed-tools: Bash, Read, Glob

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:-${CODEX_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:-${CODEX_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 USD.

Read more
@nyldn
Ships withocto

Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code

4.3k70 skills49 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.3k
Star history of nyldn/claude-octopus on GitHub, a chart by star-history.com

Other commands on octo.

auto

auto

Command

Smart router - Single entry point with natural language intent detection

@nyldn@nyldnInstall Command
brainstorm

brainstorm

Command

Start a creative thought partner brainstorming session

@nyldn@nyldnInstall Command
budget-mode

budget-mode

Command

Switch Octopus model routing to the configured budget tier

@nyldn@nyldnInstall Command
careful

careful

Command

[advanced] Activate destructive command warnings for the session

@nyldn@nyldnInstall Command
costs

costs

Command

[advanced] Compatibility view of the deterministic Octopus usage report

@nyldn@nyldnInstall Command
council

council

Command

Multi-LLM council for advice, decision support, implementation plans, and gated implementation

@nyldn@nyldnInstall Command

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n11d209k
@n8n-io@n8n-ioInstall Command
setup

setup

Command

One-time setup after installing ARIS as a Claude Code plugin — registers the Codex reviewer MCP server from the plugin directory…

aris12d18k
@wanshuiyin@wanshuiyinInstall Command
agent
Auto-invoked

agent

Command

name: sc:agent description: SC Agent — session controller that orchestrates investigation, implementation, and review category:…

@galaxy-dawn@galaxy-dawnInstall Command