vastai-sdk

Installation
SKILL.md

Vast.ai Python SDK (vastai / vastai_sdk)

The vastai package provides a Python SDK for managing GPU instances, volumes, serverless endpoints, and billing on Vast.ai. The vastai_sdk package is a backward-compatibility shim that re-exports vastai.

Installation

pip install vastai

For serverless and async support:

pip install "vastai[serverless]"

Authentication

The SDK reads the API key from ~/.vast_api_key by default. You can also pass it explicitly:

Related skills
Installs
41
GitHub Stars
191
First Seen
Apr 15, 2026