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 skills/vast-ai/vast-cli/vastainpx skills add vast-ai/vast-cli --skill vastaigit clone --depth 1 https://github.com/vast-ai/vast-cliWrote 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/skills/vast-ai/vast-cli/vastai)<a href="https://agentmods.dev/skills/vast-ai/vast-cli/vastai"><img src="https://agentmods.dev/badge/skills/vast-ai/vast-cli/vastai.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.00021 | $0.04277 |
| Opus 5 | $0.00010 | $0.02139 |
| Sonnet 5 | $0.00004 | $0.00855 |
| Haiku 4.5 | $0.00002 | $0.00428 |
Grade E, and why
vastai scanned grade E with 3 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 6d 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.
vastai create ssh-key ~/.ssh/id_ed25519.pub # Register SSH key (do BEFORE create) Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://vast.ai/install.sh | bash Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://vast.ai/install.sh | bash How it starts
The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.
vastai
Manage GPU instances, templates, volumes, serverless endpoints, SSH keys, and billing on Vast.ai.
Command is
vastai(lowercase). Always use--rawfor machine-readable JSON output.
Install
# Linux/macOS (recommended, no Python required)
curl -fsSL https://vast.ai/install.sh | bash
# or via PyPI (Windows, or if you'd rather use pip)
pip install vastai
Quick start
vastai set api-key <YOUR_API_KEY> # Authenticate (one-time); Create API Key in account at https://console.vast.ai/manage-keys/
vastai show user # Verify auth + check balance
vastai create ssh-key ~/.ssh/id_ed25519.pub # Register SSH key (do BEFORE create)
vastai search offers 'gpu_name=RTX_4090 num_gpus=1 verified=true direct_port_count>=1 rentable=true' -o 'dlperf_usd-'
# Note the offer ID from the output
vastai create instance <OFFER_ID> --image pytorch/pytorch:@vastai-automatic-tag --disk 20 --ssh --direct
# Automatically grab appropriate image tag; Response: {"success": true, "new_contract": <INSTANCE_ID>}
vastai show instance <INSTANCE_ID> # Poll until actual_status == "running" (see Instance status values below)
vastai ssh-url <INSTANCE_ID> # Get SSH connection string
vastai copy local:./data/ <INSTANCE_ID>:/workspace/ # Upload files
vastai destroy instance <INSTANCE_ID> -y # Clean up (stops all billing; -y skips confirmation)
API key: https://console.vast.ai/manage-keys/
Global flags
Available on every command:
--api-key KEY Override stored API key
--raw Output machine-readable JSON (agents should always use this)
--full Print full results (don't page with less)
--explain Show underlying API calls (useful for debugging)
--curl Show equivalent curl command
--no-color Disable colored output
--url URL Override server REST API URL
--retry RETRY Set retry limit for API calls
--version Show CLI version
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- __init__.py 1.8 KB runs code
- _base.py 1.6 KB runs code
- api/__init__.py 31 B runs code
- api/auth.py 15 KB runs code
- api/billing.py 10 KB runs code
- api/client.py 6.4 KB runs code
- api/clusters.py 4.5 KB runs code
- api/deployments.py 1.4 KB runs code
- api/endpoints.py 12 KB runs code
- api/instances.py 17 KB runs code
- api/keys.py 4.3 KB runs code
- api/machines.py 7.4 KB runs code
- api/metrics.py 2.6 KB runs code
- api/offers.py 20 KB runs code
- api/price_increase.py 4.0 KB runs code
- api/query.py 12 KB runs code
- api/storage.py 14 KB runs code
- api/teams.py 4.4 KB runs code
- async_/__init__.py 79 B runs code
- async_/client.py 9.6 KB runs code
- async_/results.py 1.3 KB runs code
- cli/__init__.py 25 B runs code
- cli/commands/__init__.py 757 B runs code
- cli/commands/auth.py 40 KB runs code
- cli/commands/benchmarks.py 42 KB runs code
- cli/commands/billing.py 30 KB runs code
- cli/commands/clusters.py 7.8 KB runs code
- cli/commands/deployments.py 7.8 KB runs code
- cli/commands/endpoints.py 17 KB runs code
- cli/commands/instances.py 55 KB runs code
- cli/commands/keys.py 7.9 KB runs code
- cli/commands/machines.py 78 KB runs code
- cli/commands/metrics.py 11 KB runs code
- cli/commands/misc.py 11 KB runs code
- cli/commands/offers.py 29 KB runs code
- cli/commands/price_increase.py 15 KB runs code
- cli/commands/storage.py 39 KB runs code
- cli/commands/teams.py 6.2 KB runs code
- cli/commands/uninstall.py 2.4 KB runs code
- cli/commands/update.py 3.1 KB runs code
- cli/display.py 20 KB runs code
- cli/main.py 10 KB runs code
- cli/parser.py 16 KB runs code
- cli/self_test/__init__.py 46 B runs code
- cli/self_test/machine_diagnostics.py 21 KB runs code
- cli/self_test/runtime_diagnostics.py 19 KB runs code
- cli/self_test/support_bundle.py 11 KB runs code
- cli/selfupdate.py 14 KB runs code
- cli/util.py 25 KB runs code
- cli/utils.py 489 B runs code
- data/__init__.py 303 B runs code
- data/deployment.py 3.5 KB runs code
- data/endpoint.py 2.1 KB runs code
- data/instance.py 3.6 KB runs code
- data/offer.py 4.4 KB runs code
- data/query.py 13 KB runs code
- data/workergroup.py 1.4 KB runs code
- pdf/__init__.py 0 B runs code
- pdf/vast_pdf.py 19 KB runs code
- pdf/vast.ai-logo-50pct.png 7.4 KB
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.
- 6d ago First seen · 377 lines · 21 tokens per session scan E 2f41522e414f
vastai is a skill published in the GitHub repository vast-ai/vast-cli (218 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 4,277 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it E with 3 findings (reaches for credential files, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
gdpr-compliance-checker
Autonomous GDPR compliance auditor that scans a codebase to identify PII collection, storage, and sharing, then produces an article-by-article gap analysis, a pre-filled Data Processing Agreement (DPA), and a ROPA (Record of Processing Activities) starter kit — all exported as downloadable files (.docx recommended).…
pii-detector
Proactive PII add-on — augments the main response with PII guidance. Auto-trigger on any form, schema, migration, model, API route, GraphQL resolver, auth flow, or data design discussion. Also fires on: middleware, webhooks, workers, seed/fixture/factory files, delete/export/purge/anonymize functions, cron jobs, HTTP…
deploy-workflow
Safe deployment workflow for Drupal 10/11 sites: pre-flight checks, backup, the correct update sequence (composer install, database updates, config import, cache rebuild), verification, and rollback plan. Use when deploying to any environment, releasing to production, or when the user asks to "push changes live"…
create-azure-agent
Deploys a skill as an Azure AI Foundry hosted agent. NOT for Docker runtime skills (use create-docker-skill) and NOT for MCP server integrations (use create-mcp-integration).
okhp3-vite-github-pages
OverKill Hill P³ Vite-to-GitHub-Pages deployment runbook. Use when deploying or troubleshooting this React/Vite app, its Actions workflow, /abrahamic-reference-engine/ production base, BrowserRouter basename fallback, dist artifacts, build validation, or Pages environment variables. Also activate for subpath asset…
docs-context
Super Base Context — project doc loader & synchronizer. Triggers even without explicit "load docs"/"sync docs." READ MODE — load architecture/modules/coding/decision docs when work references project state: code work (write/modify/remove); design (features/APIs/schemas/architecture); review (modules, past solutions)…