---
url: 'https://adk.nht.io/api/@nhtio/adk/batteries/sandbox/functions/createSandbox.md'
---

# Function: createSandbox()

```ts
function createSandbox(options: CreateSandboxOptions): Promise<SandboxHandle>;
```

Defined in: [src/batteries/sandbox/manager.ts:207](https://github.com/NHTIO/ADK/blob/v1.20260824.1/src/src/batteries/sandbox/manager.ts#L207)

Admit one process-global sandbox. Drift is detection, not prevention: SRT consults its
proxies per request, so a widening can affect an already-spawned child for its lifetime.

## Parameters

| Parameter | Type                                                            |
| --------- | --------------------------------------------------------------- |
| `options` | [`CreateSandboxOptions`](../interfaces/CreateSandboxOptions.md) |

## Returns

`Promise`<[`SandboxHandle`](../interfaces/SandboxHandle.md)>
