Bake an env once (boot, warm, snapshot); fork it forever [rate class: sandbox_api_rps]
Bake a sandbox environment ONCE, then fork it forever - the first call of every sandbox workflow and the only place setup cost should ever be paid. Boots a fresh microVM from a curated image, runs your warm command (installs, clones, downloads, cache warming, server startup - everything each run would otherwise repeat), then snapshots the fully initialized machine - memory, running processes, page cache, disk - and returns a snapshot id. Baking bills as ordinary sandbox time, but it happens ONCE: fork_sandbox then resumes that exact post-setup state. Copies are free (copy-on-write). So the shape that wins, for N samples: create_sandbox_env once -> fork_sandbox(count: N) -> one array-shaped sandbox_exec -> delete_sandbox each. N samples never need N bakes or N create_sandbox calls - they need 1 bake and N forks. Sandboxes reach the internet by default, and nothing private: pass egress: "none" for an env whose forks have no network device at all. If the environment you want ALREADY EXISTS as a container image - an RL task image, a framework's official image, a SWE-bench instance - pass it as from_image (digest-pinned) instead of image and skip re-expressing its setup as a warm script; it is converted to a guest root filesystem on first use and cached after that.
Request
- Base URL: https://autoresearch.sfcompute.com
- URL: https://autoresearch.sfcompute.com/preview/sandboxes/envs
- 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.