| layout | default |
|---|---|
| title | Chapter 1: Getting Started |
| nav_order | 1 |
| parent | Daytona Tutorial |
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.
- 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
- create an account and API key in the Daytona dashboard
- install CLI (
brew install daytonaio/cli/daytonaon macOS/Linux) - run
daytona loginand verify access - create a sandbox through SDK or CLI
- run a simple
code_runorexecute_commandcall to confirm end-to-end execution
You now have a working Daytona baseline with authenticated access and first code execution.
Next: Chapter 2: Sandbox Lifecycle, Resources, and Regions
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]