vast-ai-gpu-cloud

vast-ai-gpu-cloud is a skill for Claude Code, Codex from synthetic-sciences/openscience. It costs 34 tokens per session (721 once invoked), scanned A, original, Apache-2.0.

A guide for inspecting and operating GPU machines rented through the Vast.ai marketplace. It covers checking live offers and instance details while requiring approval for paid or destructive actions.

In plain words
What is it for?
Use it to review GPU offers, inspect account resources and running instances, test the connection, and check instance status.
Why use it?
It helps avoid accidentally selecting unsuitable machines, spending money, exposing credentials, or deleting cloud resources.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/synthetic-sciences/openscience/vast-ai
Any agent
npx skills add synthetic-sciences/openscience --skill vast-ai
Clone the repo
git clone --depth 1 https://github.com/synthetic-sciences/openscience

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for vast-ai-gpu-cloud

README.md
[![agentmods](https://agentmods.dev/badge/skills/synthetic-sciences/openscience/vast-ai.svg)](https://agentmods.dev/skills/synthetic-sciences/openscience/vast-ai)
Your own site
<a href="https://agentmods.dev/skills/synthetic-sciences/openscience/vast-ai"><img src="https://agentmods.dev/badge/skills/synthetic-sciences/openscience/vast-ai.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 721 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.00721
Opus 5 $0.00017 $0.00360
Sonnet 5 $0.00007 $0.00144
Haiku 4.5 $0.00003 $0.00072

Measured today against content hash a2332d853ddb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vast-ai-gpu-cloud 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 today.

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.

backend/cli/skills/cloud-compute/vast-ai/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vast.ai GPU Cloud

Use this skill for Vast.ai marketplace discovery and instance operations. Offers, reliability attributes, locations, bandwidth, storage, and prices are live marketplace data; query them immediately before recommending anything.

OpenScience credential boundary

  • A key saved in Customize > Compute > Vast.ai is encrypted control-plane data and is not exported to agent shells, notebooks, kernels, plugins, or MCP servers.
  • Use provider_compute with account, list_resources, or resource_status for live account and instance reads. OpenScience selects only vastai show user --raw, show instances --raw, or one exact show instance <id> --raw invocation.
  • Test connection uses the same boundary for exactly vastai show user --raw.
  • The saved key is admitted only when Test connection approves a root/admin-managed, non-writable vastai executable. A normal user-owned pip, pipx, or Homebrew install remains credential-only and cannot be used by provider_compute until a managed/native adapter exists.
  • last_used changes only after that command succeeds.
  • Never print or persist the key. The saved credential cannot search/accept offers or start, stop, destroy, copy, or change instances; a generic shell needs independent user-managed authentication.

Current CLI contract

vastai --help
vastai show user --raw
vastai show instances --raw

Use vastai --help and the exact subcommand's --help before constructing marketplace filters or mutations. Do not rely on remembered filter fields or create flags.

Marketplace policy

  1. Confirm GPU memory/count, disk, bandwidth, reliability, verification requirements, location, runtime, interruption tolerance, and maximum budget.
  2. Query live offers. Preserve the provider's exact offer ID and quoted terms.
  3. Recommend one offer and explain the material reliability and interruption tradeoffs. Do not optimize on hourly price alone.
  4. Get explicit approval before accepting an offer, creating or destroying an instance, changing storage, or interrupting a workload.
  5. After creation, reconcile by instance ID before retrying any ambiguous request.
  6. Verify SSH and workload health; do not treat an instance state alone as proof the job succeeded.
  7. Copy and verify required outputs before destruction. Ask separately before deleting durable volumes or templates.

Read the full file on GitHub · 57 lines

Changes

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.

  1. today First seen · 57 lines · 34 tokens per session scan A a2332d853ddb

Subscribe to this mod's changes

vast-ai-gpu-cloud is a skill published in the GitHub repository synthetic-sciences/openscience (3,432 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 721 once invoked, about $0.0002 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-09-03.