mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-05 23:50:48 +00:00
Implement OpenClaw deployment on Vast.ai GPU instances. Sources vastai/lib/common.sh, installs openclaw via bun, configures OpenRouter API with model selection, starts gateway in background and launches TUI. 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> |
||
|---|---|---|
| .. | ||
| lib | ||
| aider.sh | ||
| claude.sh | ||
| codex.sh | ||
| gemini.sh | ||
| openclaw.sh | ||
| opencode.sh | ||
| README.md | ||
Vast.ai
Vast.ai GPU marketplace via CLI. Vast.ai
Prerequisites
- A Vast.ai account with API key from Account Settings
- Python 3 with pip (for installing the
vastaiCLI)
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
vastaiCLI 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