vastai-sdk
DEPRECATED — use 'pip install vastai' instead. This package is a compatibility wrapper that installs vastai.
Decision gist · record as of 2026-08-14
Yes, but with a caveat: install this only if you have existing code that imports from vastai-sdk. For new projects, use the vastai package instead. The deprecation signals this wrapper exists for backward compatibility only, though the underlying vastai package is actively maintained.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires VAST_API_KEY environment variable or explicit api_key parameter; asyncio event loop required for serverless client methods.
- Low install friction with a pure-Python wheel.
- Active maintenance as of 2 days ago, though officially deprecated—users should install vastai instead.
License · maintenance · safety
(unclear)
last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 211 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,218,711 downloads/mo, #2,696 on PyPI
Alternatives
Verify before relying
pip install vastai-sdk
from vastai_sdk import VastAI
vast = VastAI(api_key="YOUR_API_KEY")
vast.search_offers(query='gpu_name=RTX_4090 num_gpus>=4')- Whether the deprecated status affects long-term support or stability guarantees.
- Whether asyncio is required for all serverless client operations or only for specific methods.
- Whether vastai provides identical functionality to vastai-sdk.
What it is and what it does
vastai-sdk is a Python client library for the Vast.ai GPU compute marketplace. It wraps the Vast.ai REST API to let you search available GPU instances, manage your rented compute, and interact with serverless inference endpoints. The package supports both synchronous instance management (searching, starting, stopping instances) and asynchronous serverless client operations for making inference requests.
The package is officially deprecated and has been merged into a unified vastai package; installing vastai-sdk now installs the same underlying package. It remains available as a compatibility wrapper for existing code. The library requires Python 3.9 or later and depends only on the vastai runtime package.
Use it for
- Search and filter GPU compute offers by hardware specs, price, or availability.
- Start, stop, and monitor GPU instances programmatically for batch training or inference workloads.
- Call serverless inference endpoints for LLM completions or other model serving.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with a caveat: install this only if you have existing code that imports from vastai-sdk.
For new projects, use the vastai package instead. The deprecation signals this wrapper exists for backward compatibility only, though the underlying vastai package is actively maintained.
Install
vastai-sdk on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance as of 2 days ago, though officially deprecated—users should install vastai instead.
Requires VAST_API_KEY environment variable or explicit api_key parameter; asyncio event loop required for serverless client methods.
Quickstart
pip install vastai-sdk
from vastai_sdk import VastAI
vast = VastAI(api_key="YOUR_API_KEY")
vast.search_offers(query='gpu_name=RTX_4090 num_gpus>=4')
Verify before relying
- Whether the deprecated status affects long-term support or stability guarantees.
- Whether asyncio is required for all serverless client operations or only for specific methods.
- Whether vastai provides identical functionality to vastai-sdk.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagevastai |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,218,711 / month, #2,696 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9 |
Evidence: vastai_sdk-1.5.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “vast.ai python sdk”
- vastai-sdkProvides Python bindings to the Vast.ai API for searching GPU compute…
- vastaiProvides a CLI and Python SDK for managing GPU compute resources on…
- ringcentralPython SDK for accessing RingCentral's cloud communications platform,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also vastai · azure-ai-inference · runpod · mistralai · google-cloud · modal · py3nvml · abstract-hugpy-dev · lithops · fastapi-cloud-cli