Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vastai-api

БесплатноБез исполняемых скриптовНе проверен

Vast.ai API Documentation - Affordable GPU Cloud Marketplace

rawvegот rawveg★ 42 звезды на GitHub16 установок в других каталогах

Об этом скилле

Vastai-Api Skill

Comprehensive assistance with the Vast.ai API for managing GPU instances, machine operations, and automating AI/ML workflows. This skill provides access to official documentation for programmatically controlling the Vast.ai platform.

When to Use This Skill

This skill should be triggered when working with:

  • GPU Instance Management: Creating, destroying, starting, stopping, or managing GPU instances
  • Machine Operations: Listing machines for rent, setting pricing, managing maintenance windows
  • SSH & Authentication: Managing SSH keys, API keys, and secure connections to instances
  • Billing & Credits: Viewing invoices, earnings, deposits, or transferring credits
  • Network Volumes: Creating, listing, or managing network storage volumes
  • Serverless Endpoints: Working with Vast.ai serverless workergroups and endpoints
  • Data Transfer: Copying data between instances or cloud services
  • Account Management: Managing subaccounts, environment variables, or team roles
  • CLI Operations: Using the vastai command-line tool
  • API Integration: Building applications that integrate with Vast.ai's REST API

Quick Reference

Creating and Managing Instances

Create a New GPU Instance

# Create instance from an offer
vastai create instance <offer_id> \
  --image pytorch/pytorch:latest \
  --disk 50 \
  --ssh

List Your Active Instances

# Show all instances
vastai show instances

# Show specific instance details
vastai show instance <instance_id>

Manage Instance State

# Stop an instance (pause GPU billing, storage still charged)
vastai stop instance <instance_id>

# Start a stopped instance
vastai start instance <instance_id>

# Reboot instance without losing GPU priority
vastai reboot instance <instance_id>

# Destroy instance permanently (irreversible)
vastai destroy instance <instance_id>

SSH Key Management

Add SSH Key to Account

# Add your public SSH key
vastai create ssh-key "ssh-rsa AAAAB3NzaC1yc2EA... user@host"

# List all SSH keys
vastai show ssh-keys

# Attach SSH key to specific instance
vastai attach ssh <instance_id> <ssh_key>

Search and Filter Offers

Search for GPU Offers

# Search with filters
vastai search offers \
  --gpu_name RTX_4090 \
  --num_gpus 2 \
  --disk_space 100

# Order by price
vastai search offers --order dph_total

Environment Variables (Secrets)

Manage Environment Variables

# Create encrypted environment variable
vastai create env-var MY_API_KEY "secret_value_here"

# List all environment variables
vastai show env-vars

# Update existing variable
vastai update env-var MY_API_KEY "new_secret_value"

# Delete environment variable
vastai delete env-var MY_API_KEY

Billing and Credits

View Billing Information

# Show invoices
vastai show invoices

# Show earnings (for hosts)
vastai show earnings

# Show deposit for specific instance
vastai show deposit <instance_id>

# Transfer credits to another user
vastai transfer credit [email protected] 25.00

Instance Logs

Retrieve Container Logs

# Get last 100 lines of logs
vastai show logs <instance_id> --tail 100

# Filter logs with grep pattern
vastai show logs <instance_id> --filter "error"

# Get daemon system logs
vastai show logs <instance_id> --daemon-logs

Data Transfer Operations

Copy Between Instances

# Copy from one instance to another
vastai copy <src_id> <dst_id> /source/path /destination/path

# Cloud copy using rclone
vastai cloud copy <instance_id> remote:bucket/path /local/path

Machine Management (for Hosts)

List Your Machine for Rent

# List machine with pricing
vastai list machine <machine_id> \
  --price_gpu 0.50 \
  --price_disk 0.10

# Unlist machine (stop renting)
vastai unlist machine <machine_id>

# Schedule maintenance window
vastai schedule maint <machine_id> \
  --sdate "2025-11-01T10:00:00" \
  --duration 3600

Key Concepts

Instance Types

  • On-Demand Instances: Pay-as-you-go GPU instances you create and manage
  • Interruptible Instances: Lower-cost instances that can be reclaimed by hosts
  • Reserved Instances: Pre-paid instances with usage discounts (up to 40%)

Pricing Model

  • GPU Pricing: Charged per hour while instance is running
  • Storage Pricing: Charged for disk space even when instance is stopped
  • Network Transfer: Upload/download bandwidth costs
  • Discounts: Available through prepayment on reserved instances

Instance States

  • starting: Instance is initializing
  • running: Instance is active and billable
  • stopped: Container stopped (storage still billable)
  • exited: Container exited or failed
  • rebooting: In process of restarting
  • recycling: Being destroyed and recreated from fresh image

Authentication

  • API Keys: Used for programmatic access via REST API
  • SSH Keys: For secure
Полный SKILL.md на GitHub

Установить vastai-api в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

plugin.jsonreferences/index.mdreferences/llms-full.mdreferences/llms-txt.mdreferences/llms.md

FAQ

Что делает скилл vastai-api?

Vast.ai API Documentation - Affordable GPU Cloud Marketplace

Как установить скилл vastai-api?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vastai-api запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vastai-api с