/vastai-pack:vastai-hello-world [gpu-requirement-budget-and-image]from vastai-pack
Rents a Vast.ai GPU instance with bounded cost, runs a verification workload (nvidia-smi), and destroys it. Useful for onboarding or platform canary testing.
Ships in vastai-pack. 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.
Read when SKILL.md points to them.
Prove the complete renter lifecycle without leaving billable storage behind. Search a verified offer, register SSH before creation, capture the returned contract ID, bound readiness polling, run one GPU check, retrieve evidence, and destroy.
Run vastai show user --raw; confirm the intended account and enough credit. Set an external deadline and total-spend ceiling before searching.
Use vastai search offers --raw with verified=true, rentable=true, reliability, direct-port, GPU, disk, and price constraints. Record the selected offer ID and quoted price components.
Create with an immutable image tag, SSH, direct networking when required, and the smallest sufficient disk. Capture new_contract as the instance ID.
Poll vastai show instance ID --raw until actual_status is running. Abort and clean up on timeout, exited, unknown, or offline; never poll forever.
Resolve the SSH URL, execute nvidia-smi, run the bounded workload, and copy out the small result or checksum.
Destroy the instance non-interactively and confirm it no longer appears. Destruction is irreversible but is required to stop storage charges.
Use a scoped key that can search offers and manage instances but cannot transfer credit or administer teams. Keep SSH private keys local and never pass them through instance environment variables.
Use Read and Grep to inspect manifests, configuration, provider output, and existing tests before proposing a mutation. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not create, update, destroy, or fund Vast.ai resources without explicit operator approval.
Return account ID, offer ID, instance ID, price, state transitions, canary result, and cleanup confirmation with secrets removed.
An operator rents one verified RTX 4090 below the approved hourly ceiling, reaches running within the deadline, records a CUDA device check, copies out a checksum, and destroys the contract in a guaranteed cleanup path.
| Failure | Response |
|---|---|
| No offer satisfies policy | Do not relax controls silently; report which constraint eliminated capacity. |
| Instance remains loading | Respect the deadline, inspect image size and host network, then destroy and choose another offer. |
| Instance becomes exited, unknown, or offline | Stop polling, salvage only if safe, destroy, and retry on a different host. |
| Cleanup command fails | Escalate immediately with the instance ID because storage may still be billing. |
What SKILL.md sets; muted values are Claude Code's defaults
inherithighThree short reads, in order
vastai, gpu-rental, cost-control, canary-testing, instance-lifecycle
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin vastai-pack24 skills in this plugin
/vastai-ci-integrationRun a credential-safe disposable Vast.ai GPU CI job with a scoped key, immutable image, cost ceiling, terminal-state deadline, and guaranteed destruction. Use when GPU-only acceptance must run in CI. Trigger with: "run GPU tests in CI", "add Vast.ai to GitHub Actions", "make Vast.ai CI clean up"./vastai-common-errorsClassify Vast.ai authentication, offer, instance-state, SSH, image, credit, and API failures before choosing a recovery action. Use when automation is stuck or a GPU workload cannot start. Trigger with: "diagnose Vast.ai", "why is my instance scheduling", "fix a Vast.ai CLI error"./vastai-Other plugins' skills for the same job