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.
npx agentmods add commands/vast-ai/vast-claude-plugin/setupgit 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/setup)<a href="https://agentmods.dev/commands/vast-ai/vast-claude-plugin/setup"><img src="https://agentmods.dev/badge/commands/vast-ai/vast-claude-plugin/setup.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 | $0.00016 | $0.00904 |
| Opus 5 | $0.00008 | $0.00452 |
| Sonnet 5 | $0.00003 | $0.00181 |
| Haiku 4.5 | $0.00002 | $0.00090 |
Grade C, and why
setup scanned grade C with 1 finding 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 3d 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.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
3. **Register an SSH key BEFORE the first instance launch.** Check `~/.ssh/id_ed25519.pub` (preferred) then `~/.ssh/id_rsa.pub`. If neither exists, instruct the user to run `ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed255 How it starts
The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/vast:setup
First-time setup for the Vast.ai CLI inside Claude Code. Runs the three onboarding steps documented in the vastai skill's Quick Start: store the API key, register an SSH key, and verify the credential by querying the user record.
Steps
-
Check for an existing
VAST_API_KEYenv var first. Run:env | grep ^VAST_API_KEY= || echo "not set"If it IS set, warn the user: "
$VAST_API_KEYis already set in your shell. It will silently override any key I store withvastai set api-key. If you want the stored key to be the active one, rununset VAST_API_KEYbefore continuing." Wait for the user's decision before proceeding. -
Store the API key. Get the key from https://console.vast.ai/manage-keys/ (NOT
cloud.vast.ai/account— that URL doesn't exist).- If
$ARGUMENTSis non-empty, treat it as the API key. But the value is already in the transcript by that point, so warn the user it's been logged and they should rotate it after setup. - If
$ARGUMENTSis empty, ask the user to paste the command themselves with the!prefix so the key stays out of the conversation history:
Explain that!vastai set api-key <YOUR_KEY>!runs the command in their shell without sending the line to Claude. Do not ask them to paste the key into chat.
- If
-
Register an SSH key BEFORE the first instance launch. Check
~/.ssh/id_ed25519.pub(preferred) then~/.ssh/id_rsa.pub. If neither exists, instruct the user to runssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519and re-run/vast:setup. Once a key file is found, register it (public key is POSITIONAL — there is no--ssh-keyflag):vastai create ssh-key "$(cat ~/.ssh/id_ed25519.pub)" --rawThis step is critical — launching an instance before registering a key produces an unreachable host.
-
Verify authentication. Run:
vastai show user --rawOn success, report the user's email and current balance.
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.
- 3d ago First seen · 54 lines · 16 tokens per session scan C c5f3e8fb18e5
setup 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 904 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
deploy
Build, test, deploy with staged rollout.
deploy
Deploy a frontend (React, Next.js, or static HTML) to a live URL on Butterbase.
cf-scaffold-project
Scaffold a Cloudflare project — Worker, Pages, or Worker+D1+R2 starter — with Wrangler config, Terraform skeleton, and GitHub Actions deploy using scoped API tokens.
overview
Unified cost dashboard combining state, plan, actual costs, projected costs, drift, and recommendations.
scan
Scan AWS account for cost optimization.
finops-feedback
Step 5 (Feedback Loop & Celebration) — measure realized against projected savings, compute a labelled Cloud Entropy proxy, close the opportunity, and emit at least one new idea or policy update so the loop actually closes. Applies the double-loop gate. Mutates on the closure path.