vastai-api

Manage Vast.ai GPU instances and resources via REST API and CLI.

40|7|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill vastai-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vastai-api
Source: https://github.com/rawveg/skillsforge-marketplace/tree/main/vastai-api
Command: npx skills add https://github.com/rawveg/skillsforge-marketplace --skill vastai-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides structured guidance and reference material for using the Vast.ai REST API to manage GPU instances, machines, SSH keys, billing, volumes, and serverless endpoints, helping you automate cloud workflows with Vast.ai.

Core Features & Use Cases

  • API reference guidance: Navigate Vast.ai endpoints for accounts, instances, billing, and data transfer.
  • CLI automation: Examples and commands to script Common Vast.ai tasks.
  • Workflow automation: Build end-to-end pipelines using serverless endpoints and templates.

Quick Start

Trigger this skill by asking for Vast.ai tasks, for example: "Show me how to create a new GPU instance using Vast.ai." The assistant will guide you through the required API calls and CLI commands.

Frequently Asked Questions about vastai-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GPU instance creation and management with Vast.ai?

Automate GPU instance creation, starting, stopping, and destruction using Vast.ai's REST API with authenticated requests. The API accepts instance parameters and returns operation status, enabling programmatic control over your cloud resources through scripts and integrations.

Can I use the Vast.ai API to manage SSH keys and environment variables for instances?

Yes. The Vast.ai REST API provides endpoints to create, update, and delete SSH keys and environment variables across instances. This enables encrypted secrets management and automated configuration deployment for reproducible machine setups.

What's the best way to set up serverless endpoints and templates on Vast.ai?

Deploy serverless endpoints and workergroup templates through the Vast.ai API using template-driven configuration. The API accepts template definitions and returns deployed endpoint identifiers for scaling inference workloads without managing individual instances.

How do I script common Vast.ai tasks using the CLI tool?

Use the vastai CLI tool to script common tasks like instance provisioning, billing queries, and volume management. The CLI integrates with your shell workflows and accepts API key authentication, allowing end-to-end pipeline automation.

Does Vast.ai API support network volumes and data transfer operations?

Yes. The Vast.ai REST API includes endpoints for creating and managing network volumes, initiating data transfers, and querying transfer status. This enables persistent storage attachment and data movement across distributed GPU instances.

What authentication methods does the Vast.ai API require?

The Vast.ai API requires authentication via API keys for REST endpoints and SSH keys for instance access. Both credential types are managed through the API, supporting encrypted secrets storage and role-based account access control.