> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zap.wzrd.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Daytona

> Container sandboxes with snapshots and HTTPS preview links.

<img src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/daytona.png?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=5295f02aad34d160325994188b85ff06" alt="Daytona" style={{ height: "32px", width: "auto" }} noZoom width="128" height="128" data-path="images/logos/daytona.png" />

First-party adapter over Daytona container sandboxes (`sandbox.daytona` plugin).

* Isolation: `container`.
* Lifecycle: create → run → `stop()`/`start()` keep the filesystem; `snapshot(name)` produces a reusable image.
* Ports: `getPreviewLink(port)` returns an HTTPS preview URL plus an access token. The token is server-side only and never logged — the adapter logs only the sandbox id and port.
* Pinned SDK: `@daytonaio/sdk@0.27.0`.

```ts theme={null}
import { createDaytonaProvider } from "@wzrdtech/zap-sandbox/adapters/daytona";

const provider = createDaytonaProvider({
  apiKey, // DAYTONA_API_KEY — injected by the composition, never process.env
  createSandbox: wireDaytonaSdk(apiKey),
});
```

`zap doctor` reports `first-party`; `ok: false` without an API key. Live conformance tests are opt-in (`RUN_HOSTED_SANDBOX_TESTS=1` + `DAYTONA_API_KEY`).
