Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/vast-ai/vast-claude-pluginWrote 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.
[](https://agentmods.dev/commands/vast-ai/vast-claude-plugin/cost)<a href="https://agentmods.dev/commands/vast-ai/vast-claude-plugin/cost"><img src="https://agentmods.dev/badge/commands/vast-ai/vast-claude-plugin/cost.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00016 | $0.00575 |
| Opus 5 | $0.00008 | $0.00287 |
| Sonnet 5 | $0.00003 | $0.00115 |
| Haiku 4.5 | $0.00002 | $0.00057 |
Grade A, and why
cost 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 7d 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.
What it actually says
/vast:cost
Report current Vast.ai spend at a glance.
Steps
-
Account balance. Run:
vastai show user --rawReport
credit(current balance) andemail. On a 401 with"Two Factor Authentication"in the body, the account has 2FA enabled and no active TFA session — recommend!vastai tfa login --method-type totp --code <CODE>(with!prefix so the code stays out of the transcript), then retry. -
Active spend rate. Run:
vastai show instances-v1 --raw -a-a/--allauto-fetches every page, sidestepping the interactiveFetch next page? (y/N)prompt that otherwise blocks non-interactive sessions even under--raw. (If-ais undesired for some reason, pass--limit <N>instead — read the current per-page cap fromvastai show instances-v1 --help.)From the response object, sum
instances[].dph_total(dollars per hour) across rows whoseactual_statusisrunning. Report as$/hrand project a 24h cost. -
Recent invoices. Run:
vastai show invoices-v1 -c --raw --limit <N> --latest-first-c(--charges) is required to select charges (use-i/--invoicesfor paid invoices).--limit <N>short-circuits the same pagination prompt; read the current cap fromvastai show invoices-v1 --help.--latest-firstis supported onshow invoices-v1(NOT onshow instances-v1— different flag sets).
Summarize
results[]over the last three months. Group bycharge_type(i=instance,v=volume,s=serverless) if the user wants a breakdown.
Notes
--rawis required on every call.- Use
show invoices-v1, not the legacyshow invoices. - Pagination gotcha (skill rule 9): always pass
--limitonshow instances-v1andshow invoices-v1. Each command's--helplists its supported flags — they differ. - See
skills/vastai/SKILL.md§ "Account & Billing" for the full billing surface.
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.
- 7d ago First seen · 43 lines · 16 tokens per session scan A 1f7e080517b8
cost is a command published in the GitHub repository vast-ai/vast-claude-plugin (3 stars, last pushed 2mo ago), licensed MIT. It adds 16 tokens to every session and 575 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
cost-optimize
You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, GCP, and OCI. Where provider-specific code appears below, adapt…
finops
Create FinOps strategy with cloud cost management, optimization, governance, and forecasting.
azure-cost
Azure cost and pricing analysis for a subscription — Advisor cost recommendations, retail pricing lookups, and quota-driven right-sizing signals, scoped to one subscription.
estimate-cost
Estimate AWS costs for planned infrastructure or analyze current spending.
estimate-gcp-cost
Estimate GCP resource costs and provide optimization recommendations.
cost-optimize
You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, and GCP.