Skip to content

Start typing to search the documentation.

Daytona

Last updated View as Markdown

The Daytona connector adapts an already-initialized Daytona sandbox from @daytona/sdk into Flue’s SandboxFactory interface. Use it when a Node-hosted application needs a provider-managed sandbox with filesystem and shell operations.

Add the connector

pnpm exec flue add daytona

The repository includes a runnable integration shape in examples/hello-world/.flue/connectors/daytona.ts.

Requirements

RequirementValue
Provider package@daytona/sdk
CredentialDAYTONA_API_KEY
Integration shapeYour code creates a Daytona sandbox, then passes it through daytona(sandbox)
Lifecycle ownershipYour application owns creation, retention, and deletion

Typical use

import { Daytona } from '@daytona/sdk';
import { createAgent } from '@flue/runtime';
import { daytona } from '../connectors/daytona';

const client = new Daytona({ apiKey: env.DAYTONA_API_KEY });
const sandbox = await client.create();
const agent = createAgent(() => ({
  model: 'anthropic/claude-sonnet-4-6',
  sandbox: daytona(sandbox),
  cwd: '/workspace',
}));

Delete an ephemeral sandbox in application code after bounded work completes. If a continuing agent instance should reuse a remote workspace, map instance identity to sandbox identity and implement retention and cleanup deliberately.

See Sandboxes and Sandbox Connector API.