Daytona

Daytona é uma infraestrutura segura e elástica para executar código gerado por IA. O Daytona oferece sandboxes isolados que sobem em milissegundos, dando aos seus agentes um lugar seguro para executar comandos shell, rodar código, trabalhar com arquivos e clonar repositórios — sem nunca tocar nas suas próprias máquinas.

Por que Daytona?

  • Feito para código gerado por IA: Os sandboxes são runtimes totalmente isolados, para que código não confiável ou gerado possa rodar com segurança, sem risco à sua infraestrutura.
  • Sandboxes rápidos e elásticos: Crie um sandbox em menos de algumas centenas de milissegundos, use-o para uma tarefa ou mantenha-o ativo durante toda a sessão, e deixe os intervalos de auto-stop e auto-delete limparem depois.
  • Toolbox completo: Execute comandos shell, rode Python, JavaScript ou TypeScript com um interpretador de código embutido, transfira arquivos de entrada e saída e clone repositórios Git — tudo por uma única API.
  • Controle programático do ciclo de vida: Crie, liste, inicie, pare e exclua sandboxes sob demanda, com snapshots, regiões, dimensionamento de recursos, variáveis de ambiente e labels.

Usando Daytona no Zoen

A integração Daytona do Zoen conecta seus fluxos de trabalho ao Daytona com uma API key. Doze operações cobrem o ciclo de vida completo do sandbox e o toolbox: criar, listar, obter, iniciar, parar e excluir sandboxes; executar código e comandos dentro deles; fazer upload, download e listar arquivos; e clonar repositórios Git.

Principais benefícios de usar Daytona no Zoen:

  • Interpretador de código seguro para agentes: Deixe um agente escrever Python, JavaScript ou TypeScript e executá-lo em um sandbox isolado, depois use a saída nas etapas seguintes do fluxo de trabalho.
  • Manipulação real de arquivos: Faça upload de arquivos do fluxo diretamente para um sandbox, processe-os com código ou comandos e baixe os resultados como arquivos que outros blocos podem consumir.
  • Automação de repositórios: Clone um repositório em um sandbox, rode installs, builds ou testes e reporte os resultados — perfeito para checagens no estilo CI e monitoramento de saúde do repo.
  • Ciclo de vida consciente de custo: Crie sandboxes sob demanda, pare ou exclua-os quando o trabalho terminar e use intervalos de auto-stop para que sandboxes ociosos nunca aumentem sua conta.

Seja para construir um interpretador de código com IA, validar código gerado antes do deploy, analisar arquivos de dados em um ambiente limpo ou automatizar checagens de repositório, o Daytona no Zoen dá aos seus agentes computação real com isolamento forte. Configure sua API key, escolha uma operação e comece a executar código.

Usage Instructions

Integrate Daytona into your workflow to run AI-generated code in secure, isolated sandboxes. Create and manage sandboxes, execute shell commands, run Python, JavaScript, or TypeScript code, transfer files, and clone Git repositories.

Actions

daytona_create_sandbox

Create a new Daytona sandbox for running AI-generated code in isolation

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
snapshotstringNoID or name of the snapshot to create the sandbox from (uses default if empty)
namestringNoName for the sandbox (defaults to the sandbox ID)
targetstringNoRegion where the sandbox will be created (e.g., us, eu)
userstringNoUser associated with the sandbox
envjsonNoEnvironment variables to set in the sandbox as key-value pairs
labelsjsonNoLabels to attach to the sandbox as key-value pairs
cpunumberNoCPU cores to allocate to the sandbox
memorynumberNoMemory to allocate to the sandbox in GB
disknumberNoDisk space to allocate to the sandbox in GB
autoStopIntervalnumberNoAuto-stop interval in minutes (0 disables auto-stop)
autoArchiveIntervalnumberNoAuto-archive interval in minutes (0 uses the maximum interval)
autoDeleteIntervalnumberNoAuto-delete interval in minutes (negative disables, 0 deletes immediately on stop)
publicbooleanNoWhether the sandbox HTTP preview is publicly accessible

Output

