Skip to Content

Daytona

Daytona icon
Arcade Optimized

Arcade tools designed for LLMs to interact with Daytona sandboxes

Author:Arcade
Version:0.1.0
Auth:User authorization via the Github auth provider
46tools
46require secrets
PyPI VersionPython VersionsWheel StatusDownloadsLicense

Daytona is a sandbox provider; this Arcade toolkit lets LLMs provision and manage isolated sandboxes, run code/commands, manage sessions, snapshots, and integrate with Git and port previews. It streamlines lifecycle, file I/O, automation, and diagnostics for development workflows.

Capabilities

  • Full sandbox lifecycle and resource/resizing controls with automation (auto-stop/archive/delete).
  • File system and Git operations, plus search/replace and snapshot management.
  • Execute code/commands and persistent sessions with logs, ports, SSH and web previews.
  • Pagination-aware listing, region selection, and metadata/label management for coordination.

OAuth Provider: GitHub Scopes: None

Secrets

  • api_key: DAYTONA_API_KEY (used to authenticate Arcade→Daytona requests; store in env or secret manager).
  • Transient SSH access tokens returned by CreateSshAccess are sensitive; avoid logging.

Available tools(46)

46 of 46
Tool nameDescriptionSecrets
Archive a stopped sandbox to reduce storage costs. The sandbox must be stopped first (use stop_sandbox). Can be started again later, though startup takes longer than from stopped state.
1
Configure auto-stop, auto-archive, and/or auto-delete intervals. Only provided values are updated. WARNING: auto_delete_minutes=0 means immediate deletion upon stop -- use -1 to disable.
1
Create a folder (with parent directories) in the sandbox.
1
Create a new isolated sandbox for code execution. Two creation modes: from a Daytona snapshot or from a Docker image. If neither snapshot nor image is specified, uses the standard base image. Resource params (cpu, memory_gb, disk_gb, gpu) only apply to image-based creation. Returns sandbox name, ID, and status. Ready for run_code / run_command immediately. Note: A ``region`` parameter is deferred -- the Daytona SDK's ``CreateSandboxFromImageParams`` / ``CreateSandboxFromSnapshotParams`` do not currently expose a ``target``/``region`` field.
1
Create a persistent background session for long-running processes. Sessions persist across tool calls -- useful for dev servers, watchers, or multi-step workflows where you need to run commands sequentially.
1
Create a new sandbox snapshot (image template). Snapshots define the base environment for new sandboxes. The image parameter is required -- it specifies the base Docker image. Note: snapshot creation can take several minutes as the image must be built.
1
Create SSH access credentials for the sandbox. Returns connection details including host, port, username, and access token for direct SSH access. Use the token to authenticate SSH connections. SENSITIVE OUTPUT: The returned token grants SSH access to the sandbox. Avoid logging or displaying it in contexts where it could be inadvertently exposed. The token expires after ``expires_in_minutes`` (default 60 min). Set ``expires_in_minutes=0`` to create a non-expiring token (use with caution -- increases blast radius from accidental exposure).
1
Delete a file or empty directory. Set recursive=True to delete non-empty directories.
1
Permanently delete a sandbox and all its contents.
1
Search for files by name pattern (glob). Returns matching file paths. Response includes total count and has_more flag for pagination.
1
Get metadata about a file: size, permissions, modified time, type.
1
Get a preview URL for a web service running in the sandbox. Standard URLs require an auth token in the x-daytona-preview-token header. Signed URLs embed authentication in the URL itself -- useful for sharing.
1
Get detailed information about a sandbox. Returns state, resources, labels, auto-stop/archive settings, and timestamps. Environment variable values whose keys look secret-like (containing token, key, secret, password, auth) are redacted by default. Set include_raw_env_vars=True only when you need the actual values.
1
Get output logs from a command running in a session. Useful for checking output of async commands (servers, builds).
1
Get detailed information about a snapshot. Accepts a snapshot name or ID. Returns full details including state, image, resources, entrypoint, and timestamps.
1
Stage files for the next commit. Accepts file paths or '.' for all changes.
1
List all branches. Indicates which branch is currently checked out.
1
Switch to a branch, tag, or commit. Optionally create a new branch. Default mode (create_new_branch=False): switches to an existing ref. Create mode (create_new_branch=True): creates a new branch named ref and switches to it, optionally from start_point.
1
Clone a Git repository into the sandbox. For GitHub repos, authentication is handled automatically via Arcade's OAuth integration — the user is prompted to authorize once, and the token is managed by Arcade Engine. Consent is one-time; token refresh is automatic. Permission requirements by auth mode: - OAuth Apps mode: the "repo" scope is requested (full repo access). - GitHub Apps mode: the app installation must have "Contents: read" permission (for clone/pull) or "Contents: read & write" (for clone followed by push). For non-GitHub private repos, provide username + PAT as overrides.
1
Commit staged changes. Requires files to be staged first with git_add.
1
Create a new branch and switch to it. Equivalent to git_checkout(ref=branch, create_new_branch=True, start_point=...).
1
Delete a local branch.
1
Get commit history. Returns commit hash, author, date, and message.
1
Pull latest changes from the remote repository. For GitHub repos, authentication is automatic via OAuth. The SDK path is used by default. Shell fallback is used only when an explicit branch is requested. For non-GitHub remotes, credentials must have been provided during git_clone or configured manually in the sandbox.
1
Push local commits to the remote repository. For GitHub repos, authentication is automatic via OAuth. The SDK path is used by default (no token in command args). Shell fallback is used only when force or explicit branch is requested. For non-GitHub remotes, credentials must have been provided during git_clone or configured manually in the sandbox.
1
Page 1 of 2(25 of 46)

