Clone N sandboxes from a snapshot in ~10ms each; forks are free [rate class: sandbox_api_rps]
Clone running sandboxes from a snapshot - the cheap path, and how every batch should start. Each fork resumes the snapshot's EXACT state - memory, running processes, disk, warm caches. Forks use copy-on-write. You pay nothing for cloning and only each fork's own RAM-minutes while it lives. from takes any snapshot id: an env baked by create_sandbox_env, a mid-run state captured by snapshot_sandbox, or the snapshot a create_sandbox returned. Fan out with count (up to 256 per call) rather than looping single forks. N rollouts = one baked env, one fork_sandbox(count: N), one array-shaped sandbox_exec across the forks, N deletes. Never rebuild state that already exists in a snapshot - fork it. Forks inherit the snapshot's size AND its network (the response echoes egress); neither is per-fork, so an env baked with egress: "none" has networkless forks forever - bake a new env to change it.
Request
- Base URL: https://autoresearch.sfcompute.com
- URL: https://autoresearch.sfcompute.com/preview/sandboxes/forks
- Auth: HTTP bearer
Query parameters
Act in this workspace (its slug). Omitted: the token's bound workspace, then the organization's default. Never ambient - there is no switch-workspace mutation on this door.
Request body
Response
The capability's JSON result.
Changes
No recorded changes to this operation across all 1 revision of this API.