spawn/vastai
A 8220bf1a0d
feat: Add vastai/interpreter.sh (#162)
Implement Open Interpreter deployment on Vast.ai GPU instances.
Sources vastai/lib/common.sh, installs open-interpreter via pip,
configures OpenRouter via OPENAI_BASE_URL override, and launches
interactive session.

Agent: gap-filler

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 22:17:30 -08:00
..
lib feat: Add Vast.ai GPU marketplace as cloud provider with 3 agent scripts (#131) 2026-02-09 20:53:22 -08:00
aider.sh feat: Add Vast.ai GPU marketplace as cloud provider with 3 agent scripts (#131) 2026-02-09 20:53:22 -08:00
amazonq.sh feat: Add vastai/amazonq.sh (#146) 2026-02-09 22:14:46 -08:00
claude.sh feat: Add Vast.ai GPU marketplace as cloud provider with 3 agent scripts (#131) 2026-02-09 20:53:22 -08:00
cline.sh feat: Add vastai/cline.sh (#154) 2026-02-09 22:15:51 -08:00
codex.sh feat: Add Vast.ai GPU marketplace as cloud provider with 3 agent scripts (#131) 2026-02-09 20:53:22 -08:00
gemini.sh feat: Add vastai/gemini.sh (#139) 2026-02-09 22:13:39 -08:00
goose.sh feat: Add vastai/goose.sh (#156) 2026-02-09 22:16:38 -08:00
gptme.sh feat: Add vastai/gptme.sh (#159) 2026-02-09 22:16:42 -08:00
interpreter.sh feat: Add vastai/interpreter.sh (#162) 2026-02-09 22:17:30 -08:00
kilocode.sh feat: Add vastai/kilocode.sh (#155) 2026-02-09 22:15:46 -08:00
nanoclaw.sh feat: Add vastai/nanoclaw.sh (#150) 2026-02-09 22:14:51 -08:00
openclaw.sh feat: Add vastai/openclaw.sh (#140) 2026-02-09 22:13:55 -08:00
opencode.sh feat: Add vastai/opencode.sh (#141) 2026-02-09 22:13:48 -08:00
plandex.sh feat: Add vastai/plandex.sh (#149) 2026-02-09 22:14:55 -08:00
README.md feat: Add Vast.ai GPU marketplace as cloud provider with 3 agent scripts (#131) 2026-02-09 20:53:22 -08:00

Vast.ai

Vast.ai GPU marketplace via CLI. Vast.ai

Prerequisites

  1. A Vast.ai account with API key from Account Settings
  2. Python 3 with pip (for installing the vastai CLI)

Agents

Claude Code

bash <(curl -fsSL https://openrouter.ai/lab/spawn/vastai/claude.sh)

Aider

bash <(curl -fsSL https://openrouter.ai/lab/spawn/vastai/aider.sh)

Codex CLI

bash <(curl -fsSL https://openrouter.ai/lab/spawn/vastai/codex.sh)

Non-Interactive Mode

VASTAI_SERVER_NAME=dev-gpu \
VASTAI_API_KEY=your-api-key \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
  bash <(curl -fsSL https://openrouter.ai/lab/spawn/vastai/claude.sh)

Environment Variables

Variable Description Default
VASTAI_API_KEY Vast.ai API key (prompted)
VASTAI_SERVER_NAME Instance label (prompted)
VASTAI_GPU_TYPE GPU type to search for RTX_4090
VASTAI_DISK_GB Disk size in GB 40
VASTAI_IMAGE Docker image nvidia/cuda:12.1.0-devel-ubuntu22.04
OPENROUTER_API_KEY OpenRouter API key (prompted via OAuth)

Notes

  • Vast.ai is a GPU marketplace -- instances come with NVIDIA GPUs and CUDA pre-installed
  • The vastai CLI is installed automatically if not present (pip install vastai)
  • Instances are Docker containers; base tools are installed automatically on first run
  • SSH access is via dynamic port mapping (non-standard ports)
  • Pricing is per-hour, varies by GPU type and availability