Skip to content
Use cases

Agents that work for hours, and pause when nobody's using them.

Leave a build, a crawl or an agent running in a sandbox. It pauses with its memory when it goes idle and wakes on the next request, so nothing restarts from scratch.

Pause with memory, wake on use

An idle sandbox stops with its memory, so compute isn't billed. The next API call or request to one of its hosted URLs wakes it with its processes still running.

Docs

Detach and reattach

Start a command in the background, check its status, and follow its live output from any offset. It survives a stop and resume.

Docs

A deadline you set

Auto-stop defaults to an hour. Set any TTL up to 30 days, extend it while it runs, or turn it off.

Docs

Every command on the record

Commands run through the API are kept with their output for 90 days, readable even while the sandbox is stopped.

Docs

Run it in the background

id=$(sbx new --ttl 86400 --idle 60 --json | jq -r 'select(.event=="ready") | .id')
pid=$(sbx exec "$id" --detach "./crawl.sh" | jq -r .processId)

sbx exec "$id" --status "$pid"   # running? last lines of output
sbx exec "$id" --attach "$pid"   # follow it live

More use cases