Skip to content

Latest commit

 

History

History
110 lines (84 loc) · 6.22 KB

File metadata and controls

110 lines (84 loc) · 6.22 KB
layout default
title Daytona Tutorial
nav_order 159
has_children true
format_version v2

Daytona Tutorial: Secure Sandbox Infrastructure for AI-Generated Code

Learn how to use daytonaio/daytona to run AI-generated code in isolated sandboxes, integrate coding agents through MCP, and operate sandbox infrastructure with stronger security and resource controls.

GitHub Repo License Latest Release

Why This Track Matters

Daytona is one of the most visible open-source platforms for securely executing AI-generated code in isolated runtime environments. It sits at the intersection of coding agents, sandbox security, and programmable infrastructure.

This track focuses on:

  • creating and managing sandboxes with SDK, CLI, and API workflows
  • running code, file operations, git workflows, and preview links safely
  • integrating Daytona with coding-agent hosts through MCP
  • operating quotas, network controls, and deployment models with better guardrails

Current Snapshot (auto-updated)

Mental Model

flowchart LR
    A[Agent or app request] --> B[Create sandbox]
    B --> C[Execute code and commands]
    C --> D[Operate files git and previews]
    D --> E[Integrate via MCP CLI API]
    E --> F[Enforce limits network and governance]
Loading

Chapter Guide

Chapter Key Question Outcome
01 - Getting Started How do I run the first sandbox quickly? Working baseline
02 - Sandbox Lifecycle, Resources, and Regions How should I shape sandbox state and resource usage? Better lifecycle control
03 - Process and Code Execution Patterns How do I execute code reliably across runtimes? Safer execution flows
04 - File, Git, and Preview Workflows How do I manage files, repositories, and app previews in sandboxes? End-to-end developer workflow
05 - MCP Agent Integration and Tooling How do I connect Daytona to coding-agent hosts? Practical MCP integration
06 - Configuration, API, and Deployment Models How should config and deployment differ between hosted and OSS modes? Cleaner environment strategy
07 - Limits, Network Controls, and Security How do I govern resource and network risk? Stronger policy controls
08 - Production Operations and Contribution How do teams run and evolve Daytona-based platforms over time? Long-term operations playbook

What You Will Learn

  • how to design sandbox-first execution workflows for coding agents
  • how to combine SDK, CLI, API, and MCP surfaces without drift
  • how to apply resource, rate, and network controls as usage scales
  • how to operate and contribute to Daytona with clearer production discipline

Source References

Related Tutorials


Start with Chapter 1: Getting Started.

Navigation & Backlinks

Full Chapter Map

  1. Chapter 1: Getting Started
  2. Chapter 2: Sandbox Lifecycle, Resources, and Regions
  3. Chapter 3: Process and Code Execution Patterns
  4. Chapter 4: File, Git, and Preview Workflows
  5. Chapter 5: MCP Agent Integration and Tooling
  6. Chapter 6: Configuration, API, and Deployment Models
  7. Chapter 7: Limits, Network Controls, and Security
  8. Chapter 8: Production Operations and Contribution

Generated by AI Codebase Knowledge Builder