Daytona sandbox adapter
Run Fabric sessions inside a Daytona-managed development sandbox, so an agent gets a real workspace rather than a bare shell.
pnpm add @fabric-harness/connectors @daytona/sdk
fh add daytonaimport { Daytona } from '@daytona/sdk';
import { daytonaSandbox } from '@fabric-harness/connectors';
const client = new Daytona({ apiKey: process.env.DAYTONA_API_KEY });
const remote = await client.create({ image: 'node:22' });
const job = await init({
sandbox: daytonaSandbox(remote, { cleanup: true }),
});The adapter maps Daytona files, commands, suspend/resume, and optional cleanup to SandboxEnv. Credentials remain on the Daytona client and are not serialized into session history. Use an encodeRef only when another process has a registered decoder capable of reconnecting to the remote sandbox.
See examples/with-daytona for the runnable adapter shape.
The example runs offline without the vendor SDK by default. Live mode requires an explicitly
installed SDK and credentials, and fails rather than switching to a mock if either is missing.
Routine framework installation doesn't include @daytona/sdk; the optional peer and adapter
remain available.
The 2026-10-13 vendor audit found that the SDK's fast-glob dependency brought in unpatched braces
(GHSA-vfj7-8cjw-p6xm), including vendor 0.224.0. Installing the SDK adds that exposure to the
application's graph unless its current resolved dependencies are patched. Audit your
installation rather than treating that historical finding as current evidence.
An offline adapter proof doesn't certify the vendor dependency. The default audit
keeps this advisory enabled.
The repository's live workflow uses the isolated, committed npm lockfile in
.github/fixtures/daytona, disables install scripts, and audits that exact graph
before passing credentials to the SDK. An unresolved high finding stops
certification; a frozen install alone is not a security or compatibility proof.
The pinned 0.195.0 fixture applies an explicit Jaeger propagator 2.10.0
override. This policy does not cover other vendor versions or automatically
propagate to an application's installation.
On 2026-10-27, that exact fixture passed npm ci --ignore-scripts and
npm audit --audit-level=high with zero vulnerabilities. Its ESM entry also loaded
without credentials. Neither check is a live sandbox certification.