Daytona Documentation
Daytona is an open-source, secure and elastic infrastructure for running AI-generated code.
Daytona provides isolated sandbox environments that you can manage programmatically using the Daytona SDK to run and control code execution.
Daytona SDK is available for Python, TypeScript and Ruby interfaces.
Create an account
Open the Daytona Dashboard ↗ and create your account. Daytona supports account creation using an email and password, or by connecting your Google or GitHub account.
Obtain an API key
Generate an API key from the Daytona Dashboard ↗ to authenticate SDK requests and access Daytona services. Save the API key securely, as it won’t be shown again.
Install the SDK
Install the Daytona SDK to interact with sandboxes from your code using Python, TypeScript or Ruby.
- Python
- TypeScript
- Ruby
Create a Sandbox
Create a Daytona Sandbox to run your code securely in an isolated environment.
- Python
- TypeScript
- Ruby
Write code
Create a program that runs code inside a Daytona Sandbox. The following snippet is an example “Hello World” program that runs securely inside a Daytona Sandbox.
- Python
- TypeScript
- Ruby
main.py
Run code
Run the program to execute your code in a secure and isolated Daytona Sandbox environment.
- Python
- TypeScript
- Tab Title
Summary
By following the steps above, you successfully create a Daytona account, obtain an API key, install the SDK, create a sandbox, write code, and run it securely in a Daytona Sandbox.
Introduction
- Quick Start
Start managing your Sandboxes with Daytona. - Architecture
Learn about the Daytona platform architecture. - Getting Started
Learn about Daytona SDK and how it can help you manage your development environments. - Sandboxes
Learn how to create, manage, and remove Sandboxes using the Daytona SDK.
Sandbox
- Environment
Get started with Daytona SDK and learn how to use and configure your development environments. - Snapshots
Learn how to create, manage and remove Snapshots using the Daytona SDK. - Declarative Builder
Learn how to dynamically build Snapshots from Docker/OCI compatible images using the Daytona SDK. - Volumes
Learn how to manage volumes in your Daytona Sandboxes. - Regions
Region types and custom infrastructure.
Agent Tools
- File System
Learn how to manage files and directories in your Sandboxes using the Daytona SDK. - Git Operations
Learn how to manage Git repositories in your Sandboxes using the Daytona SDK. - Language Server Protocol
Learn how to use Language Server Protocol (LSP) support in your Sandboxes using the Daytona SDK. - Process & Code Execution
Learn about running commands and code in isolated environments using the Daytona SDK. - Pseudo Terminal (PTY)
Learn how to manage PTY sessions in your Sandboxes using the Daytona SDK. - Log Streaming
Learn how to stream logs from your Sandboxes using the Daytona SDK. - MCP Server
- Computer Use