vastai-sdk-patterns

Installation
SKILL.md

Vast.ai SDK Patterns

Overview

Production-ready patterns for Vast.ai SDK usage in TypeScript and Python.

Prerequisites

  • Completed vastai-install-auth setup
  • Familiarity with async/await patterns
  • Understanding of error handling best practices

Instructions

Step 1: Implement Singleton Pattern (Recommended)

// src/vastai/client.ts
import { Vast.aiClient } from '@vastai/sdk';

let instance: Vast.aiClient | null = null;
Related skills
Installs
1
GitHub Stars
2.2K
First Seen
Mar 4, 2026