# dome compute (/docs/cli/build/compute)

`dome compute` manages the sandbox connections where [managed agents](/build/agents/managed) run. Compute is in [public preview](/manage/public-preview). For runtime behavior, provider validation, and gateway governance, read the [compute concept](/concepts/agents/compute).

Use the provider catalog before creating a connection. It shows only the providers available in the active workspace and returns the exact fields and setup values that the provider expects.

| Command                                     | Purpose                            |
| ------------------------------------------- | ---------------------------------- |
| [List providers](#list-providers)           | `dome compute providers`           |
| [Create a connection](#create-a-connection) | `dome compute create`              |
| [List connections](#list-connections)       | `dome compute list`                |
| [Get a connection](#get-a-connection)       | `dome compute get [name-or-id]`    |
| [Update a connection](#update-a-connection) | `dome compute update [name-or-id]` |
| [Check AWS Nitro](#check-aws-nitro)         | `dome compute check [name-or-id]`  |
| [View usage](#view-usage)                   | `dome compute usage [name-or-id]`  |
| [Delete a connection](#delete-a-connection) | `dome compute delete [name-or-id]` |

## List providers [#list-providers]

```bash
dome compute providers
```

List every compute provider available in the workspace, its required settings and credentials, and any provider-specific setup values. This command has no command-specific flags.

The output can include the workspace-specific AWS Nitro external ID, IAM trust policy, Kubernetes role, admission rule, and egress CIDRs. Treat those values as configuration for this workspace only. Do not copy them between workspaces.

## Create a connection [#create-a-connection]

```bash
dome compute create \
  --name e2b-production \
  --provider e2b \
  --credential api_key="$E2B_API_KEY"
```

Create a sandbox connection. `--setting` and `--credential` can be repeated. Credentials are write-only and are never printed or returned after creation.

| Flag           | Type        | Required           | Description                                                                                       |
| -------------- | ----------- | ------------------ | ------------------------------------------------------------------------------------------------- |
| `--name`       | string      | Yes                | Unique compute connection name in the workspace.                                                  |
| `--provider`   | string      | Yes                | Provider ID from `dome compute providers`, such as `tensorlake`, `e2b`, `vercel`, or `aws-nitro`. |
| `--kind`       | string      | No                 | Sandbox kind. The only supported value is `sandbox`.                                              |
| `--setting`    | `key=value` | Provider-dependent | Repeat for each required provider setting.                                                        |
| `--credential` | `key=value` | Provider-dependent | Repeat for each required write-only provider credential.                                          |

For AWS Nitro, settings have no credentials:

```bash
dome compute create \
  --name aws-production \
  --provider aws-nitro \
  --setting region=us-east-1 \
  --setting cluster_name={{EKS_CLUSTER_NAME}} \
  --setting namespace=dome-sandboxes \
  --setting role_arn={{ROLE_ARN}}
```

Use the [AWS Nitro guide](/build/compute/aws-nitro) before creating this connection.

## List connections [#list-connections]

```bash
dome compute list --page-size 100
```

List compute connections, including the built-in Dome connection when it exists. The built-in connection is the default for managed agents without an explicit assignment.

| Flag          | Type | Description                            |
| ------------- | ---- | -------------------------------------- |
| `--page-size` | int  | Maximum results to return in one page. |

## Get a connection [#get-a-connection]

```bash
dome compute get e2b-production
```

Show a connection by name or ID, including provider settings and AWS Nitro setup-check state when applicable. Stored credentials are never returned.

## Update a connection [#update-a-connection]

```bash
dome compute update e2b-production --name e2b-primary
```

Rename a connection, replace its settings, or replace its credentials. The provider and sandbox kind cannot change.

| Flag           | Type        | Description                                                                                                |
| -------------- | ----------- | ---------------------------------------------------------------------------------------------------------- |
| `--name`       | string      | New connection name.                                                                                       |
| `--setting`    | `key=value` | Repeat all provider settings to replace the entire settings object. Omit to preserve it.                   |
| `--credential` | `key=value` | Repeat the complete credential set to replace it. Partial sets are rejected. Omit to preserve credentials. |

Updating AWS Nitro provider settings requests a new setup check. Renaming the connection alone does not.

## Check AWS Nitro [#check-aws-nitro]

```bash
dome compute check aws-production --wait --timeout 3m
```

Request an asynchronous AWS Nitro setup check. It verifies the IAM trust and external ID, cluster access, namespace RBAC, admission rule, and sandbox runtime. This command applies only to AWS Nitro connections.

| Flag        | Type     | Description                                                                 |
| ----------- | -------- | --------------------------------------------------------------------------- |
| `--wait`    | bool     | Wait for the check to finish. A failed check returns a nonzero exit status. |
| `--timeout` | duration | Maximum time to wait. The default is three minutes.                         |

Read the [AWS Nitro troubleshooting guide](/build/compute/aws-nitro#troubleshoot-setup-and-runs) when a check fails.

## View usage [#view-usage]

```bash
dome compute usage e2b-production
```

Show how many managed agents use a connection and whether it has in-flight runs. Agent names are included only when you also have `managedagents.view`.

## Delete a connection [#delete-a-connection]

```bash
dome compute delete e2b-production --reassign-to aws-production
```

Delete a non-built-in connection. Managed agents assigned to it move to `--reassign-to`, or to the built-in Dome connection when the flag is omitted.

| Flag            | Type   | Description                                                            |
| --------------- | ------ | ---------------------------------------------------------------------- |
| `--reassign-to` | string | Name or ID of a usable sandbox connection for attached managed agents. |

Deletion is refused while a sandbox is still running or cleanup remains outstanding. Queued runs use the connection that the agent receives after reassignment. The built-in Dome connection cannot be deleted.

## Assign a connection to an agent [#assign-a-connection-to-an-agent]

Set compute when creating a managed agent, or update it later. New runs use the selected connection while active runs remain on their original connection.

```bash
dome managed-agents create \
  --name nightly-triage \
  --system-prompt "Triage new issues." \
  --model openai-prod \
  --gateway production \
  --compute e2b-production

dome managed-agents update nightly-triage --compute aws-production
```

See [`dome managed-agents`](/cli/build/managed-agents) for the complete managed-agent command reference. Use the [compute MCP tools](/reference/mcp/compute) or [compute API](/api/tag/compute) when you automate this workflow.

## Export compute configuration [#export-compute-configuration]

Use [`dome export`](/cli/manage/export) to include non-built-in compute in a reviewed configuration file. Provider credentials become sensitive variables, never exported values. An external compute assignment is preserved with its managed agent. Built-in Dome compute is omitted because it is the default.

See [Import and export configuration](/manage/import-export) for planning an import and supplying the sensitive variables.

## Permissions [#permissions]

`providers`, `list`, `get`, and `usage` require `compute.view`. `create`, `update`, `check`, and `delete` require `compute.manage`. Deleting a connection that reassigns managed agents also requires `managedagents.manage`.