Runs Python, JavaScript or TypeScript code in an isolated one-shot sandbox and r
execute-codeRuns Python, JavaScript or TypeScript code in an isolated one-shot sandbox and returns stdout, stderr, exit code and artifacts (Daytona CodeRunRequest/ExecuteResponse compatible) Price: $0.002 a call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables; keys must match [A-Za-z_][A-Za-z0-9_]* (Daytona's rule) | |
| argv | No | Command-line arguments for the program (sys.argv[1:] in Python, process.argv.slice(2) in Node) | |
| code | Yes | The code to run (up to 1 MB of UTF-8) | |
| files | No | Text files written into the work directory next to the program (up to 50, 1 MB each, 4 MB total); the entry point main.py/main.js/main.ts is reserved | |
| outputs | No | Relative paths to read back after the run (up to 20); up to 1 MB each comes back base64 in outputFiles, larger in tooLargeOutputs, absent in missingOutputs | |
| timeout | No | Run timeout in seconds, 1-120 (default 60); a timed-out run answers exitCode 124 | |
| language | Yes | "python", "javascript" or "typescript" |