Skip to main content

Quickstart Guide

Get your first VoidRun sandbox up and running in minutes. This guide walks you through installation, authentication, and basic operations.

Prerequisites

Before you begin, make sure you have:
  • A VoidRun API key (get one from the VoidRun Dashboard)
  • Node.js 18+ or Python 3.9+ installed (for SDK usage)
  • curl installed (for REST API usage)

Step 1: Install the SDK

Choose your preferred language:

Step 2: Configure Authentication

Set your API key as an environment variable:
You can also pass the API key directly when initializing the SDK client. See the examples below.

Step 3: Create Your First Sandbox

Create an isolated MicroVM environment. The examples use the code system image (Alpine-based, with Python and Node: see System images). You can use max (Debian), docker-lite (lighter Alpine Docker), or docker (heavier Debian Docker) instead when your workload requires them.

Step 4: Execute Commands

Run commands inside your sandbox:

Step 5: Work with Files

Upload, download, and manage files in your sandbox:

Step 6: Run Code with the Interpreter

Execute code in multiple languages using the built-in code interpreter:

Step 7: Manage Sandbox Lifecycle

Control your sandbox state:

Complete Example

Here’s a complete example that demonstrates the full workflow:

What’s Next?

Always clean up sandboxes when you’re done. Idle sandboxes auto-sleep (snapshot on disk) and wake on the next request, but they remain billable for storage until explicitly deleted.
Now that you’ve completed the quickstart, explore these topics:

Examples

Full walkthroughs: interpreter, CI, ETL, background jobs, PTY, file watch, cleanup.

Core Concepts

Learn about sandbox lifecycle, auto-sleep, and wake behavior.

Code Execution

Deep dive into command execution and code interpreter features.

Custom Images

Create and use custom Docker images for your sandboxes.

Networking

Configure internet access and VPN connectivity.