vastai-hello-world
Rent your first GPU instance on Vast.ai and run a workload. Use when starting a new Vast.ai integration, testing your setup, or learning basic Vast.ai GPU rental patterns. Trigger with phrases like "vastai hello world", "vastai example", "vastai quick start", "rent first gpu", "vastai first instance". '
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill vastai-hello-world --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Vast.ai Hello World ## Overview Rent your first GPU instance on Vast.ai, run a PyTorch workload, and destroy the instance when done. Demonstrates the full lifecycle: search offers, create instance, connect via SSH, run a job, and tear down. ## Prerequisites - Completed `vastai-install-auth` setup - Vast.ai account with credits ($1+ recommended for testing) - SSH key uploaded to Vast.ai (cloud.vast.ai > Account > SSH Keys) ## Instructions ### Step 1: Search for Available GPUs (CLI) ```bash # Find cheap single-GPU offers sorted by price vastai search offers 'num_gpus=1 gpu_ram>=8 inet_down>100 reliability>0.95' \ --order 'dph_total' --limit 5 # Output columns: ID, GPU, VRAM, $/hr, DLPerf, Reliability, Location ``` ### Step 2: Search for Available GPUs (REST API) ```bash curl -s -H "Authorization: Bearer $VASTAI_API_KEY" \ "https://cloud.vast.ai/api/v0/bundles/?q=%7B%22num_gpus%22%3A%7B%22eq%22%3A1%7D%2C%22gpu_ram%22%3A%7B%22gte%22%3A8%7D%2C%22reliability2%22%3A%7B%22gte%22%3A0.95%7D%2C%22rentable%22%3A%7B%22eq%22%3Atrue%7D%7D&order=dph_total&limit=5" \ | jq '.offers[:3] | .[] | {id, gpu_name, num_gpus, gpu_ram, dph_total, reliability2}' ``` ### Step 3: Create an Instance (CLI) ```b
- Overview
- Prerequisites
- Instructions
- Step 1: Search for Available GPUs (CLI)
- Step 2: Search for Available GPUs (REST API)
- Step 3: Create an Instance (CLI)
- Step 4: Create an Instance (Python)
- Step 5: Monitor and Connect
- Step 6: Run a Test Workload
- Step 7: Destroy the Instance
- Output
- Error Handling
- Resources
- Next Steps
Find cheap single-GPU offers sorted by price
vastai search offers 'num_gpus=1 gpu_ram>=8 inet_down>100 reliability>0.95' \
Output columns: ID, GPU, VRAM, $/hr, DLPerf, Reliability, Location
curl -s -H "Authorization: Bearer $VASTAI_API_KEY" \
Replace OFFER_ID with the ID from search results
vastai create instance OFFER_ID \
Check instance status (wait for 'running')
vastai show instances --raw | jq '.[] | {id, actual_status, ssh_host, ssh_port}'
Connect via SSH once running
ssh -p SSH_PORT root@SSH_HOSTWhat does the vastai-hello-world skill do?
Rent your first GPU instance on Vast.ai and run a workload. Use when starting a new Vast.ai integration, testing your setup, or learning basic Vast.ai GPU rental patterns. Trigger with phrases like "vastai hello world", "vastai example", "vastai quick start", "rent first gpu", "vastai first instance". '
How do I install it?
Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill vastai-hello-world --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,630 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.