Skip to main content

Examples

You use these guides when you already know how to authenticate and want copy-adaptable patterns for real products. Each example lives on its own page so you can follow it end to end without scrolling through unrelated scenarios.

What you need first

Before you run the code on any example page, you complete this checklist:
  1. You create an API key in the dashboard (or your operator issues one).
  2. You set VR_API_KEY in your environment.
  3. On the hosted platform you rely on the SDK default API host (same as OpenAPI servers). For self-hosted deployments you set VR_API_URL / API_URL or baseUrl / base_url=: see Self-hosted deployments.
  4. You install @voidrun/sdk or voidrun as described in the Quickstart. For Cursor and MCP instead of SDK code, follow VoidRun MCP.
On the hosted VoidRun platform, valid system images are code, docker-lite, max, and docker (see System images). You confirm names and versions with GET /images or the dashboard. Self-hosted deployments may differ.

How this tab is organized

Each row below links to a standalone guide. You open the guide that matches your goal; you do not need to read the others first.

Where to go next

You deepen any pattern with the conceptual pages under the Docs tab: especially Code execution, File system, Lifecycle, and the TypeScript / Python SDK pages. You find every HTTP path in the API Reference tab.