- Use direct sandbox APIs when your application needs fine-grained command, file, PTY, SSH, desktop, or lifecycle control.
- Use Agent Deployments when you want Nullspace to deploy a named job or service from a local project and operate it over time.
Integration Shape
- Create a sandbox from
baseor a custom template. - Pass only the credentials and configuration the agent needs through
envs. - Clone or upload workspace inputs into
/workspace. - Run agent steps with
sandbox.commands,sandbox.files,sandbox.git, or framework-specific tools. - Collect outputs, artifacts, diffs, logs, or preview URLs.
- Hibernate for resumable sandboxes or destroy for one-shot tasks.
When To Use Agent Deployments
Use Agent Deployments when you want Nullspace to deploy a named job or service from your local project, manage runs or service instances, retain backing sandboxes for debugging, and collect logs and outputs through the deployment API. Keep using direct sandbox APIs when your app needs fine-grained control over every sandbox command, upload, download, PTY session, SSH session, desktop interaction, or lifecycle action.Template Strategy
- Use
basefor one-off command and file tasks. - Build a custom template when your agent repeatedly installs the same tools, package managers, browsers, or language runtimes.
- Use start-ready commands for services the agent expects to be available immediately.
Cleanup Strategy
- Destroy short-lived sandboxes with
sandbox.kill()or a context manager. - Use
on_timeout="pause", auto_resume=Truefor per-user workspaces. - Use Fork to test multiple plans from a shared warm setup.