Vast.ai CLI Helper
Teaches Claude to drive the `vastai` CLI for GPU instances, volumes, serverless endpoints, and billing on Vast.ai.
Dev & CodingIntermediate★ 211⑂ 90AI score 8/10Last updated: Aug 12, 2026
What it does
- Provides a complete map of the
vastaiCLI: offer search, instance create/start/stop/destroy, SSH keys, file copy, volumes, templates, serverless endpoints, teams, API keys, and invoices. - Documents the query filter syntax (
gpu_name=RTX_4090 reliability>0.95) and sort fields such asdlperf_usdanddph_total. - Gives a canonical workflow: register SSH key → search offers → create instance → poll status → copy data → destroy to stop billing.
- Includes an
actual_statustable plus warnings about infinite poll loops, spot (--bid_price) pitfalls, and when GPU vs. storage charges start.
Who it's for
- ML engineers and researchers renting GPUs on Vast.ai for training or inference.
- Anyone automating instance lifecycle from scripts or an AI agent.
- Users of prebuilt images like vLLM, ComfyUI, or the Linux desktop image.
Example uses
- "Find a verified single RTX 4090 offer with the best perf-per-dollar and launch it with the PyTorch image and 20GB disk."
- "List my running instances with hourly cost, then destroy everything labeled
training." - "Serve Qwen2.5-3B with the vLLM image using my HF token, then tail the last 100 log lines."
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/vast-ai/vast-cli/HEAD/vastai/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the vastai folder from the GitHub repo vast-ai/vast-cli into my ~/.claude/skills/vastai/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/vast-ai/vast-cli.git && mkdir -p ~/.claude/skills/vastai && cp vast-cli/vastai/SKILL.md ~/.claude/skills/vastai/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/vast-ai/vast-cli.git - Create the skill folder:
mkdir -p ~/.claude/skills/vastai - Copy the skill file:
cp vast-cli/vastai/SKILL.md ~/.claude/skills/vastai/ - Install the CLI:
curl -fsSL https://vast.ai/install.sh | bash(on Windows usepip install vastai). - Create an API key at https://console.vast.ai/manage-keys/ and run
vastai set api-key <key>. - Verify with
vastai show user, then restart Claude Code so the skill is loaded.
View source on GitHub ↗License: MIT