Skip to main content
Daytona logo

Overview

Add Daytona to any ModuleX agent or workflow. Run AI-generated code and shell commands in secure, isolated cloud sandboxes via the Daytona REST API (app.daytona.io) and per-sandbox toolbox API (proxy.app.daytona.io/toolbox). Create and manage sandboxes, execute commands, run Python/JavaScript/TypeScript, transfer files, and clone Git repositories.
Categories: Developer Tools & Infrastructure · Cloud · Automation · Auth: API Key · Actions: 12

Authentication

API Key Authentication

Authenticate using your Daytona API key
1

Step 1

Go to https://app.daytona.io and sign up or log in
2

Step 2

Open the dashboard and navigate to the ‘Keys’ (API Keys) section
3

Step 3

Create a new API key and copy it
4

Step 4

Paste the API key below

Required Credentials

Available Actions

Parameters

string
ID or name of the snapshot to create the sandbox from (uses default if empty)
string
Name for the sandbox (defaults to the sandbox ID)
string
Region where the sandbox will be created (e.g., us, eu)
string
User associated with the sandbox
object
Environment variables to set in the sandbox as key-value pairs
object
Labels to attach to the sandbox as key-value pairs
integer
CPU cores to allocate to the sandbox
integer
Memory to allocate to the sandbox in GB
integer
Disk space to allocate to the sandbox in GB
integer
Auto-stop interval in minutes (0 disables auto-stop)
integer
Auto-archive interval in minutes (0 uses the maximum interval)
integer
Auto-delete interval in minutes (negative disables, 0 deletes immediately on stop)
boolean
Whether the sandbox HTTP preview is publicly accessible

Response

Parameters

string
required
ID of the sandbox to run the code in
string
required
Code to run
string
required
Language of the code: python, javascript, or typescript
object
Environment variables to set for the run as key-value pairs
integer
Timeout in seconds (defaults to 10 seconds)

Response

Parameters

string
required
ID of the sandbox to execute the command in
string
required
Shell command to execute
string
Working directory for the command (defaults to the sandbox working directory)
object
Environment variables to set for the command as key-value pairs
integer
Timeout in seconds (defaults to 10 seconds)

Response

Parameters

string
required
ID of the sandbox to upload the file to
string
required
Destination path in the sandbox (a trailing slash uploads into that directory using the file name)
string
required
Base64-encoded content of the file to upload
string
Optional file name override

Response

Parameters

string
required
ID of the sandbox to download the file from
string
required
Path of the file in the sandbox

Response

Parameters

string
required
ID of the sandbox to list files in
string
Directory path to list (defaults to the sandbox working directory)

Response

Parameters

string
required
ID of the sandbox to clone the repository into
string
required
URL of the Git repository to clone
string
required
Path in the sandbox to clone the repository into
string
Branch to clone (defaults to the default branch)
string
Specific commit to check out after cloning
string
Username for authenticating to private repositories
string
Password or personal access token for private repositories

Response

Parameters

integer
Maximum number of sandboxes to return (1-200)
string
Filter sandboxes by name prefix (case-insensitive)
object
Filter sandboxes by labels as key-value pairs
string
Pagination cursor from a previous response

Response

Parameters

string
required
ID or name of the sandbox

Response

Parameters

string
required
ID or name of the sandbox

Response

Parameters

string
required
ID or name of the sandbox

Response

Parameters

string
required
ID or name of the sandbox

Response

Limits & Quotas

  • Downloads: capped at 100MB; larger files return success=False with an error. Content is returned base64-encoded inline in content_base64.
  • Uploads: provide file bytes via the file_content_base64 parameter.
  • Sandbox IDs: get_sandbox, start_sandbox, stop_sandbox, and delete_sandbox accept either the sandbox ID or its name; all other sandbox-scoped operations require the ID.
  • Error model: non-2xx responses and timeouts are caught and returned as success=False + error rather than raising.

Apify

Browserbase

Railway