Skip to content

Agent Sandboxes

Agent Sandboxes run autonomous agents and untrusted code in isolated containers. Sandboxes run on sandbox clusters: compute that you create in your projects and that Nirvana provisions and manages for you.

  1. Create a sandbox cluster in a project and region, choosing the instance type and number of nodes. See Sandbox Clusters.
  2. Create sandboxes on it through the Nirvana API, using any OpenSandbox SDK or plain HTTP. See Connect to a Sandbox Cluster.
  3. Reach services in a sandbox through signed endpoints on the cluster’s gateway. See Access Sandbox Endpoints.

Create, rename, tag and delete sandbox clusters through the API. An organization can run any number of them, within its quotas.

The Nirvana API serves OpenSandbox’s Sandbox Lifecycle API at https://api.nirvanalabs.io/v1/sandboxes. OpenSandbox SDKs for TypeScript, Python, Go, C#, Java and Kotlin work unchanged with the base URL https://api.nirvanalabs.io/v1.

Sandboxes use your Nirvana organization API key, with the same project scoping and permissions as the rest of the platform. There is no separate sandbox key.

Mount persistent volume claims into a sandbox to keep data on block storage. See Persistence & Storage.

Every sandbox is created with secure access. Ports are reached only through signed, expiring endpoints: the cluster’s gateway hostname plus routing headers that the API returns.

Sandbox clusters run on AMD EPYC 9354P CPUs and DDR5 RAM.

  • Create: start a sandbox on a ready sandbox cluster.
  • Get and list: list covers sandboxes on every ready cluster in the projects your key can read.
  • Update metadata and renew expiration.
  • Get endpoint: get a signed endpoint for a port (gateway hostname plus routing headers).
  • Delete: remove the sandbox.

Creating sandboxes from snapshots is not supported yet.

See the API Reference for the full list of endpoints.

  • Long-running agents: agents that work on tasks for hours or days.
  • Isolated execution: running untrusted or experimental code.
  • Development and testing: short-lived sandboxes for quick iteration.
  • Batch processing: running many jobs in parallel.
  1. Create a sandbox cluster.
  2. Connect to it.
  3. Create a sandbox.

Agent Sandboxes is an early release. We welcome your feedback and bug reports to help us improve the product.