Selected tools

No tools selected.

Click "Show all tools" to add tools.

Requirements

Select tools to see requirements

#

Daytona.ArchiveSandbox

Archive a stopped sandbox to reduce storage costs. The sandbox must be stopped first (use stop_sandbox). Can be started again later, though startup takes longer than from stopped state.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonUpdated sandbox info after archiving
#

Daytona.ConfigureSandboxAuto

Configure auto-stop, auto-archive, and/or auto-delete intervals. Only provided values are updated. WARNING: auto_delete_minutes=0 means immediate deletion upon stop -- use -1 to disable.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID
auto_stop_minutesintegerOptionalAuto-stop after N minutes of inactivity. 0 disables auto-stop. Default: unchanged
auto_archive_minutesintegerOptionalAuto-archive after N minutes of being stopped. 0 uses the maximum interval. Default: unchanged
auto_delete_minutesintegerOptionalAuto-delete after N minutes of being stopped. 0 deletes IMMEDIATELY. Use -1 to disable. Default: unchanged

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonUpdated sandbox info
#

Daytona.CreateFolder

Create a folder (with parent directories) in the sandbox.

Parameters

ParameterTypeReq.Description
pathstringRequiredFolder path to create
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
modestringOptionalUnix permission mode (e.g. '755'). Default: '755'

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCreation confirmation
#

Daytona.CreateSandbox

Create a new isolated sandbox for code execution. Two creation modes: from a Daytona snapshot or from a Docker image. If neither snapshot nor image is specified, uses the standard base image. Resource params (cpu, memory_gb, disk_gb, gpu) only apply to image-based creation. Returns sandbox name, ID, and status. Ready for run_code / run_command immediately. Note: A ``region`` parameter is deferred -- the Daytona SDK's ``CreateSandboxFromImageParams`` / ``CreateSandboxFromSnapshotParams`` do not currently expose a ``target``/``region`` field.

Parameters

ParameterTypeReq.Description
namestringOptionalHuman-readable name for the sandbox
languagestringOptionalProgramming language. Default: python
pythontypescriptjavascript
snapshotstringOptionalDaytona snapshot name or ID. Mutually exclusive with image. Default: standard base image
imagestringOptionalDocker image to create from. Mutually exclusive with snapshot
env_varsjsonOptionalEnvironment variables to set in the sandbox. Default: None
auto_stop_minutesintegerOptionalAuto-stop after N minutes of inactivity. 0 disables auto-stop. Default: 15
cpuintegerOptionalvCPUs (1-16). Only for image-based creation (ignored for snapshots). Default: 2
memory_gbintegerOptionalRAM in GB (1-64). Only for image-based creation (ignored for snapshots). Default: 4
disk_gbintegerOptionalDisk in GB (1-200). Only for image-based creation (ignored for snapshots). Default: 20
gpuintegerOptionalGPUs (0-8). Only for image-based creation (ignored for snapshots). Default: 0
labelsjsonOptionalKey-value labels for organization. Default: None
ephemeralbooleanOptionalAuto-delete sandbox when it stops. Default: False

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonThe created sandbox details
#

