Show API-equivalent cost analysis with model-specific pricing and subscription leverage
Calculate API-equivalent costs from interstat token data using model-specific Anthropic pricing.
Invoke when the user wants to:
Arguments:
0 for all-time.--json for machine-readable output/interstat:analyze recently, suggest it first.DAYS="${args:-30}"
if [ "$DAYS" = "0" ]; then DAYS_FLAG="--days 0"; else DAYS_FLAG="--days $DAYS"; fi
cd ${CLAUDE_PLUGIN_ROOT} && uv run scripts/cost.py $DAYS_FLAG --subscription 600
Note: --subscription 600 assumes 3x Claude Max ($200 each). Adjust if the user specifies differently.--json is in args, add --format json to the command./interstat:analyze first.