AI makes mistakes! Undisk makes recovery instant: every write is versioned, every file is reversible.
See it heal →

What it does

Execute code in a secure, ephemeral E2B cloud sandbox and return stdout, stderr, and exit code. Supports Python, JavaScript, TypeScript, Bash, and C. Each call creates a fresh sandbox — no state persists between calls. Requires the workspace owner to have enabled Undisk Compute (E2B_API_KEY configured).

Required scope

compute:run

Parameters

ParameterTypeRequiredDescription
languagestringYesProgramming language to execute. Values: python, javascript, typescript, bash, c.
codestringYesSource code to execute in the sandbox.
timeout_msnumberNoMaximum execution time in milliseconds (1–60000). Default: 30000.