Daytona.CreateSession

Create a persistent background session for long-running processes. Sessions persist across tool calls -- useful for dev servers, watchers, or multi-step workflows where you need to run commands sequentially.

Parameters

ParameterTypeReq.Description
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
session_idstringOptionalCustom session ID. Auto-generated if omitted

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCreated session details
#

Daytona.CreateSnapshot

Create a new sandbox snapshot (image template). Snapshots define the base environment for new sandboxes. The image parameter is required -- it specifies the base Docker image. Note: snapshot creation can take several minutes as the image must be built.

Parameters

ParameterTypeReq.Description
namestringRequiredName for the snapshot
imagestringRequiredBase Docker image to build from (required)
entrypointarray<string>OptionalEntrypoint command as a list of strings (e.g. ['python', 'app.py']). Default: None
resourcesjsonOptionalDefault resources for sandboxes (keys: cpu, memory, disk, gpu). Default: platform defaults
region_idstringOptionalRegion to build the snapshot in. Default: closest region

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCreated snapshot details
#

Daytona.CreateSshAccess

Create SSH access credentials for the sandbox. Returns connection details including host, port, username, and access token for direct SSH access. Use the token to authenticate SSH connections. SENSITIVE OUTPUT: The returned token grants SSH access to the sandbox. Avoid logging or displaying it in contexts where it could be inadvertently exposed. The token expires after ``expires_in_minutes`` (default 60 min). Set ``expires_in_minutes=0`` to create a non-expiring token (use with caution -- increases blast radius from accidental exposure).

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID
expires_in_minutesintegerOptionalToken validity in minutes. Set to 0 for no expiration. Default: 60

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonSSH connection details
#

Daytona.DeleteFile

Delete a file or empty directory. Set recursive=True to delete non-empty directories.

Parameters

ParameterTypeReq.Description
pathstringRequiredPath to file or directory to delete
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
recursivebooleanOptionalAllow recursive deletion of directories. Must be True to delete non-empty directories. Default: False

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonDeletion confirmation
#

Daytona.DeleteSandbox

Permanently delete a sandbox and all its contents.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID to delete

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonConfirmation of deletion
#

Daytona.FindFiles

Search for files by name pattern (glob). Returns matching file paths. Response includes total count and has_more flag for pagination.

Parameters

ParameterTypeReq.Description
patternstringRequiredGlob pattern to match file names
pathstringOptionalDirectory to search in. Default: sandbox root
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
max_itemsintegerOptionalMaximum results (1-200). Default: 50
offsetintegerOptionalNumber of items to skip for pagination. Default: 0

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonMatching file paths with pagination
#

Daytona.GetFileInfo

Get metadata about a file: size, permissions, modified time, type.

Parameters

ParameterTypeReq.Description
pathstringRequiredFile or directory path
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonFile metadata
#

Daytona.GetPortPreviewUrl

Get a preview URL for a web service running in the sandbox. Standard URLs require an auth token in the x-daytona-preview-token header. Signed URLs embed authentication in the URL itself -- useful for sharing.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID
portintegerRequiredPort number (e.g. 3000, 8080)
signedbooleanOptionalGenerate a signed URL with embedded auth. Default: False
expires_in_secondsintegerOptionalExpiry for signed URLs in seconds. Only used when signed=True. Default: 3600

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonPreview URL details
#

Daytona.GetSandbox

Get detailed information about a sandbox. Returns state, resources, labels, auto-stop/archive settings, and timestamps. Environment variable values whose keys look secret-like (containing token, key, secret, password, auth) are redacted by default. Set include_raw_env_vars=True only when you need the actual values.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID
include_raw_env_varsbooleanOptionalReturn env var values unredacted. Default: False (secret-like values are redacted)

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonDetailed sandbox information
#

Daytona.GetSessionCommandLogs

Get output logs from a command running in a session. Useful for checking output of async commands (servers, builds).

Parameters

ParameterTypeReq.Description
session_idstringRequiredSession ID
command_idstringRequiredCommand ID to get logs for
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCommand logs
#

Daytona.GetSnapshot

