vastai-core-workflow-a
Execute Vast.ai primary workflow: GPU instance provisioning and job execution. Use when renting GPUs for training, searching offers by price and specs, or managing the full instance lifecycle from search to teardown. Trigger with phrases like "vastai rent gpu", "vastai training job", "vastai provision instance", "run job on vastai". '
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill vastai-core-workflow-a --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 Core Workflow A: Instance Provisioning & Job Execution ## Overview Primary workflow for Vast.ai: search for GPU offers, provision an instance, transfer data, execute a training or inference job, collect artifacts, and destroy the instance to stop billing. This is the money-path operation for every Vast.ai user. ## Prerequisites - Completed `vastai-install-auth` setup - Docker image published to a registry (Docker Hub, GHCR, etc.) - SSH key uploaded to Vast.ai - Training data accessible via URL or local path ## Instructions ### Step 1: Search Offers with Filters ```python import subprocess, json def search_offers(gpu_name="RTX_4090", min_vram=24, min_reliability=0.95, max_price=0.50, num_gpus=1): """Search Vast.ai marketplace with specific filters.""" query = ( f"num_gpus={num_gpus} gpu_name={gpu_name} " f"gpu_ram>={min_vram} reliability>{min_reliability} " f"inet_down>200 dph_total<={max_price} rentable=true" ) result = subprocess.run( ["vastai", "search", "offers", query, "--order", "dph_total", "--raw"], capture_output=True, text=True, check=True, ) offers = json.loads(result.stdout) print(f"Found {len(offers)} offers matching criteria") for o in offers[:5]: print(f" ID
- Overview
- Prerequisites
- Instructions
- Step 1: Search Offers with Filters
- Step 2: Provision an Instance
- Step 3: Wait for Instance Ready
- Step 4: Transfer Data and Execute Job
- Step 5: Collect Artifacts and Destroy
- Complete Workflow
- Output
- Error Handling
- Resources
- Next Steps
- Examples
Upload training data to instance scp -P $SSH_PORT ./data/training.tar.gz root@$SSH_HOST:/workspace/ Execute training job remotely ssh -p $SSH_PORT root@$SSH_HOST << 'REMOTE'
What does the vastai-core-workflow-a skill do?
Execute Vast.ai primary workflow: GPU instance provisioning and job execution. Use when renting GPUs for training, searching offers by price and specs, or managing the full instance lifecycle from search to teardown. Trigger with phrases like "vastai rent gpu", "vastai training job", "vastai provision instance", "run job on vastai". '
How do I install it?
Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill vastai-core-workflow-a --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.