Daytona CLI
$ daytona Official Med RiskDaytona CLI (daytona) manages elastic isolated runtime sandboxes and snapshots for AI-generated code execution. Supports daytona sandbox list, daytona sandbox create --image, and --api-key / env configuration for automated sandbox provisioning.
brew install daytonaio/cli/daytona daytona CLI manages sandbox/snapshot provisioning cleanly; Daytona's TypeScript/Python SDKs and MCP server suit fine-grained programmatic file and code execution.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean daytona sandbox create/list subcommands and --api-key auth, though CLI v0 vs v2 command shifts exist and JSON output is limited.
- Supports
daytona sandbox create --image --auto-stopandDAYTONA_API_KEY
Runs code inside isolated sandboxes with configurable --cpu, --memory, --disk, and --auto-stop bounds.
- Isolated sandbox execution with
--auto-stopand resource limits
Single binary distributed via Homebrew tap and curl/PowerShell installers across macOS, Linux, and Windows.
- Cross-platform binary via
daytonaio/cli/daytona
Fast sub-second cloud sandbox provisioning from snapshots or OCI images.
- Elastic sandbox provisioning with snapshot support
Official daytonaio/daytona platform CLI; note CLI component carries AGPL-3.0 while SDKs are Apache-2.0.
- Official
daytonaio/daytonarepo; AGPL-3.0 CLI license
Official CLI reference at daytona.io/docs/en/cli/, though v0 legacy references still appear online.
- Official docs at daytona.io/docs/en/cli/
Security, Auth & Guardrails
API key stored via daytona login or passed via DAYTONA_API_KEY / --api-key.
CLI is AGPL-3.0 / platform offers free developer credits with paid compute/storage usage tiers.
# Daytona CLI Agent Rules - Always set `--auto-stop <minutes>` when creating sandboxes so idle environments don't linger. - Pass `DAYTONA_API_KEY` via environment variables rather than `--api-key` inline. - Delete ephemeral sandboxes explicitly after verification completes.
Agent-Ready Command Recipes
Safe Read-Only Queries
daytona sandbox list
Displays existing sandboxes, snapshots, and resource state.
Controlled Writes & Previews
daytona sandbox create --image python:3.12 --cpu 2 --memory 4096 --auto-stop 15
Provisions an isolated sandbox with explicit CPU/RAM limits and 15-minute auto-stop.
Strengths for Agents
- + Explicit
--cpu,--memory,--disk, and--auto-stopflags enforce clear sandbox budgets. - + Fast snapshot and OCI image booting for isolated agent testing.
Caveats & Pitfalls
- ! Platform transition from v0 (
daytona-v0) to currentdaytona sandboxarchitecture means older guides may cite stale flags. - ! Core enterprise backend shifted to private repo while CLI keeps AGPL-3.0.