Skip to content
中文

Concepts

ConceptIn one line
TemplateThe execution environment an instance boots from, with preinstalled tools and runtimes; bake your dependencies in with a custom template so it starts ready
InstanceAn isolated machine created from a template, with its own files and processes, identified by sandboxID
Ephemeral and persistentYou must pick one at creation: an ephemeral instance ends when it expires, suited to running a task once; a persistent instance can pause and resume, be snapshotted and mount volumes, suited to a long-lived computer. See The two sandbox lifecycles
Time to liveSet at creation with timeout and renewable; at expiry an ephemeral instance ends and a persistent one pauses as configured
NetworkInternet access is allowed by default; you can close outbound traffic and allow only the hosts listed in network.allowOut. See Limits and errors
Egress IPThe source address of the sandbox’s outbound traffic; it belongs to the machine it runs on. It is not fixed by default: it can change when a machine is reclaimed and replaced, resumed after a pause, or recreated. To fix it, pass network.staticEgressIp: true when creating a persistent sandbox, see Fixed egress IP
StorageEach instance has its own file storage; files in an ephemeral instance are not kept after it ends. Declare results to keep with outputs at creation and the platform stores them in File

When to use it

Throwaway machines your product creates through the API; not your own computer.

Use it when

  • An app must run code in isolation, or needs a template, fixed IP or cloud phone.

Not for, use instead

  • Your own scratch work: use your computer → agent
  • Work that runs again → automation

How it behaves

  • Ephemeral or persistent is chosen at creation; default life 5 minutes.

Combines with

  • Keep results in file via outputs.

Entry: praxis.sandbox.* · docs developers/sandbox/concepts/index