Daytona - Secure Infrastructure for Running AI-Generated Code
Secure and Elastic Infrastructure for Running Your AI-Generated Code.
Fast, Scalable, Stateful Infrastructure for AI Agents.
Lightning-Fast Infrastructure for AI Development
Sub 90ms sandbox creation from code to execution.
pip install daytona
from daytona import Daytona
daytona = Daytona()
sandbox = daytona.create()
response = sandbox.process.exec("echo 'Hello, World!'")
print(response.result)
sandbox.delete()
Programmatic Control. File, Git, LSP, and Execute API.
- Process Execution: Execute code and commands in isolated environments with real-time output streaming.
- File System Operations: Manage sandboxes with full CRUD operations and granular permission controls.
- Git Integration: Native Git operations and secure credential handling.
- Builtin LSP Support: Language server features with multi-language completion and real-time analysis.
from daytona import Daytona, CreateSandboxParams
daytona = Daytona()
params = CreateSandboxParams(
language="python",
)
sandbox = daytona.create(params)
# Run the code securely inside the sandbox
response = sandbox.process.code_run('print("Hello World!")')
if response.exit_code != 0:
print(f"Error:{response.exit_code}{response.result}")
else:
print(response.result)
# Execute an os command in the sandbox
response = sandbox.process.exec('echo "Hello World from exec!"', cwd="/home/daytona", timeout=10)
if response.exit_code != 0:
print(f"Error:{response.exit_code}{response.result}")
else:
print(response.result)
daytona.remove(sandbox)
AI-First Infrastructure. Optimized for LLMs, Agents, and Evals.
- AI Evaluations: Scale evals across parallel environments with reproducible snapshot states.
- Code Interpreter: Run untrusted code in isolated environments with real-time output streaming.
- Coding Agents: Execute AI agents code with RESTful API and state persistence across parallel runs.
- Data Analysis: Process large datasets on clusters with optimized data locality.
- Data Visualisation: Enable your AI agent to run code and instantly render charts, plots, and visual outputs.
- Reinforcement Learning for Agents: Simplify RL training and enable long-horizon planning in dynamic, stateful environments.
- Computer Use: Let Your Agent Use the Computer Like a Human Would.
More Than a Sandbox. The Runtime AI Agents Actually Need.
- Environment Snapshots: Save, Restore, and Resume Any Agent Workflow Instantly.
- Run Near Your Agents: Low-Latency Sandboxes Deployed in Your Region.
- Stateful by Design: Daytona Sandboxes Run Indefinitely — Built for Long-Running Tasks and Persistent Agents.
- Volumes: Let Agents Access Shared Data Across Sandboxes Without Breaking Isolation.
Computer Use Sandbox
Secure virtual desktops (Linux, Windows, macOS) you can control with code. Deploy desktop automation with full programmatic access and isolated environments.
Linux (Ubuntu): Linux desktop with full root access. Ready for automation, development, and testing with complete programmatic control.
macOS: macOS desktop for iOS development and testing. Code-controlled macOS instances perfect for mobile app automation and development.
Windows: Full Windows desktop with programmatic control. Perfect for Windows-specific automation, testing, and development workflows.
Human in the Loop. Full Access for Debugging, Oversight, or Intervention—Without Breaking Autonomy.
- SSH Access: Secure Shell Access to Any Sandbox, Instantly and Safely.
- VS Code Browser: Open Sandboxes in Your Editor With One Click.
- Web Terminal: Full Terminal in the Browser. No Setup. No Latency.
Built to Run Untrusted Code. Protected Secrets. Your Cloud. Certified Security.
- Secrets Stay Out of Sandboxes: Daytona Secrets keep plaintext credentials outside the sandbox and substitute them at network egress.
- Customer-Managed Compute: Sandboxes run on isolated, customer-managed compute in your cloud. Daytona provides the control plane. No shared compute. No cross-tenant risk.
Pricing
- Compute
vCPU: $0.0504/h
Memory: $0.0162/h
Storage: $0.000108/h - Preemptible ($/hour)
- Nvidia B300: $4.08/h
- Nvidia B200: $3.59/h
- AMD MI355X: $3.44/h
- Nvidia H200: $2.61/h
- Nvidia H100: $2.27/h
- Nvidia RTX PRO 6000: $1.74/h
- Nvidia RTX 5090: $0.74/h
- Nvidia RTX 4090: $0.57/h
- On-demand ($/hour)
- Nvidia B300: $6.25/h
- Nvidia B200: $6.25/h
- AMD MI355X: $5.99/h
- Nvidia H200: $4.54/h
- Nvidia H100: $3.95/h
- Nvidia RTX PRO 6000: $3.03/h
- Nvidia RTX 5090: $1.29/h
- Nvidia RTX 4090: $0.99/h
What Builders Say About Daytona.
- "One thing that Daytona does incredibly well is its sandbox provisioning times. When you're provisioning tens of thousands of sandboxes, those milliseconds add up, and no other solution we tested could match their speed."
- "While building our coding agent, we hit limitations around our sandboxing. Daytona jumped in, contributed a working PR within hours, and fully unblocked us. They pulled a Collison."
- "Maintaining a homegrown sandbox solution that powers apps for billions of global users was expensive and time-consuming. We didn’t have the bandwidth to upgrade it because we wanted to move forward with our actual AI products."
- "Provisioning development environments remains to be a pain. Existing solutions focus too much on remote environments somewhere in 'the cloud'. Daytona's approach is much smarter – help the developer in any environment, remote or local."
- "At last, we can standardize development environments to function more like a well-oiled machine than bespoke artworks. This lets devs spin up and shut down environments seamlessly, avoiding configuration drift."
- "The industry has chosen the cloud as the premier place to distribute software, but space for building software is wide open. Daytona is uniquely positioned to own this space and I want to be a part of that revolution."
FAQs
- What is Daytona and how does it enable AI?
- How does Daytona ensure the safe execution of AI-generated code?
- What are AI Sandboxes and how do they enhance agentic AI workflows?
- How can I integrate Daytona into my existing development stack?
- What security measures does Daytona implement for AI development?
- Can I Run My Own Instance of Daytona?