Overview
Daytona is a secure and elastic infrastructure runtime for executing AI-generated code and running agent workflows. Its sandboxes are fully isolated, composable computers, each with its own kernel, filesystem, network stack, and allocated vCPU, RAM, and disk.
Sandboxes are the core of the platform. They start in under 90ms, run code in Python, TypeScript, and JavaScript, and are built on OCI/Docker compatibility for predictable environments. Stateful snapshots let agents keep their work across sessions, which makes Daytona a reliable foundation for long-running agent setups.
Agents and developers drive sandboxes programmatically through Daytona's SDKs, REST API, and CLI. You can manage the sandbox lifecycle, work with the filesystem, run processes and code, and configure the runtime with base images, packages, and tooling.
What it does
- Isolated sandboxes that act as full composable computers, each with a dedicated kernel, filesystem, and network stack
- Fast startup, with sandboxes ready to run code in under 90ms
- Stateful snapshots that persist agent work and let operations continue across sessions
- Agent tools for process and code execution, file system operations, computer use, Git operations, and an MCP server
- Human-facing access through a dashboard, web terminal, SSH, VNC, and live preview URLs
- SDKs for Python, TypeScript, Ruby, Go, and Java, plus a REST API and a CLI
Getting started
Create an account at app.daytona.io, generate an API key from the dashboard, then install an SDK and create your first sandbox. The Python example below runs a line of code inside a fresh sandbox.
Install the Python SDK
Install the Daytona SDK with pip. SDKs are also available for TypeScript (npm install @daytona/sdk), Ruby, Go, and Java.
pip install daytonaCreate a sandbox and run code
Configure the client with your API key, create a sandbox, and run code inside it. The response contains the result of the executed code.
from daytona import Daytona, DaytonaConfig
config = DaytonaConfig(api_key="YOUR_API_KEY")
daytona = Daytona(config)
sandbox = daytona.create()
response = sandbox.process.code_run('print("Hello World!")')
print(response.result)Or use the CLI
Prefer the command line? Create a sandbox directly with the Daytona CLI.
daytona createCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Running untrusted, AI-generated code from agents inside a fully isolated sandbox
- Giving autonomous agents a persistent workspace that keeps state across sessions via snapshots
- Building agent tooling that needs filesystem access, process execution, and computer use in a safe environment
- Self-hosting an open-source code execution stack with Docker Compose, or running it as a managed or hybrid service
How Daytona compares
Daytona alongside other open-source gpu & compute clouds tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Daytona | ★ 72.2k | Secure, elastic sandboxes for running AI-generated code |
| Ray | ★ 43.2k | A distributed computing framework that scales Python and ML workloads for training, tuning, data processing, and serving. |
| Prefect | ★ 23.3k | A Python-native workflow orchestration tool for scheduling, running, and monitoring data and ML pipelines. |
| Dagster | ★ 15.8k | A data and ML pipeline orchestrator with a declarative asset model, built-in lineage, and observability. |
| Kubeflow | ★ 15.8k | A Kubernetes toolkit that brings together pipelines, notebooks, and training operators for running ML workflows at scale. |
| E2B | ★ 13k | E2B is open-source infrastructure that runs AI-generated code inside secure, isolated cloud sandboxes, controlled from JavaScript or Python SDKs. |
| OpenSandbox | ★ 12k | OpenSandbox gives AI agents a safe place to run code and commands, with one unified API across Docker and Kubernetes runtimes and SDKs in five languages. |
| SkyPilot | ★ 10.3k | A framework that runs AI jobs across clouds and Kubernetes, automatically finding and provisioning the cheapest available GPUs. |