ParameterTypeDescription
sandboxjsonThe created sandbox

daytona_list_sandboxes

List Daytona sandboxes in the organization

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
limitnumberNoMaximum number of sandboxes to return (1-200)
namestringNoFilter sandboxes by name prefix (case-insensitive)
labelsjsonNoFilter sandboxes by labels as key-value pairs
cursorstringNoPagination cursor from a previous response

Output

ParameterTypeDescription
sandboxesarraySandboxes in the organization
nextCursorstringCursor for the next page of results

daytona_get_sandbox

Get details of a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID or name of the sandbox

Output

ParameterTypeDescription
sandboxjsonThe sandbox details

daytona_start_sandbox

Start a stopped Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID or name of the sandbox

Output

ParameterTypeDescription
sandboxjsonThe started sandbox

daytona_stop_sandbox

Stop a running Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID or name of the sandbox

Output

ParameterTypeDescription
sandboxjsonThe stopped sandbox

daytona_delete_sandbox

Delete a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID or name of the sandbox

Output

ParameterTypeDescription
sandboxjsonThe deleted sandbox

daytona_execute_command

Execute a shell command inside a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID of the sandbox to execute the command in
commandstringYesShell command to execute
cwdstringNoWorking directory for the command (defaults to the sandbox working directory)
envjsonNoEnvironment variables to set for the command as key-value pairs
timeoutnumberNoTimeout in seconds (defaults to 10 seconds)

Output

ParameterTypeDescription
exitCodenumberExit code of the command (-1 if missing from the response)
resultstringCombined stdout/stderr output of the command

daytona_run_code

Run Python, JavaScript, or TypeScript code inside a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID of the sandbox to run the code in
codestringYesCode to run
languagestringYesLanguage of the code: python, javascript, or typescript
envjsonNoEnvironment variables to set for the run as key-value pairs
timeoutnumberNoTimeout in seconds (defaults to 10 seconds)

Output

ParameterTypeDescription
exitCodenumberExit code of the code run (-1 if missing from the response)
resultstringCombined stdout/stderr output of the code run
artifactsjsonArtifacts produced by the run (e.g., matplotlib charts)

daytona_upload_file

Upload a file to a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID of the sandbox to upload the file to
destinationPathstringYesDestination path in the sandbox (a trailing slash uploads into that directory using the file name)
filefileNoThe file to upload
fileContentstringNoLegacy: base64 encoded file content
fileNamestringNoOptional file name override

Output

ParameterTypeDescription
uploadedPathstringPath of the uploaded file in the sandbox
namestringName of the uploaded file
sizenumberSize of the uploaded file in bytes

daytona_download_file

Download a file from a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID of the sandbox to download the file from
filePathstringYesPath of the file in the sandbox

Output

ParameterTypeDescription
filefileDownloaded file stored in execution files
namestringName of the downloaded file
mimeTypestringMIME type of the downloaded file
sizenumberSize of the downloaded file in bytes

daytona_list_files

List files in a directory of a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID of the sandbox to list files in
pathstringNoDirectory path to list (defaults to the sandbox working directory)

Output

ParameterTypeDescription
filesarrayFiles and directories at the given path
namestringFile or directory name
isDirbooleanWhether the entry is a directory
sizenumberSize in bytes
modestringFile mode string
permissionsstringPermission string
ownerstringOwning user
groupstringOwning group
modifiedAtstringLast modification timestamp

daytona_git_clone

Clone a Git repository into a Daytona sandbox

Input

ParameterTypeRequiredDescription
apiKeystringYesDaytona API key
sandboxIdstringYesID of the sandbox to clone the repository into
urlstringYesURL of the Git repository to clone
pathstringYesPath in the sandbox to clone the repository into
branchstringNoBranch to clone (defaults to the default branch)
commitIdstringNoSpecific commit to check out after cloning
usernamestringNoUsername for authenticating to private repositories
passwordstringNoPassword or personal access token for private repositories

Output

ParameterTypeDescription
repoUrlstringURL of the cloned repository
clonePathstringPath the repository was cloned into

On this page