vast-ai-cli

star 1

Vast.ai CLI workflows for searching GPU offers, creating and managing instances, handling volumes and data transfer, and troubleshooting authentication or command errors. Use when Codex needs to run or compose vastai/vast.py commands, interpret results, or automate Vast.ai marketplace tasks.

LiorZ By LiorZ schedule Updated 1/18/2026

name: vast-ai-cli description: Vast.ai CLI workflows for searching GPU offers, creating and managing instances, handling volumes and data transfer, and troubleshooting authentication or command errors. Use when Codex needs to run or compose vastai/vast.py commands, interpret results, or automate Vast.ai marketplace tasks.

Vast.ai CLI

Overview

Use this skill to translate user requests into correct Vast.ai CLI commands, explain outputs, and handle common workflows (search, provision, manage, transfer, and cleanup).

Quick Start Workflow

  1. Confirm CLI + auth
  • Prefer vastai if installed; otherwise use python vast.py or ./vast.py from the repo.
  • Ensure an API key is set (vastai set api-key ... or VAST_API_KEY).
  1. Search offers
  • Build a filter string and optional ordering/limit.
  • Use --raw when machine-readable output is needed.
  1. Create or launch an instance
  • Use create instance OFFER_ID ... for a fresh instance.
  • Use launch instance OFFER_ID --template_hash ... when starting from a template.
  1. Operate instances
  • show, start, stop, reboot, destroy as needed.
  • Ask before destructive operations (destroy, delete volumes).
  1. Transfer data
  • Use vastai copy for file transfer; use vastai ssh-url to obtain SSH access.
  1. Clean up
  • Stop or destroy instances and remove unused volumes.

Task Guidance

Search and pricing

  • Compose filters using field operator value (see references for fields/operators).
  • Prefer clear constraints: GPU model, RAM, reliability, cost per hour.
  • Use -o to order results (ascending +, descending -).

Instance creation

  • Always include image + storage requirements.
  • For notebooks or services, include --jupyter or port mappings.
  • When asking for spot/bid pricing, use --bid_price.

Data transfer

  • For large transfers, prefer vastai copy over ad-hoc scp since it uses instance metadata.

Troubleshooting

  • Auth errors: confirm API key and config path.
  • Rate limits: retry or add backoff; avoid rapid tab-completion queries.
  • Missing command: check vastai --help or python vast.py --help.

References

  • Read references/vast-cli.md for command examples, search fields, and global options.
Install via CLI
npx skills add https://github.com/LiorZ/vast-ai-skill --skill vast-ai-cli
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator