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
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.createbriefly pauses a running source, creates a paused fork with its own id, then resumes the source. An already-paused source stays paused.snapshot.listreturns all paused sandboxes.snapshot.deletedestroys 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/sandboxhandle for provider-specific disks, networks, and bandwidth controls. Pause/resume and snapshots are also exposed on the unified surface.timeoutis informational only — it is reported bygetInfo()but does not enforce an execution limit.
Last updated
Was this helpful?