Skip to main content
For CLI setup and authentication, see CLI Quickstart.

Create a sandbox

With nothing specified you get the default reservation of 0.125 vCPU / 128 MiB. Use exact resources when you need a different allocation:
The response includes: The TypeScript SDK adds camelCase aliases (milliCpu, memMb, createdAt) alongside the raw API fields, so either spelling works.

Run a command

A string command runs through /bin/sh -c, so pipes and && work. Pass an array instead to execute a program directly without a shell:
A non-zero exit code is returned, not thrown. Check exitCode yourself — only transport and API failures raise RunCloudError. Exec requires the sandbox to be running; a paused sandbox returns 409.

List and inspect

You only ever see sandboxes owned by an organization you belong to.

Destroy

Billing stops when the sandbox is destroyed. Wrap your work in try/finally so a thrown error still tears the sandbox down:

Retry-safe creates

If your job runner might retry a create, pass an idempotency key. A repeat with the same key returns the original sandbox instead of spawning — and billing — a second one.

Errors