Skip to content
Source
Sign inSign up
TanStack/ai

packages/ai-sandbox-daytona

Contents of packages/ai-sandbox-daytona
NameLast commit messageLast commit date
..
src (directory)
tests (directory)
CHANGELOG.md
package.json
README.md
tsconfig.json
vite.config.ts

README.md

TanStack AI

@tanstack/ai-sandbox-daytona

Daytona sandbox provider for TanStack AI

Runs harness adapters inside isolated Daytona cloud sandboxes through the uniform SandboxHandle — a managed remote VM you do not run yourself.

Installation

npm install @tanstack/ai-sandbox-daytona
# or
pnpm add @tanstack/ai-sandbox-daytona
# or
yarn add @tanstack/ai-sandbox-daytona

Usage

import { daytonaSandbox } from '@tanstack/ai-sandbox-daytona'

const daytona = daytonaSandbox({
  apiKey: process.env.DAYTONA_API_KEY,
  snapshot: 'daytona-medium',
  autoStopInterval: 0,
})

Hand the provider to a sandboxed run the same way as any other; see the sandbox docs for the surrounding wiring.

  • Auth / env: needs DAYTONA_API_KEY. Harness credentials go in workspace secrets; Daytona stores each value as an organization Secret and substitutes it on outbound HTTPS requests, so the real value never appears in the create record, the dashboard, or a command string.
  • Snapshot / resume: point-in-time snapshots after setup, and resume starts a stopped or archived sandbox before returning the handle.
  • Bridge: it is a remote VM, so bridged tools need the tunnel in local dev.

Documentation

License

MIT