# Compute (/docs/concepts/agents/compute)

<PreviewBadge />

Compute selects where a [managed agent](/build/agents/managed) runs. It is a workspace resource that names either built-in Dome compute or an external sandbox provider. Compute does not change the managed agent's identity, model, gateway, triggers, or permissions.

## How compute fits the platform [#how-compute-fits-the-platform]

A managed agent combines configuration that defines what it can do with compute, which selects where each run executes. The same gateway path governs a run regardless of the selected compute.

| Component                              | Role in a managed-agent run                                                                                                    |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [Managed agent](/build/agents/managed) | Provides the identity, system prompt, model, gateway, triggers, and compute assignment.                                        |
| Compute                                | Selects built-in Dome or an external provider sandbox for each new run.                                                        |
| [Gateway](/concepts/gateways)          | Governs every model and tool call with the agent's grants, [rules](/concepts/controls/rules), credentials, quotas, and guards. |
| [Triggers](/build/triggers)            | Starts runs manually, on a schedule, or from signed webhooks. Triggering a run does not override its compute assignment.       |
| [Audit](/concepts/audit)               | Records the run, sandbox lifecycle, provider reference, and configuration changes.                                             |

Compute applies only to managed agents. An [external agent](/build/agents/external) continues to run in the runtime you operate.

## Sandbox lifecycle [#sandbox-lifecycle]

Sandbox compute is ephemeral. Each run attempt starts a fresh sandbox, and Dome removes it when the run ends. A provider sandbox is not reused by a later run, so files and state do not persist between runs.

The lifecycle differs slightly by placement.

| Placement             | What happens                                                                                                                                                                                                     |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Built-in Dome compute | Dome runs the managed-agent work on its built-in compute.                                                                                                                                                        |
| External compute      | Dome starts the managed-agent work in your Tensorlake, E2B, Vercel, or AWS Nitro sandbox environment. Run details expose the provider and **Provider ID** so you can locate the sandbox in the provider console. |

An external compute run can continue in its provider sandbox during a Dome service interruption while Dome reconnects to it. A run on built-in Dome compute can instead end during that interruption. If an external sandbox is no longer available, the run ends with a compute failure.

## Governance stays on the gateway [#governance-stays-on-the-gateway]

Compute changes placement, not governance. The following boundaries remain in effect for every external sandbox run.

| Boundary             | Behavior                                                                                                                           |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Model and tool calls | Continue through the managed agent's gateway, where access grants, rules, credential injection, quotas, guards, and audit apply.   |
| Provider credentials | Are not placed in the external sandbox. AWS Nitro requires no stored cloud credential.                                             |
| Network access       | External sandbox egress is locked to the gateway before managed-agent work starts.                                                 |
| Execution scope      | Compute runs managed-agent work. It does not run customer-supplied code, an Agent SDK, persistent machines, volumes, or snapshots. |

External compute requires a Dome-hosted gateway. A workspace that uses a self-hosted gateway can use built-in Dome compute but cannot assign an external provider to a managed agent.

## Choose and validate a provider [#choose-and-validate-a-provider]

Every workspace with managed agents has built-in Dome compute as the default. You can create an external compute when you need the sandbox to run in an account or cluster you control.

| Provider   | What it connects to     | Validation behavior                                                                                      |
| ---------- | ----------------------- | -------------------------------------------------------------------------------------------------------- |
| Dome       | Dome-managed compute    | Available as the built-in default.                                                                       |
| Tensorlake | Your Tensorlake account | A first run validates the key, provider capacity, egress setup, and plan.                                |
| E2B        | Your E2B account        | A first run validates the key, provider capacity, egress setup, and plan.                                |
| Vercel     | Your Vercel project     | A first run validates the token, project access, provider capacity, egress setup, and plan.              |
| AWS Nitro  | Your Amazon EKS cluster | A setup check validates the required IAM and Kubernetes configuration before you assign production work. |

For Tensorlake, E2B, and Vercel, creating compute stores the credential without calling the provider. Start a small manual run after setup. A rejected key or plan appears as `compute_rejected` in the run outcome.

Compute is in preview. Provider availability varies by organization. Ask an organization owner or administrator to [enable public preview](/manage/public-preview), then use `dome compute providers` to inspect the providers available in your workspace.

## Assign and change compute [#assign-and-change-compute]

A managed agent without an explicit assignment uses built-in Dome compute. When you assign external compute, future runs use it while a run already in progress stays on its original compute.

Deleting external compute moves its managed agents to another usable compute, or to built-in Dome compute by default. Dome refuses deletion while a sandbox remains active or cleanup is outstanding. Suspend the affected managed agents or let their runs finish before trying again.

See [compute](/build/compute) for configuration steps, [AWS Nitro](/build/compute/aws-nitro) for EKS setup, and [Managed agents](/build/agents/managed) for assignment commands.

## Observe and move configuration [#observe-and-move-configuration]

Run details and audit records connect a managed-agent run to its compute placement. The following audit events help investigate configuration and lifecycle behavior.

| Event                      | What it records                                                                       |
| -------------------------- | ------------------------------------------------------------------------------------- |
| `managedagent.run`         | The run's compute placement, provider reference when available, and terminal outcome. |
| `compute.instance.create`  | An attempt to create an external sandbox and any bounded startup failure.             |
| `managedagent.run.requeue` | A retryable attempt returned to the queue.                                            |
| `compute.instance.delete`  | Sandbox cleanup at run completion or later cleanup activity.                          |
| `connection.setup.test`    | The result of an AWS Nitro setup check.                                               |

Non-built-in compute participates in [configuration import and export](/manage/import-export) as `dome_compute`. Provider credentials become sensitive variables and are never exported. An external compute assignment remains with an exported managed agent, while built-in Dome compute is omitted because it is the default.

## Next steps [#next-steps]

* [Configure compute](/build/compute) to create, assign, inspect, and delete compute
* [AWS Nitro setup](/build/compute/aws-nitro) to prepare Amazon EKS
* [Managed agents](/build/agents/managed) to configure agents and inspect runs
* [Compute CLI](/cli/build/compute), [Compute MCP tools](/reference/mcp/compute), or [Compute API](/api/tag/compute) to automate compute
* [Audit event catalog](/reference/events/catalog) to inspect event contracts
* [Import and export configuration](/manage/import-export) to move reviewed compute configuration between scopes