Skip to content
Docs
GitHub

Daytona

Run agent code in Daytona cloud sandboxes with command execution, file access, git, workspace downloads, and session-scoped lifecycle controls.

5 min readEdit on GitHub

Applies toFramework (not available)Self-hostedEverruns Demo

ID daytona
Category Sandboxes
Features None
Dependencies session_storage

Run code in cloud sandboxes powered by Daytona. An agent can create several isolated Linux environments per session, each with network access, then execute commands, manage files, clone repositories, and download results. The capability is marked experimental and may change.

  1. In the Daytona Dashboard, open API Keys in your account settings, select Create New API Key, and copy the key.
  2. In Everruns, open Settings → Connections, find Daytona, select Connect, and paste the key.

Once connected, agents with the Daytona capability can use the tools below.

Create and start a new sandbox.

Parameter Type Required Description
title string no Sandbox name
size string no small (1 vCPU, 1 GiB RAM, 3 GiB disk, default), medium (2 vCPU, 4 GiB, 8 GiB), or large (4 vCPU, 8 GiB, 10 GiB)
snapshot string no Daytona snapshot name; overrides size
auto_stop_minutes integer no Minutes of inactivity before auto-stop, 1 to 60 (default 5)
upload_files array no {session_path, sandbox_path} pairs to copy from session storage

Run a shell command in a sandbox and wait for it.

Parameter Type Required Description
sandbox_id string yes Target sandbox
command string yes Shell command to execute
cwd string no Working directory (default: sandbox workspace)
timeout integer no Timeout in milliseconds (default 300000)

Read a file from a sandbox.

Parameter Type Required Description
sandbox_id string yes Target sandbox
path string yes File path
offset integer no Zero-based line offset to start reading from
limit integer no Maximum number of lines to return

Write a file to a sandbox.

Parameter Type Required Description
sandbox_id string yes Target sandbox
path string yes File path
content string yes File content

Download a sandbox directory to session storage.

Parameter Type Required Description
sandbox_id string yes Target sandbox
sandbox_path string no Root path in the sandbox (default: workspace path)
session_path string no Destination in session storage (default: /workspace)

List available Daytona snapshots (names, CPU, memory, and disk specs, state). Use a snapshot name as the snapshot parameter of daytona_create_sandbox. Takes no parameters.

List all sandboxes for the current session. Takes no parameters.

Stop or delete a sandbox.

Parameter Type Required Description
sandbox_id string yes Target sandbox
action string yes stop or delete

Clone a git repository into a sandbox. Uses your connected GitHub credentials for private repositories.

Parameter Type Required Description
sandbox_id string yes Target sandbox
repo_url string yes Repository URL or user/repo shorthand
branch string no Branch to clone (default: the default branch)
path string no Clone destination (default: /home/daytona/<owner>/<repo>)

Configure git credentials in a sandbox so later git push, pull, and fetch commands run through daytona_exec authenticate.

Parameter Type Required Description
sandbox_id string yes Target sandbox

Call any Daytona REST endpoint directly, for operations the dedicated tools do not cover. Only available when the capability config sets enable_api_calling to true. Authentication headers are injected automatically, and the Daytona OpenAPI spec is mounted at /daytona/openapi.yaml.

Parameter Type Required Description
method string yes GET, POST, PUT, PATCH, or DELETE
path string yes Management API path (/sandbox/...) or Toolbox API path (/toolbox/{sandbox_id}/...)
body object or array no JSON request body
{
"enable_api_calling": true
}

enable_api_calling is the only setting, and it defaults to false.

  • daytona_git_clone uses your connected GitHub account, so private repositories clone without extra setup. When no person is in the run, or the person has not connected GitHub, it uses the agent’s GitHub connection.
  • For push, pull, or fetch, call daytona_git_credentials once after creating the sandbox, then run git commands with daytona_exec.
  • Tokens written into the sandbox only reach repository contents: daytona_git_clone’s token covers the cloned repository alone, and daytona_git_credentials covers contents of every repository the connection reaches. Neither can open issues or review pull requests.
  • Repository arguments accept user/repo shorthand instead of full URLs.

Sandboxes auto-stop after 5 minutes of inactivity by default as a safety net. Delete sandboxes when you are done: stopping only pauses a sandbox, and it stays visible in your Daytona dashboard.

All sandbox-scoped tools require a sandbox_id. The exceptions are daytona_create_sandbox, daytona_list_sandboxes, and daytona_list_snapshots.

  • API keys are encrypted at rest (AES-256-GCM envelope encryption).
  • Each sandbox is isolated from other sandboxes and the host.
  • Git credentials are short-lived and scoped to the sandbox.
  • Sandbox state is stored in encrypted session secrets.