Documentation Index
Fetch the complete documentation index at: https://superradcompanyinc-mintlify-changelog-1777648095.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Snapshots are coming soon and not yet available in the current SDK.
See Snapshots for usage examples and patterns.
Sandbox methods
resume()
Resume the sandbox after a snapshot. The VM continues from exactly where it was paused.
snapshot()
snapshot(): Promise<Snapshot>
Capture the full VM state: memory, CPU registers, filesystem, everything. The sandbox is paused during capture. Call resume() to continue running, or use the snapshot to fork new sandboxes.
Returns
| Type | Description |
|---|
Snapshot | Handle to the captured state |
Snapshot (instance)
restore()
restore(sandboxName: string, opts?: RestoreOptions): Promise<Sandbox>
Fork a new sandbox from this snapshot. The new sandbox starts exactly where the original was - no boot, no setup. Each fork gets its own copy-on-write filesystem.
Parameters
| Name | Type | Description |
|---|
| sandboxName | string | Name for the new sandbox |
| opts? | { memoryMib?: number, cpus?: number } | Optional config overrides |
Returns
| Type | Description |
|---|
Sandbox | The forked sandbox, ready to accept commands |
saveNamed()
saveNamed(name: string): Promise<void>
Persist this snapshot under a name so it survives beyond the lifetime of the original sandbox. Named snapshots can be loaded later with Snapshot.get() to fork workers.
Parameters
| Name | Type | Description |
|---|
| name | string | Snapshot name (e.g. "after-pip-install") |
Snapshot (static)
Snapshot.delete()
static delete(name: string): Promise<void>
Delete a named snapshot from disk.
Parameters
| Name | Type | Description |
|---|
| name | string | Snapshot name |
Snapshot.get()
static get(name: string): Promise<Snapshot>
Load a previously saved named snapshot.
Parameters
| Name | Type | Description |
|---|
| name | string | Snapshot name |
Returns
| Type | Description |
|---|
Snapshot | The loaded snapshot |
Snapshot.list()
static list(): Promise<Array<SnapshotInfo>>
List all saved named snapshots.
Returns
| Type | Description |
|---|
Array<SnapshotInfo> | All named snapshots |