Superserve
Superserve provides sandbox infrastructure to run code in isolated cloud environments powered by Firecracker MicroVMs.
Account sizes and lifecycle
CPU/RAM are fixed by the account template. Provider Setup creates the missing Node 22 size templates idempotently; boot them with templateId. The built-in superserve/node-22 supplies 2 vCPU/4 GiB. This adapter has no standard sizeClass mapping (unknown); see Sandbox sizes.
pause()/resume() preserve memory and processes. Snapshots capture rootfs and memory and keep the source. Create-time timeout configures auto-pause, not a command deadline or automatic deletion.
Installation & Setup
Add your Superserve credentials to a .env file:
Usage
Configuration Options
Supported Operations
create
✅
Boots a Firecracker microVM; accepts templateId to boot from a template or snapshotId to boot a snapshot.
getById
✅
Connects to a sandbox by id (issues POST /activate, auto-resumes paused).
list
✅
Read-only — returns InstanceInfo stubs without opening a session.
destroy
✅
Kills the sandbox by id.
runCommand
✅
Supports cwd, env, timeout, background, and live output via onStdout/onStderr.
getInfo
✅
paused and deleted map to stopped, failed to error, otherwise running.
filesystem
✅
readFile/writeFile use the data plane; mkdir/readdir/exists/remove are shell fallbacks.
getUrl
✅
Publishes the port (1024–65535) and returns its preview URL. Published ports are public by default.
snapshot
✅
create, list (per sandbox — pass instanceId), and delete. Snapshots capture memory and disk.
Notes
Templates are supported for listing and deletion.
template.createthrows — creating a template requires a build spec (from+steps), so use@superserve/sdkTemplate.create()directly.snapshot.createconnects to the sandbox first, which resumes it if it is paused.Authentication failures (HTTP 401, missing key, SDK
AuthenticationError) are normalized into a single user-facing message.
Last updated
Was this helpful?