Get detailed information about a snapshot. Accepts a snapshot name or ID. Returns full details including state, image, resources, entrypoint, and timestamps.

Parameters

ParameterTypeReq.Description
snapshotstringRequiredSnapshot name or ID

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonDetailed snapshot information
#

Daytona.GitAdd

Stage files for the next commit. Accepts file paths or '.' for all changes.

Parameters

ParameterTypeReq.Description
filesarray<string>RequiredFiles to stage. Use ['.'] for all files
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonStaging confirmation
#

Daytona.GitBranches

List all branches. Indicates which branch is currently checked out.

Parameters

ParameterTypeReq.Description
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonBranch listing with current indicator
#

Daytona.GitCheckout

Switch to a branch, tag, or commit. Optionally create a new branch. Default mode (create_new_branch=False): switches to an existing ref. Create mode (create_new_branch=True): creates a new branch named ref and switches to it, optionally from start_point.

Parameters

ParameterTypeReq.Description
refstringRequiredBranch name, tag, or commit to switch to. When create_new_branch is True, this is the name of the new branch.
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
create_new_branchbooleanOptionalCreate a new branch named by ref and switch to it. Default: False
start_pointstringOptionalBranch/tag/commit to create the new branch from. Only used when create_new_branch is True. Default: HEAD

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCheckout result
#

Daytona.GitClone

Clone a Git repository into the sandbox. For GitHub repos, authentication is handled automatically via Arcade's OAuth integration — the user is prompted to authorize once, and the token is managed by Arcade Engine. Consent is one-time; token refresh is automatic. Permission requirements by auth mode: - OAuth Apps mode: the "repo" scope is requested (full repo access). - GitHub Apps mode: the app installation must have "Contents: read" permission (for clone/pull) or "Contents: read & write" (for clone followed by push). For non-GitHub private repos, provide username + PAT as overrides.

Parameters

ParameterTypeReq.Description
urlstringRequiredRepository URL to clone
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
pathstringOptionalDestination path. Default: derived from repository URL
branchstringOptionalBranch to clone. Default: repository default branch
commit_idstringOptionalSpecific commit SHA to check out after cloning. Default: HEAD of branch
usernamestringOptionalUsername for HTTPS auth (non-GitHub remotes only). Default: None
passwordstringOptionalPAT for HTTPS auth (ignore this parameter for GitHub remotes — GitHub auth is handled automatically by the tool; all other remotes need a username + PAT). Default: None (ignore)

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonClone result with path and branch info
#

Daytona.GitCommit

Commit staged changes. Requires files to be staged first with git_add.

Parameters

ParameterTypeReq.Description
messagestringRequiredCommit message
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
author_namestringOptionalAuthor name. Default: from sandbox git config
author_emailstringOptionalAuthor email. Default: from sandbox git config

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCommit result with SHA
#

Daytona.GitCreateBranch

Create a new branch and switch to it. Equivalent to git_checkout(ref=branch, create_new_branch=True, start_point=...).

Parameters

ParameterTypeReq.Description
branchstringRequiredName for the new branch
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
start_pointstringOptionalBranch/commit to branch from. Default: HEAD

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonBranch creation result
#

Daytona.GitDeleteBranch

Delete a local branch.

Parameters

ParameterTypeReq.Description
branchstringRequiredBranch name to delete
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
forcebooleanOptionalForce delete unmerged branch. Default: False

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonDeletion confirmation
#

Daytona.GitLog

Get commit history. Returns commit hash, author, date, and message.

Parameters

ParameterTypeReq.Description
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
max_countintegerOptionalMaximum number of commits. Default: 20
branchstringOptionalBranch to show log for. Default: current

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCommit history
#

Daytona.GitPull

Pull latest changes from the remote repository. For GitHub repos, authentication is automatic via OAuth. The SDK path is used by default. Shell fallback is used only when an explicit branch is requested. For non-GitHub remotes, credentials must have been provided during git_clone or configured manually in the sandbox.

Parameters

ParameterTypeReq.Description
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
branchstringOptionalBranch to pull. Default: current tracking branch

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonPull result
#

Daytona.GitPush

Push local commits to the remote repository. For GitHub repos, authentication is automatic via OAuth. The SDK path is used by default (no token in command args). Shell fallback is used only when force or explicit branch is requested. For non-GitHub remotes, credentials must have been provided during git_clone or configured manually in the sandbox.

