Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Rent a GPU on vast.ai, run experiments on it over SSH/rsync, pull artifacts back, and destroy it. Use when a task needs a GPU (training, CUDA, large-model inference).
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -33% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -47% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 10% | 0% |
You rent a GPU instance with the native vastai CLI, wait for it with vastai-connect (which writes an SSH alias), then work with plain ssh/rsync. Money is spent per hour from the moment an instance is created until it is destroyed. Never leave one behind.
bashvastai show instances --raw # errors if vastai isn't installed or the API key isn't set
If missing: have the user register a public SSH key and create an API key at https://cloud.vast.ai/manage-keys/, then:
bashuv tool install vastai && vastai set api-key <key> uv tool install git+https://github.com/Yusuke710/vastai-skill.git
bash# Cheapest matching offers first. GPU names use underscores: RTX_3060, RTX_4090, A100_SXM4... vastai search offers 'gpu_name=RTX_3060 num_gpus=1 reliability>0.98 dph<0.45' -o 'dph' --raw vastai create instance <offer_id> --image vastai/pytorch:latest --disk 30 --ssh --raw # → {"success": true, "new_contract": <instance_id>}
dph_total ($/hr) against what the task deserves before renting.vastai/pytorch:latest — its CUDA base layers are cached on mostvast.ai hosts (boot-to-SSH ≈ 2–3 min). Other images usually download cold.
--disk cannot be resized later; size it for datasets + checkpoints.new_contract value is your instance id — the only instance you own.vastai label instance <id> <name> and use a distinct--alias for each.
bashvastai-connect <instance_id> --alias vast-gpu # blocks until SSH works; then `ssh vast-gpu` / rsync work
Typical wait is 1–3 minutes. On timeout (5 min default) or any stall later (crawling downloads, broken SSH auth): destroy and rent a different offer — re-renting beats debugging. Cheap consumer hosts are a lottery; datacenter GPUs (A100/H100) are usually more reliable.
Normal remote-Linux workflow from here — nothing vast.ai-specific. Reminders, not recipes:
they exist only on the instance. Check with the user if unsure what to keep.
bashvastai destroy instance <instance_id> vastai show instances --raw # verify it's gone; [] means nothing is billing
stop — stopped instances still bill storage and may be unable to restart.new_contract values youreceived). Other instances — even ones with a familiar label or the same image — may belong to another job or agent running in parallel. Report unknown instances to the user; never "clean them up".
explicitly: instance id, $/hr, and how to destroy it.
Other measured skills in the registry, with their headline benchmark lift.