vastai

Solid

Vast.ai CLI to manage GPU instances, volumes, serverless endpoints, and billing.

AI & Automation 194 stars 84 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
76
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# vastai Manage GPU instances, templates, volumes, serverless endpoints, SSH keys, and billing on Vast.ai. > Command is `vastai` (lowercase). Always use `--raw` for machine-readable JSON output. ## Install ```bash # PyPI (recommended) pip install vastai ``` ## Quick start ```bash vastai set api-key <YOUR_API_KEY> # Authenticate (one-time); Create API Key in account at https://console.vast.ai/manage-keys/ vastai show user # Verify auth + check balance vastai create ssh-key ~/.ssh/id_ed25519.pub # Register SSH key (do BEFORE create) vastai search offers 'gpu_name=RTX_4090 num_gpus=1 verified=true direct_port_count>=1 rentable=true' -o 'dlperf_usd-' # Note the offer ID from the output vastai create instance <OFFER_ID> --image pytorch/pytorch:@vastai-automatic-tag --disk 20 --ssh --direct # Automatically grab appropriate image tag; Response: {"success": true, "new_contract": <INSTANCE_ID>} vastai show instance <INSTANCE_ID> # Poll until actual_status == "running" (see Instance status values below) vastai ssh-url <INSTANCE_ID> # Get SSH connection string vastai copy local:./data/ <INSTANCE_ID>:/workspace/ # Upload files vastai destroy instance <INSTANCE_ID> -y # Clean up (stops all billing; -y skips confirmation) ``` API key: https://console.vast.ai/manage-keys/ ## Global flags Available on every command: ``` --api-key KEY Override stored API key --raw ...

Details

Author
vast-ai
Repository
vast-ai/vast-cli
Created
7 years ago
Last Updated
yesterday
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

vastai-sdk

Vast.ai Python SDK — high-level API for GPU instances, volumes, serverless endpoints, and billing.

194 Updated yesterday
vast-ai
AI & Automation Solid

vastai-install-auth

Install and configure Vast.ai CLI and REST API authentication. Use when setting up a new Vast.ai integration, configuring API keys, or initializing Vast.ai GPU cloud access in your project. Trigger with phrases like "install vastai", "setup vastai", "vastai auth", "configure vastai API key", "vastai gpu setup".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vast-gpu

Rent, manage, and destroy GPU instances on vast.ai. Use when user says "rent gpu", "vast.ai", "rent a server", "cloud gpu", or needs on-demand GPU without owning hardware.

11,051 Updated today
wanshuiyin
AI & Automation Solid

vastai-common-errors

Diagnose and fix Vast.ai common errors and exceptions. Use when encountering Vast.ai errors, debugging failed instances, or troubleshooting GPU rental issues. Trigger with phrases like "vastai error", "fix vastai", "vastai not working", "debug vastai", "vastai instance failed".

2,266 Updated today
jeremylongshore
AI & Automation Solid

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".

2,266 Updated today
jeremylongshore