For the complete documentation index, see llms.txt. This page is also available as Markdown.
Benchmarked

CreateOS

CreateOS provider for ComputeSDK — NodeOps VM sandboxes with pause/resume/fork snapshots. A thin adapter over the official @nodeops-createos/sandbox package.

Lifecycle

pause()/resume() preserve memory and processes. Snapshots are separate paused VM forks, preserving the rootfs and memory. Capture briefly pauses a running source, makes a start_paused fork, then resumes the source; an already-paused source stays paused. The snapshot id differs from the source id. Restore with snapshotId and delete the paused fork when finished.

Installation & Setup

Add your CreateOS credentials to a .env file:

Usage

Configuration Options

Supported Operations

Method
Supported
Notes

create

✅

Sizes the VM from a fixed shape catalog; maps cpus/memoryMb onto the nearest shape. A snapshotId forks a paused sandbox into a fresh one.

getById

✅

Returns null on a genuine 404; other errors propagate.

list

✅

Lists up to 100 sandboxes.

destroy

✅

Idempotent — a 404 is treated as already gone.

runCommand

✅

Runs via sh -c; per-command cwd/env/background are synthesised into an inline script.

getInfo

✅

Refreshes the handle from the control plane.

getUrl

✅

Returns a preview URL via sandbox.previewUrl(port) (defaults to https).

filesystem

✅

readFile/writeFile use the native file upload/download API; other ops use shell commands.

snapshot

✅

See notes below.

Snapshots

CreateOS snapshots are separate paused sandbox forks:

  • snapshot.create briefly pauses a running source, creates a paused fork with its own id, then resumes the source. An already-paused source stays paused.

  • snapshot.list returns all paused sandboxes.

  • snapshot.delete destroys the paused sandbox.

  • create({ snapshotId }) forks the paused bundle into a fresh running sandbox.

Notes

  • Requires Node.js >= 22.

  • getInstance() returns the native @nodeops-createos/sandbox handle for provider-specific disks, networks, and bandwidth controls. Pause/resume and snapshots are also exposed on the unified surface.

  • timeout is informational only — it is reported by getInfo() but does not enforce an execution limit.

Last updated

Was this helpful?