Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.87 KB

File metadata and controls

55 lines (39 loc) · 1.87 KB
layout default
title Chapter 1: Getting Started
nav_order 1
parent Daytona Tutorial

Chapter 1: Getting Started

Welcome to Chapter 1: Getting Started. In this part of Daytona Tutorial: Secure Sandbox Infrastructure for AI-Generated Code, you will build an intuitive mental model first, then move into concrete implementation details and practical production tradeoffs.

This chapter sets up the fastest path from account setup to a running sandbox.

Learning Goals

  • install and authenticate the Daytona CLI
  • initialize SDK access using API keys
  • create a first sandbox and run a code snippet
  • establish a repeatable local baseline for later chapters

Fast Start Loop

  1. create an account and API key in the Daytona dashboard
  2. install CLI (brew install daytonaio/cli/daytona on macOS/Linux)
  3. run daytona login and verify access
  4. create a sandbox through SDK or CLI
  5. run a simple code_run or execute_command call to confirm end-to-end execution

Source References

Summary

You now have a working Daytona baseline with authenticated access and first code execution.

Next: Chapter 2: Sandbox Lifecycle, Resources, and Regions

How These Components Connect

flowchart TD
    A[Developer / AI Agent] --> B[Daytona CLI or SDK]
    B --> C{Authentication}
    C -->|API Key| D[Daytona API]
    D --> E[Create Sandbox]
    E --> F[Running Container]
    F --> G[Execute Code]
    G --> H[Return Output]
Loading