Parameters

ParameterTypeReq.Description
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
branchstringOptionalBranch to push. Default: current branch
forcebooleanOptionalForce push (overwrites remote history -- use with caution). Default: False

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonPush result
#

Daytona.GitStatus

Get repository status: branch, staged/modified/untracked files, ahead/behind counts.

Parameters

ParameterTypeReq.Description
pathstringOptionalPath to git repository
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonRepository status
#

Daytona.ListFiles

List files and directories. Returns name, type (file/dir), and size. Response includes total count and has_more flag for pagination.

Parameters

ParameterTypeReq.Description
pathstringOptionalDirectory path relative to sandbox root. Default: sandbox root
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
patternstringOptionalGlob pattern to filter results within the directory
max_itemsintegerOptionalMaximum items to return (1-200). Default: 50
offsetintegerOptionalNumber of items to skip for pagination. Default: 0

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonDirectory listing with pagination
#

Daytona.ListPorts

List active ports in the sandbox. Returns port number, state, and name for each active port. Use this to discover running services before calling get_port_preview_url.

Parameters

ParameterTypeReq.Description
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonList of active ports
#

Daytona.ListRegions

List available regions for sandbox creation. Returns region ID, name, and location (country, city). Useful for choosing where to create sandboxes or snapshots.

Parameters

No parameters required.

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonAvailable regions
#

Daytona.ListSandboxes

List sandboxes with optional filtering. Returns concise summary: name, state, created time, resources. Response includes total count, current page, and total_pages for pagination.

Parameters

ParameterTypeReq.Description
statestringOptionalFilter by sandbox state
startedstoppedarchivederror
labelsjsonOptionalFilter by labels. Only sandboxes matching all key-value pairs are returned. Default: None
pageintegerOptionalPage number (1-indexed). Default: 1
page_sizeintegerOptionalItems per page (1-100). Default: 20

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonPaginated list of sandboxes
#

Daytona.ListSessions

List all active sessions in a sandbox with their status and recent commands. Result set is expected to be small (typically < 10); no pagination.

Parameters

ParameterTypeReq.Description
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonList of active sessions
#

Daytona.ListSnapshots

List available snapshots with their status and creation date. Returns snapshot name, state, image, and resource defaults. Response includes total count, current page, and total_pages for pagination.

Parameters

ParameterTypeReq.Description
pageintegerOptionalPage number (1-indexed). Default: 1
page_sizeintegerOptionalItems per page (1-100). Default: 20

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonPaginated list of snapshots
#

Daytona.MoveFile

Move or rename a file or directory.

Parameters

ParameterTypeReq.Description
sourcestringRequiredSource path
destinationstringRequiredDestination path
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonMove confirmation
#

Daytona.ReadFile

Read file contents from the sandbox. For large files, use start_line and end_line to read specific sections. Omit both to read the entire file. Known limitation: the full file is downloaded before line-range slicing is applied. For very large files this may be slow. The Daytona SDK does not currently expose range/chunk reads.

Parameters

ParameterTypeReq.Description
pathstringRequiredFile path relative to sandbox root
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
start_lineintegerOptionalFirst line to read (1-indexed). Default: None (start of file)
end_lineintegerOptionalLast line to read (1-indexed, inclusive). Default: None (end of file)

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonFile contents with line info
#

Daytona.ReplaceInFiles

Find and replace text across multiple files. Accepts explicit file paths and glob patterns. Glob patterns are expanded in the tool layer before passing concrete paths to the SDK. Returns per-file success/error status and count of files modified.

Parameters

ParameterTypeReq.Description
patternstringRequiredText or regex pattern to find
replacementstringRequiredReplacement text
filesarray<string>RequiredFile paths or glob patterns (e.g. 'src/**/*.py'). Globs are expanded before replacing
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonReplacement results
#

Daytona.ResizeSandbox

Resize sandbox resources. At least one param required. CPU and memory can increase while running; disk changes require a stopped sandbox. Disk can never decrease. GPU cannot be resized -- it is set at creation only.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID
cpuintegerOptionalNew vCPU count (1-16). While running: increase only. While stopped: increase or decrease
memory_gbintegerOptionalNew RAM in GB (1-64). While running: increase only. While stopped: increase or decrease
disk_gbintegerOptionalNew disk in GB (1-200). Can only increase, never decrease. Requires sandbox to be stopped

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonUpdated sandbox info after resizing
#

