packages/ai-sandbox-daytona
Alem TuzlakMerge commit 'a5fce7f95b8b9c6eb57697aa1e3f587bf27483b9' into fix/anthropic-thinking-replay
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
@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
stoppedorarchivedsandbox before returning the handle. - Bridge: it is a remote VM, so bridged tools need the tunnel in local dev.
Documentation#
- Sandbox overview: what a sandbox run is and how the pieces fit
- Providers: every provider side by side, with the capability matrix
- Harnesses and Harness auth: what runs inside, and how it signs in
License#
MIT