Local Execution Environment
Local execution environment configuration.
Executes code in the same process. Fastest option but offers no isolation.
| Local Execution Environment (YAML) |
|---|
| environment:
type: local
executable: null # Python executable to use (if None, auto-detect based on language).
language: python # Programming language to use.
isolated: false # Whether to run code in a subprocess.
root_path: null # Path to become the root of the filesystem.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Cloudflare Execution Environment
Cloudflare sandbox execution environment configuration.
Executes code in a Cloudflare Worker sandbox deployment via HTTP API.
| Cloudflare Execution Environment (YAML) |
|---|
| environment:
type: cloudflare
base_url: https://my-sandbox.workers.dev # Base URL of the Cloudflare Sandbox Worker deployment.
api_token: '!ENV ENV_VAR_NAME' # API token for authentication (optional).
account_id: null # Cloudflare account ID (optional).
session_id: null # Explicit session ID (auto-generated if None).
timeout: 30.0 # HTTP request timeout in seconds.
language: python # Programming language to use.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Docker Execution Environment
Docker execution environment configuration.
Executes code in Docker containers for strong isolation and reproducible environments.
| Docker Execution Environment (YAML) |
|---|
| environment:
type: docker
image: python:3.13-slim # Docker image to use.
language: python # Programming language to use.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
E2B Execution Environment
E2B execution environment configuration.
Executes code in E2B sandboxes for secure, ephemeral execution environments.
| E2B Execution Environment (YAML) |
|---|
| environment:
type: e2b
template: null # E2B template to use.
sandbox_timeout: 300.0 # How long the sandbox stays alive in seconds.
keep_alive: false # Keep sandbox running after execution.
language: python # Programming language to use.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Hopx Execution Environment
Hopx execution environment configuration.
Executes code in Hopx cloud VM sandboxes for secure, ephemeral execution environments.
| Hopx Execution Environment (YAML) |
|---|
| environment:
type: hopx
template: null # Hopx template name to use.
template_id: null # Hopx template ID (alternative to template name).
api_key: '!ENV ENV_VAR_NAME' # Hopx API key (or use HOPX_API_KEY env var).
base_url: https://api.hopx.dev # Hopx API base URL.
region: null # Preferred region for sandbox creation.
sandbox_timeout: 300.0 # How long the sandbox stays alive in seconds.
keep_alive: false # Keep sandbox running after execution.
internet_access: null # Enable internet access in the sandbox.
language: python # Programming language to use.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Beam Execution Environment
Beam execution environment configuration.
Executes code in Beam cloud sandboxes for scalable, serverless execution environments.
| Beam Execution Environment (YAML) |
|---|
| environment:
type: beam
cpu: 1.0 # CPU cores allocated to the container.
memory: 128 # Memory allocated to the container in MiB.
keep_warm_seconds: 600 # Seconds to keep sandbox alive, -1 for no timeout.
sandbox_timeout: 300.0 # How long the sandbox stays alive in seconds.
language: python # Programming language to use.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Daytona Execution Environment
Daytona execution environment configuration.
Executes code in remote Daytona sandboxes for cloud-based development environments.
| Daytona Execution Environment (YAML) |
|---|
| environment:
type: daytona
api_url: null # Daytona API URL (optional, uses env vars if not provided).
api_key: '!ENV ENV_VAR_NAME' # API key for authentication.
target: null # Target configuration.
image: python:3.13-slim # Container image.
keep_alive: false # Keep sandbox running after execution.
sandbox_timeout: 300.0 # How long the sandbox stays alive in seconds.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
SRT Execution Environment
Sandboxed execution environment using Anthropic's sandbox-runtime.
Executes code locally with OS-level sandboxing for network and filesystem restrictions.
Requires srt CLI: npm install -g @anthropic-ai/sandbox-runtime
| SRT Execution Environment (YAML) |
|---|
| environment:
type: srt
language: python # Programming language to use.
executable: null # Executable to use (auto-detect if None).
sandbox: # Sandbox restrictions configuration.
allowed_domains: []
denied_domains: []
allow_unix_sockets: []
allow_all_unix_sockets: false
allow_local_binding: false
deny_read:
- ~/.ssh
- ~/.aws
- ~/.gnupg
allow_write:
- .
deny_write: []
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Microsandbox Execution Environment
Microsandbox execution environment configuration.
Executes code in lightweight microVMs for strong isolation.
| Microsandbox Execution Environment (YAML) |
|---|
| environment:
type: microsandbox
namespace: exxec # Prefix for the sandbox name (a unique suffix is appended).
api_key: '!ENV ENV_VAR_NAME' # API key for authentication (uses MSB_API_KEY env var if None).
memory: 512 # Memory limit in MiB.
cpus: 1 # Number of virtual CPUs.
language: python # Programming language to use.
image: null # Custom Docker image (uses default for language if None).
sandbox_timeout: 300.0 # How long the sandbox stays alive in seconds.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Mock Execution Environment
Mock execution environment configuration.
For testing purposes. Uses an in-memory filesystem and configurable results.
Dicts are passed as **kwargs to ExecutionResult/ProcessOutput constructors.
| Mock Execution Environment (YAML) |
|---|
| environment:
type: mock
code_results: null # Map of code string to ExecutionResult kwargs dict.
command_results: null # Map of command string to ExecutionResult kwargs dict.
default_result: null # Default ExecutionResult kwargs when no specific match is found.
deterministic_ids: false # Use sequential IDs instead of UUIDs for processes (useful for snapshot testing).
files: null # Map of file paths to contents to pre-populate in the in-memory filesystem.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Modal Execution Environment
Modal execution environment configuration.
Executes code in Modal serverless sandboxes for scalable cloud execution.
| Modal Execution Environment (YAML) |
|---|
| environment:
type: modal
app_name: null # Modal app name (creates if missing).
cpu: null # CPU allocation in cores.
memory: null # Memory allocation in MB.
gpu: null # GPU type.
timeout: 60 # Timeout for the sandbox.
idle_timeout: null # Idle timeout in seconds.
workdir: /tmp # Working directory in sandbox.
language: python # Programming language to use.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
SSH Execution Environment
SSH execution environment configuration.
Executes code on a remote machine via SSH connection.
| SSH Execution Environment (YAML) |
|---|
| environment:
type: ssh
host: 192.168.1.100 # Remote host to connect to.
username: ubuntu # SSH username.
password: '!ENV ENV_VAR_NAME' # SSH password (if not using key auth).
private_key_path: null # Path to SSH private key file.
port: 22 # SSH port.
language: python # Programming language to use.
sandbox_timeout: 300.0 # SSH connection timeout in seconds.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Vercel Execution Environment
Vercel execution environment configuration.
Executes code in Vercel cloud sandboxes for serverless execution.
| Vercel Execution Environment (YAML) |
|---|
| environment:
type: vercel
image: null # Vercel Container Registry image reference (uses Vercel default if None).
vcpus: null # Number of virtual CPUs for the sandbox.
memory: null # Memory in MB for the sandbox.
ports: # List of ports to expose.
- 3000
timeout: 60 # Timeout for the sandbox.
language: python # Programming language to use.
token: '!ENV ENV_VAR_NAME' # Vercel API token (uses environment if None).
project_id: null # Vercel project ID (uses environment if None).
team_id: null # Vercel team ID (uses environment if None).
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Pyodide Execution Environment
Pyodide execution environment configuration.
Executes Python code in WASM via Deno for sandboxed browser-like execution.
| Pyodide Execution Environment (YAML) |
|---|
| environment:
type: pyodide
startup_timeout: 60.0 # Timeout for Pyodide initialization in seconds.
allow_net: true # Network access (True=all, list=specific hosts, False=none).
allow_read: false # File read access.
allow_write: false # File write access.
allow_env: false # Environment variable access.
allow_run: false # Subprocess execution (limited in WASM).
allow_ffi: false # Foreign function interface access.
deno_executable: null # Path to deno executable (auto-detected if None).
sandbox_timeout: 300.0 # How long the sandbox stays alive in seconds.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|
Sprites Execution Environment
Sprites execution environment configuration.
Executes code in Sprites (Fly.io) cloud VMs for secure, ephemeral execution.
| Sprites Execution Environment (YAML) |
|---|
| environment:
type: sprites
name: null # Sprite name (auto-generated if None).
token: '!ENV ENV_VAR_NAME' # Sprites API token (or use SPRITES_TOKEN env var).
base_url: https://api.sprites.dev # Sprites API base URL.
region: null # Preferred region for sprite creation.
ram_mb: null # RAM in MB for the sprite.
cpus: null # Number of CPUs for the sprite.
storage_gb: null # Storage in GB for the sprite.
timeout: 300.0 # Default command timeout in seconds.
keep_alive: false # Keep sprite running after exiting context manager.
language: python # Programming language to use.
dependencies: null # List of packages to install (pip for Python, npm for JS/TS).
default_command_timeout: null # Default timeout for individual command execution in seconds. None means no timeout.
cwd: null # Working directory for the environment (None means use default/auto).
env_vars: null # Environment variables to set for all executions.
inherit_env: false # If True, inherit environment variables from os.environ (default False for security).
|