Skip to content

Deno Sandboxes

IDdeno
CategorySandboxes
FeaturesNone
Dependenciessession_storage

Run code in cloud-based Deno sandboxes. Create isolated Linux microVMs, execute commands, and manage files. Each sandbox is scoped to the session and supports configurable memory and network policies.

Experimental: This capability may change in future releases.

Create a new Deno sandbox.

ParameterTypeRequiredDescription
titlestringnoSandbox label
regionstringnoRegion (e.g. ord or ams)
timeoutstringnoSandbox lifetime (e.g. 20m). Default: 10m
memory_mbintegernoMemory in MiB (1–16384). Default: 512
allow_netarraynoOutbound network allowlist hosts/IPs

Returns sandbox_id, region, and workspace_path.

Execute a shell command in a sandbox.

ParameterTypeRequiredDescription
sandbox_idstringyesTarget sandbox
commandstringyesShell command to run
cwdstringnoWorking directory

Read a text file from a sandbox filesystem.

ParameterTypeRequiredDescription
sandbox_idstringyesTarget sandbox
pathstringyesFile path
offsetintegernoLine offset to start reading from
limitintegernoMaximum number of lines to return

Write a text file into a sandbox filesystem.

ParameterTypeRequiredDescription
sandbox_idstringyesTarget sandbox
pathstringyesFile path
contentstringyesFile content

List all Deno sandboxes created in the current session.

Delete a Deno sandbox.

ParameterTypeRequiredDescription
sandbox_idstringyesTarget sandbox
actionstringyesdelete

Deno API token is resolved automatically from Settings > Connections > Deno.

  • Sandboxes are isolated Linux microVMs with network access (subject to allow_net)
  • Sandboxes are automatically tracked for the session; use deno_manage_sandbox to delete when done
  • File operations target the sandbox filesystem, not the session workspace