/octo:costsfrom octo
Shows cost breakdown by provider and workflow for the current session and cumulative history, with ASCII tables for per-provider and per-workflow estimates.
Ships in octo. Installing the plugin adds it to Claude Code.
Your first output line MUST be: 🐙 Octopus Cost Dashboard
Display a cost breakdown by provider and workflow for the current session (and cumulative history).
When the user invokes /octo:costs, you MUST follow these steps in order.
Search for session usage data in these locations (check all, use whichever exist):
~/.claude-octopus/usage/ # Per-session usage logs
~/.claude-octopus/routing.log # Routing decisions with timestamps
~/.claude-octopus/sessions/ # Session state files
.claude-octopus/ # Project-local usage data
Use the Bash tool to list and read files:
ls -la ~/.claude-octopus/usage/ 2>/dev/null || echo "No usage directory"
ls -la ~/.claude-octopus/routing.log 2>/dev/null || echo "No routing log"
ls -la ~/.claude-octopus/sessions/ 2>/dev/null || echo "No sessions directory"
ls -la .claude-octopus/ 2>/dev/null || echo "No project-local usage data"
For each provider found in the usage data, extract:
Format as a clean ASCII table:
Provider Cost Breakdown
============================================================
Provider Tokens In Tokens Out Queries Est Cost
------------------------------------------------------------
Claude Opus 5 45,200 12,800 3 $0.55
Claude Sonnet 5 128,000 34,500 12 $0.90
Codex CLI - - 8 $0.64
Perplexity - - 2 $0.06
------------------------------------------------------------
TOTAL 29 $2.23
============================================================
For providers where only query counts are available (Codex, Antigravity, Perplexity), use the midpoint or included-access estimate from the reference table. Show $0.00 for free providers or unused providers.
Group costs by workflow/command that triggered them:
Workflow Cost Breakdown
============================================================
Workflow Providers Used Queries Est Cost
------------------------------------------------------------
/octo:discover Claude, Codex, agy 8 $0.42
/octo:develop Claude, Codex 6 $1.01
/octo:review Claude, Codex, agy 9 $0.58
/octo:debate Claude, Codex, agy 6 $0.22
------------------------------------------------------------
TOTAL 29 $2.23
============================================================
Show both the current session totals and cumulative totals (if historical data exists):
Session Summary
============================================================
Current Session: $2.23 (29 queries, started 2h 15m ago)
Cumulative (7d): $8.42 (156 queries across 12 sessions)
Cumulative (30d): $34.18 (612 queries across 47 sessions)
============================================================
If cumulative data is not available, show only the current session.
If no usage data exists at all, display:
No usage data found.
Claude Octopus tracks provider usage in:
~/.claude-octopus/usage/ (per-session logs)
~/.claude-octopus/routing.log (routing decisions)
Usage data is recorded automatically when you run workflows like:
/octo:discover - Multi-AI research
/octo:develop - Multi-AI implementation
/octo:review - Multi-AI code review
/octo:debate - Multi-AI deliberation
/octo:embrace - Full 4-phase lifecycle
Run any multi-AI workflow to start tracking costs.
These are the current per-provider cost estimates used for calculations:
| Provider | Input | Output | Per-Query Estimate |
|---|---|---|---|
| Claude Opus 5 | $5/MTok | $25/MTok | varies by tokens |
| Claude Sonnet 5 | $3/MTok | $15/MTok | varies by tokens |
| Codex GPT-5.6 Sol | $5/MTok | $30/MTok | varies by tokens or subscription |
| Codex CLI | - | - | ~$0.01-0.15/query |
Antigravity CLI (agy) | - | - | Included with user's Antigravity access/subscription |
| Perplexity | - | - | ~$0.01-0.05/query |
Notes:
/octo:costs # Show current session costs
/octo:costs # After running several workflows
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (gongyuancaiji/dsh-claude-octopus) — no native marketplace selected
npx claudepluginhub p/gongyuancaiji-octo54 commands in this plugin
Other plugins' commands for the same job