Skip to content
Français

DaytonaOptions

import type { DaytonaOptions } from "@elie-laloum/outpost/providers/daytona";
  • egressOptional
    EgressPolicy | undefined
    Portable policy enforced by Daytona: deny-all, up to 100 domains or up to 10 IPv4 allowCidrs, not both, and no denyCidrs. Outpost confirms it before preparing the workspace; a refusal fails with code provider and deletes the sandbox (it needs a Tier 3 or 4 account with WRITE_SANDBOXES).
  • connectionOptional
    DaytonaConfig | undefined
    Settings passed to the Daytona client constructor, such as the API key and URL.
  • createOptional
    CreateSandboxFromImageParams | CreateSandboxFromSnapshotParams | undefined
    Creation parameters passed to the SDK, from an image or a snapshot. Its network fields conflict with egress and otherwise keep Daytona’s semantics without Outpost confirmation; code the image starts on its own can run before acquisition completes.
  • variablesOptional
    Readonly<Record<string, string>> | undefined
    Environment variables set for every command in the sandbox, as literal values. A key the agent also declares fails with code configuration.
  • rootOptional
    string | undefined
    Repository directory inside the sandbox, default <home>/outpost.
  • retainOptional
    number | undefined
    Bytes of output tail kept per stream, default 65536.
import type {
  CreateSandboxFromImageParams,
  CreateSandboxFromSnapshotParams,
  DaytonaConfig,
} from "@daytona/sdk";

export interface DaytonaOptions {
  readonly egress?: EgressPolicy;
  readonly connection?: DaytonaConfig;
  readonly create?:
    CreateSandboxFromImageParams | CreateSandboxFromSnapshotParams;
  readonly variables?: Variables;
  readonly root?: string;
  readonly retain?: number;
}