/ruflo-cost-tracker:cost-openrouter key | generation <id> | creditsfrom ruflo-cost-tracker
Checks OpenRouter real-time spend, key limits, generation costs, and account credits. Useful for tracking API usage and billing.
Ships in ruflo-cost-tracker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Network skill. Ask the user before running it, and run it only with their yes.
node ${CLAUDE_PLUGIN_ROOT}/scripts/openrouter.mjs key --yes
node ${CLAUDE_PLUGIN_ROOT}/scripts/openrouter.mjs generation gen-abc123 --yes
node ${CLAUDE_PLUGIN_ROOT}/scripts/openrouter.mjs credits --yes
--yes the script prints the call it would make and sends nothing.OPENROUTER_API_KEY (credits: OPENROUTER_MANAGEMENT_KEY). A key the user stored as the plugin option openrouterApiKey arrives as OPENROUTER_API_KEY too: the plugin's SessionStart hook puts it there for this session's commands when the variable is not already set (ADR-506). Never ask the user to paste a key, never print, log or write one.usage.cost / total_cost is authoritative; do not recompute it from list prices.credits needs a management key (a normal key returns 403). A fresh generation can 404 briefly: retry.usage, the provider's charge in upstream_inference_cost: show both, labelled.openrouter/auto can change the billed model: report model and provider_name as returned.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ruvnet/ruflo --plugin ruflo-cost-tracker24 skills in this plugin
/cost-adviseOptimisation findings from your own Claude Code and Codex logs — low cache hit ratio, 1-hour cache writes that did not pay back, sub-agents on a top-tier model, Codex reasoning share, bloated sessions — each with evidence and a what-if saving. Use when asked how to cut spend or why it is high./cost-anomalyMAD-based outlier detection on session spend: lists anomalous sessions with modified-z scores, with an optional --alert-on-outliers exit code for CI. Use when asked which individual session is the cost outlier; cost-burn covers the aggregate trend./cost-benchmarkRun the corpus benchmark — booster locally, optional Gemini/Sonnet/Opus baselines — and persist a verifiable measured-vs-claimed tableOther plugins' skills for the same job