Daytona.RunCode

Execute code directly in the sandbox. No shell escaping needed -- code is passed directly to the interpreter. The language is determined by the sandbox's configured language at creation time. Returns output, exit code, and any generated charts as metadata. Note: Stateful execution via ``context_id`` is deferred to P1. The SDK supports ``code_interpreter.run_code(context=...)`` but it requires separate integration testing.

Parameters

ParameterTypeReq.Description
codestringRequiredCode to execute
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
timeout_secondsintegerOptionalMax execution time in seconds (1-300). Default: 30

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCode execution results
#

Daytona.RunCommand

Execute a shell command in the sandbox. Use for installing packages, running scripts, or system operations. For direct code execution, prefer run_code.

Parameters

ParameterTypeReq.Description
commandstringRequiredShell command to execute
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
cwdstringOptionalWorking directory relative to sandbox root. Default: sandbox working directory
envjsonOptionalExtra environment variables for this command. Default: None
timeout_secondsintegerOptionalMax execution time in seconds (1-600). Default: 60

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCommand execution results
#

Daytona.RunSessionCommand

Execute a command inside an existing session. For long-running commands (servers, watchers), set async_exec=True and check output later with get_session_command_logs. When async_exec=True the command is queued/running in the background. The response will include ``status`` = "running" and ``exit_code`` will only be present if the backend already reports one. Do NOT assume exit_code=0 means the command succeeded -- it may still be running.

Parameters

ParameterTypeReq.Description
session_idstringRequiredSession ID to execute in
commandstringRequiredCommand to execute
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
async_execbooleanOptionalRun asynchronously (don't wait for completion). Default: False

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonCommand execution results
#

Daytona.SearchContent

Search file contents for a text pattern. Shell-backed using grep. Returns matching files with line numbers (up to 50 matches per file). Use context_lines > 0 to include surrounding lines for each match. Supports basic regex syntax.

Parameters

ParameterTypeReq.Description
querystringRequiredText or regex pattern to search for in file contents (grep regex syntax)
pathstringOptionalDirectory to search in. Default: sandbox root
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
file_patternstringOptionalGlob pattern to limit which files are searched (e.g. '*.py')
context_linesintegerOptionalNumber of lines to show before and after each match (0-5). Default: 0
max_itemsintegerOptionalMaximum matching files to return (1-200). Default: 50
offsetintegerOptionalNumber of items to skip for pagination. Default: 0

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonSearch results with line numbers
#

Daytona.SendSessionInput

Send input to a running interactive command in a session. Useful for commands that prompt for input (e.g., confirmation prompts). A newline is automatically appended to the input.

Parameters

ParameterTypeReq.Description
session_idstringRequiredSession ID
command_idstringRequiredCommand ID to send input to
inputstringRequiredInput text to send (newline appended automatically)
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonInput sent confirmation
#

Daytona.SetSandboxLabels

Replace all labels on a sandbox. Useful for tagging and filtering.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID
labelsjsonRequiredLabels to set (replaces all existing labels)

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonUpdated sandbox info
#

Daytona.StartSandbox

Start a stopped or archived sandbox. Returns updated sandbox info.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonUpdated sandbox info after starting
#

Daytona.StopSandbox

Stop a running sandbox, preserving its state for later restart.

Parameters

ParameterTypeReq.Description
sandboxstringRequiredSandbox name or ID

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonUpdated sandbox info after stopping
#

Daytona.WhoAmI

Get the authenticated user's profile. Returns the user ID, name, and email associated with the current API key. Useful for confirming connectivity and identifying the API key owner.

Parameters

No parameters required.

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonAuthenticated user's profile.
#

Daytona.WriteFile

Write content to a file in the sandbox. Creates the file and parent dirs if needed.

Parameters

ParameterTypeReq.Description
pathstringRequiredFile path relative to sandbox root
contentstringRequiredFile content to write
sandboxstringOptionalSandbox name or ID. Omit to auto-select when only one sandbox exists
create_parentsbooleanOptionalCreate parent directories if needed. Default: True

Requirements

Secrets:DAYTONA_API_KEY

Output

Type:jsonWrite confirmation
Last updated on