Daytona provides secure, elastic sandboxes for running AI-generated code. Sandboxes are created and managed through an API, SDKs and a CLI.

CLIAPI

What your agent can do

  • Sandboxes are isolated runtime environments you can manage programmatically to run code.

    Via API.

  • Daytona provides command-line access to core features for interacting with Daytona Sandboxes

    Via CLI.

Tasks depend on the interface and permissions.

Connection methods

Choose a route that fits your agent.

CLI connection
CLI package
daytona create

Authentication
API key to use for authentication
API connection
API path
https://app.daytona.io/api/sandbox

Authentication
--header 'Authorization: Bearer YOUR_API_KEY'

Documentation & experience

  • 2 of 2 connection paths checked
  • Latest documentation check 13 Oct 2026
View sources and checks
How documentation is checked