# E2B Docs ## Docs - [E2B Documentation](https://e2b-automation-sdk-reference-sync.mintlify.site/index.md) - [Running your first Sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/quickstart.md): This guide will show you how to start your first E2B Sandbox. - [Connect LLMs to E2B](https://e2b-automation-sdk-reference-sync.mintlify.site/quickstart/connect-llms.md) - [Upload & downloads files](https://e2b-automation-sdk-reference-sync.mintlify.site/quickstart/upload-download-files.md) - [Install custom packages](https://e2b-automation-sdk-reference-sync.mintlify.site/quickstart/install-custom-packages.md) - [API key](https://e2b-automation-sdk-reference-sync.mintlify.site/api-key.md) - [SDK client](https://e2b-automation-sdk-reference-sync.mintlify.site/client.md): Create a custom client with options - [Cookbook](https://e2b-automation-sdk-reference-sync.mintlify.site/cookbook.md) - [Need help?](https://e2b-automation-sdk-reference-sync.mintlify.site/support.md) - [Billing & limits](https://e2b-automation-sdk-reference-sync.mintlify.site/billing.md): E2B plans, limits, and usage-based pricing. Covers the Hobby, Pro, and Enterprise plan table (max continuous runtime, concurrent sandboxes, vCPU, memory, disk) and how per-second compute billing works. - [Sandbox lifecycle](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox.md): The sandbox lifecycle: create, connect to, pause, resume, and kill an isolated Linux VM for your agent, and control what happens when its timeout expires. - [Monitor sandbox lifecycle events](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/lifecycle-events-api.md) - [Sandbox lifecycle webhooks](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/lifecycle-events-webhooks.md) - [Sandbox persistence](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/persistence.md): Pause a sandbox and resume it later from the exact state it was in, including the filesystem and the memory, so running processes and loaded variables survive. A paused sandbox is kept indefinitely with no automatic deletion. - [Sandbox snapshots](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/snapshots.md): Create a persistent point-in-time capture of a running sandbox, including filesystem and memory, and spawn new sandboxes from that exact state. - [Sandbox forking](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/fork.md): Snapshot a running sandbox and boot new sandboxes from that exact state in a single call. - [Auto-resume on request](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/auto-resume.md): Manage sandbox lifecycle and auto-resume on activity. - [Filesystem-only snapshots](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/filesystem-only-snapshots.md): Persist only the sandbox filesystem for a lighter snapshot that reboots on resume. - [Git integration](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/git-integration.md): Clone repositories, manage branches, and push changes using the sandbox.git methods. - [Sandbox metrics](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/metrics.md) - [OTel telemetry export](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/otel-telemetry-export.md) - [Sandbox metadata](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/metadata.md) - [Environment variables](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/environment-variables.md) - [List sandboxes](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/list.md) - [Connect to running sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/connect.md) - [Interactive terminal (PTY)](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/pty.md) - [SSH access](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/ssh-access.md): Connect to your sandbox via SSH using a WebSocket proxy - [Secured access](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/secured-access.md) - [Workload identity](https://e2b-automation-sdk-reference-sync.mintlify.site/sandbox/workload-identity.md): Give sandbox workloads short-lived identity tokens instead of long-lived secrets. - [Quickstart](https://e2b-automation-sdk-reference-sync.mintlify.site/template/quickstart.md): Start with custom sandbox templates - [How it works](https://e2b-automation-sdk-reference-sync.mintlify.site/template/how-it-works.md): How the template building process works - [User and workdir](https://e2b-automation-sdk-reference-sync.mintlify.site/template/user-and-workdir.md): Default user and working directory in the sandbox and template - [Caching](https://e2b-automation-sdk-reference-sync.mintlify.site/template/caching.md): How the caching process works - [Base image](https://e2b-automation-sdk-reference-sync.mintlify.site/template/base-image.md): How to define a base image for your template - [Private registries](https://e2b-automation-sdk-reference-sync.mintlify.site/template/private-registries.md): Access private registries as the base image - [Defining template](https://e2b-automation-sdk-reference-sync.mintlify.site/template/defining-template.md): How to create your own template - [Start & ready commands](https://e2b-automation-sdk-reference-sync.mintlify.site/template/start-ready-command.md): Define running processes for the sandbox - [Build](https://e2b-automation-sdk-reference-sync.mintlify.site/template/build.md): How to build the template - [Template names](https://e2b-automation-sdk-reference-sync.mintlify.site/template/names.md): Understanding and managing template names - [Template tags & versioning](https://e2b-automation-sdk-reference-sync.mintlify.site/template/tags.md): Use tags to version your templates and manage environment-based deployments - [Logging](https://e2b-automation-sdk-reference-sync.mintlify.site/template/logging.md): How to view logs from the template build - [Error handling](https://e2b-automation-sdk-reference-sync.mintlify.site/template/error-handling.md): Handle errors in your template - [Next.js app](https://e2b-automation-sdk-reference-sync.mintlify.site/template/examples/nextjs.md): Next.js web app running in the sandbox using Node.js - [Next.js app (Bun)](https://e2b-automation-sdk-reference-sync.mintlify.site/template/examples/nextjs-bun.md): Next.js web app running in the sandbox using Bun - [Expo app](https://e2b-automation-sdk-reference-sync.mintlify.site/template/examples/expo.md): Expo web app running in the sandbox using Node.js - [Desktop](https://e2b-automation-sdk-reference-sync.mintlify.site/template/examples/desktop.md): Sandbox with Ubuntu Desktop and VNC access - [Claude Code](https://e2b-automation-sdk-reference-sync.mintlify.site/template/examples/claude-code.md): Claude Code Agent available in a sandbox - [Docker](https://e2b-automation-sdk-reference-sync.mintlify.site/template/examples/docker.md): Sandbox with Docker or Docker Compose installed for running containers - [Overview](https://e2b-automation-sdk-reference-sync.mintlify.site/filesystem.md) - [Read & write files](https://e2b-automation-sdk-reference-sync.mintlify.site/filesystem/read-write.md) - [Get information about a file or directory](https://e2b-automation-sdk-reference-sync.mintlify.site/filesystem/info.md) - [Attach custom metadata to files](https://e2b-automation-sdk-reference-sync.mintlify.site/filesystem/metadata.md): Attach custom key-value metadata to files when writing them to the sandbox and read it back with file info methods. - [Watch sandbox directory for changes](https://e2b-automation-sdk-reference-sync.mintlify.site/filesystem/watch.md) - [Upload data to sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/filesystem/upload.md) - [Download data from sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/filesystem/download.md) - [Overview](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes.md): Persistent storage that exists independently of sandboxes and can be mounted across multiple sandboxes. - [Managing volumes](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes/manage.md): Create, connect to, list, inspect, and destroy volumes with the E2B SDK. - [Mounting volumes](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes/mount.md): Mount one or more volumes to a sandbox at custom paths when creating it. - [Read & write files](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes/read-write.md): Read, write, list, and remove files and directories in a volume with the SDK. - [Get information about a file or directory](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes/info.md): Get metadata, check existence, and update permissions for files and directories in a volume. - [Upload data to volume](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes/upload.md): Upload single files or entire directories from your local filesystem to a volume. - [Download data from volume](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes/download.md): Download files from a volume to your local filesystem with the E2B SDK. - [Migrating data between volumes](https://e2b-automation-sdk-reference-sync.mintlify.site/volumes/migrate.md): Copy all data from one E2B volume to another by mounting both into a sandbox and using rsync. - [Cloud buckets](https://e2b-automation-sdk-reference-sync.mintlify.site/storage/cloud-buckets.md) - [Archil](https://e2b-automation-sdk-reference-sync.mintlify.site/storage/archil.md): Mount Archil's elastic POSIX file system in your E2B sandbox for high-performance, shared access to S3, R2, and GCS object storage. - [Internet access](https://e2b-automation-sdk-reference-sync.mintlify.site/network/internet-access.md): Every sandbox has outbound internet access by default. Control and restrict it with a simple on/off switch or fine-grained allow and deny lists. - [Sandbox public URL](https://e2b-automation-sdk-reference-sync.mintlify.site/network/public-url.md) - [Restricting public access](https://e2b-automation-sdk-reference-sync.mintlify.site/network/restrict-public-access.md) - [Proxy tunneling](https://e2b-automation-sdk-reference-sync.mintlify.site/network/ip-tunneling.md): How to tunnel Sandbox network traffic through a proxy server - [Bring your own proxy](https://e2b-automation-sdk-reference-sync.mintlify.site/network/byop.md): Route outbound sandbox traffic through a SOCKS5 proxy you run - [Custom domain](https://e2b-automation-sdk-reference-sync.mintlify.site/network/custom-domain.md) - [Running commands in sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/commands.md) - [Streaming command output](https://e2b-automation-sdk-reference-sync.mintlify.site/commands/streaming.md) - [Running commands in background](https://e2b-automation-sdk-reference-sync.mintlify.site/commands/background.md) - [E2B CLI](https://e2b-automation-sdk-reference-sync.mintlify.site/cli.md) - [Authentication in CLI](https://e2b-automation-sdk-reference-sync.mintlify.site/cli/auth.md) - [List sandboxes](https://e2b-automation-sdk-reference-sync.mintlify.site/cli/list-sandboxes.md) - [Create sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/cli/create-sandbox.md) - [Connect to sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/cli/connect-to-sandbox.md) - [Execute commands in sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/cli/exec-command.md) - [Shutdown running sandboxes](https://e2b-automation-sdk-reference-sync.mintlify.site/cli/shutdown-sandboxes.md) - [Manage snapshots](https://e2b-automation-sdk-reference-sync.mintlify.site/cli/manage-snapshots.md) - [Coding Agents](https://e2b-automation-sdk-reference-sync.mintlify.site/use-cases/coding-agents.md): Run AI coding agents like Claude Code, Codex, and Amp in secure E2B sandboxes with full terminal, filesystem, and git access. - [Computer use](https://e2b-automation-sdk-reference-sync.mintlify.site/use-cases/computer-use.md): Build AI agents that see, understand, and control virtual Linux desktops using E2B Desktop sandboxes. - [GitHub Actions CI/CD](https://e2b-automation-sdk-reference-sync.mintlify.site/use-cases/ci-cd.md): Run AI-powered code review, testing, and validation in secure E2B sandboxes from your GitHub Actions workflows. - [Run Kubernetes with k3s](https://e2b-automation-sdk-reference-sync.mintlify.site/use-cases/k3s.md): Create a disposable Kubernetes cluster for agents, CI, previews, and integration testing. - [Cloud browser](https://e2b-automation-sdk-reference-sync.mintlify.site/use-cases/remote-browser.md): Use Kernel cloud browsers with E2B sandboxes to give your agents access to the internet. - [Analyze data with AI](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/analyze-data-with-ai.md) - [Pre-installed libraries](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/analyze-data-with-ai/pre-installed-libraries.md) - [Create charts & visualizations](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/create-charts-visualizations.md) - [Static charts](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/create-charts-visualizations/static-charts.md) - [Interactive charts](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/create-charts-visualizations/interactive-charts.md) - [Streaming](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/streaming.md) - [Code contexts](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/contexts.md) - [Customize the template](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/customize-template.md): Extend the Code Interpreter sandbox or build the production template from source - [Supported languages](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/supported-languages.md) - [Run Python code](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/supported-languages/python.md) - [Run JavaScript and TypeScript code](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/supported-languages/javascript.md) - [Run R code](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/supported-languages/r.md) - [Run Java code](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/supported-languages/java.md) - [Run bash code](https://e2b-automation-sdk-reference-sync.mintlify.site/code-interpreting/supported-languages/bash.md) - [Amp](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/amp.md): Run Amp in a secure E2B sandbox with full filesystem, terminal, and git access. - [Claude Code](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/claude-code.md): Run Claude Code in a secure E2B sandbox with full filesystem, terminal, and git access. - [Claude Managed Agents](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/claude-managed-agents.md): Use E2B as the sandbox runtime for Claude Managed Agents self-hosted environments. - [Codex](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/codex.md): Run OpenAI Codex in a secure E2B sandbox with full filesystem, terminal, and git access. - [Cursor](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/cursor.md): Run Cursor Self-Hosted Machines in isolated E2B sandboxes. - [Hermes Agent](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/hermes.md): Run Hermes Agent in a secure E2B sandbox with persistent sessions, memory, and self-improving skills. - [Crabbox with E2B](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/crabbox.md): Run Crabbox test and execution workflows on E2B sandboxes. - [Devin](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/devin.md): Run Devin for Terminal in a secure E2B sandbox. - [Devin Outposts](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/devin-outposts.md): Run Devin sessions in isolated E2B sandboxes. - [Droid](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/droid.md): Run Factory's Droid in a secure E2B sandbox with full filesystem, terminal, and git access. - [Grok Build](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/grok.md): Run Grok Build in a secure E2B sandbox with full filesystem, terminal, and git access. - [Pi](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/pi.md): Run Pi in a secure E2B sandbox with full filesystem, terminal, and git access. - [Prime Agent](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/prime.md): Run Prime Agent in a secure E2B sandbox with full filesystem, terminal, and git access. - [LangChain Deep Agents](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/deep-agents.md): Use E2B sandboxes as the execution backend for LangChain Deep Agents. - [LangChain Open SWE](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/open-swe.md): Use E2B sandboxes as the execution environment for Open SWE, LangChain's open-source coding agent framework. - [Vercel Eve](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/eve.md): Run Vercel Eve agent sandboxes on E2B with the @e2b/eve-sandbox backend. - [Flue](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/flue.md): Give a Flue agent an E2B sandbox with the flue add sandbox e2b blueprint adapter. - [Google ADK](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/google-adk.md): Give Google ADK agents a secure E2B sandbox to run code, commands, and files in. - [Agno](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/agno.md): Run Agno agents with E2B's secure Python sandbox. - [Mastra](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/mastra.md): Build a Mastra coding agent with secure E2B sandboxes. - [CrewAI](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/crewai.md): Give CrewAI agents an isolated E2B sandbox for running Python code. - [Letta](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/letta.md): Run Letta custom server tools in isolated E2B sandboxes. - [OpenAI Agents SDK](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/openai-agents-sdk.md): Use E2B sandboxes with the OpenAI Agents SDK. - [Vercel AI SDK](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/vercel-ai-sdk.md): Run AI SDK agents and tools on E2B sandboxes with the @e2b/ai-sdk-sandbox provider. - [NVIDIA NeMo Gym](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/nemo-gym.md): Run NVIDIA NeMo Gym agent evaluation and training environments in E2B sandboxes. - [Deploy OpenClaw](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/openclaw/openclaw-gateway.md): Start the OpenClaw gateway in an E2B sandbox and connect your browser. - [OpenClaw Telegram](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/openclaw/openclaw-telegram.md): Connect OpenClaw to Telegram in an E2B sandbox, approve pairing, and chat through your bot. - [OpenCode](https://e2b-automation-sdk-reference-sync.mintlify.site/agents/opencode.md): Run OpenCode in a secure E2B sandbox with full filesystem, terminal, and git access. - [Overview](https://e2b-automation-sdk-reference-sync.mintlify.site/mcp-gateway.md): Connect to 200+ tools through the Model Context Protocol - [Quickstart](https://e2b-automation-sdk-reference-sync.mintlify.site/mcp-gateway/quickstart.md): Get started with MCP integration - [Available servers](https://e2b-automation-sdk-reference-sync.mintlify.site/mcp-gateway/available-servers.md): Browse available MCP servers - [Custom templates](https://e2b-automation-sdk-reference-sync.mintlify.site/mcp-gateway/custom-templates.md): Use MCP servers with custom sandbox templates - [Custom servers](https://e2b-automation-sdk-reference-sync.mintlify.site/mcp-gateway/custom-servers.md): Use custom MCP servers from GitHub repositories - [Examples](https://e2b-automation-sdk-reference-sync.mintlify.site/mcp-gateway/examples.md): Example projects using MCP servers in E2B sandboxes - [Errors](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/errors.md) - [Sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/sandbox.md) - [Sandbox commands](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/sandbox-commands.md) - [Sandbox filesystem](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/sandbox-filesystem.md) - [Template](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/template.md) - [Template logger](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/template-logger.md) - [Template readycmd](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/template-readycmd.md) - [Volume](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/js-sdk/v2.46.1/volume.md) - [Exceptions](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/exceptions.md) - [Logger](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/logger.md) - [Readycmd](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/readycmd.md) - [Sandbox async](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/sandbox_async.md) - [Sandbox sync](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/sandbox_sync.md) - [Template](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/template.md) - [Template async](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/template_async.md) - [Template sync](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/template_sync.md) - [Volume async](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/volume_async.md) - [Volume sync](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/python-sdk/v2.46.4/volume_sync.md) - [Charts](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/code-interpreter-js-sdk/v2.7.1/charts.md) - [Consts](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/code-interpreter-js-sdk/v2.7.1/consts.md) - [Messaging](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/code-interpreter-js-sdk/v2.7.1/messaging.md) - [Sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/code-interpreter-js-sdk/v2.7.1/sandbox.md) - [Code interpreter](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/code-interpreter-python-sdk/v2.9.1/code_interpreter.md) - [Sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/desktop-js-sdk/v2.3.1/sandbox.md) - [Desktop](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/desktop-python-sdk/v2.4.2/desktop.md) - [Auth](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/cli/v2.18.0/auth.md) - [Sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/cli/v2.18.0/sandbox.md) - [Template](https://e2b-automation-sdk-reference-sync.mintlify.site/sdk-reference/cli/v2.18.0/template.md) - [List sandboxes](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/list-sandboxes.md): List all running sandboxes. Use GET /v2/sandboxes instead. - [Create sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/create-sandbox.md): Create a sandbox from the template - [List sandboxes (v2)](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/list-sandboxes-v2.md): List all sandboxes - [List sandbox metrics](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/list-sandbox-metrics.md): List metrics for given sandboxes - [Get sandbox logs](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/get-sandbox-logs.md): Get sandbox logs. Use /v2/sandboxes/{sandboxID}/logs instead. - [Get sandbox logs (v2)](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/get-sandbox-logs-v2.md): Get sandbox logs - [Get sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/get-sandbox.md): Get a sandbox by id - [Delete sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/delete-sandbox.md): Kill a sandbox - [Get sandbox metrics](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/get-sandbox-metrics.md): Get sandbox metrics - [Pause sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/pause-sandbox.md): Pause the sandbox - [Resume sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/resume-sandbox.md): Resume the sandbox - [Fork sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/fork-sandbox.md): Fork the sandbox: checkpoint the running sandbox in place (it is briefly paused, snapshotted with its full memory state, and resumed on its node, keeping its ID and expiration untouched) and create count new sandboxes from that snapshot. Returns one result per requested fork, each carrying either th… - [Connect to sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/connect-to-sandbox.md): Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. - [Set sandbox timeout](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/set-sandbox-timeout.md): Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration. - [Update sandbox network](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/update-sandbox-network.md): Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it. - [Refresh sandbox](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/refresh-sandbox.md): Refresh the sandbox extending its time to live - [Create snapshot](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/create-snapshot.md): Create a persistent snapshot from the sandbox's current state. Snapshots can be used to create new sandboxes and persist beyond the original sandbox's lifetime. - [List snapshots](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/sandboxes/list-snapshots.md): List all snapshots for the team - [Create template (v3)](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/create-template-v3.md): Create a new template - [List templates (v2)](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/list-templates-v2.md): List all templates - [Create template (v2)](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/create-template-v2.md): Create a new template - [Get build upload link](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/get-build-upload-link.md): Get an upload link for a tar file containing build layer files - [List templates](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/list-templates.md): List all templates - [Create template](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/create-template.md): Create a new template - [Get template](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/get-template.md): List all builds for a template - [Rebuild template](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/rebuild-template.md): Rebuild an template - [Delete template](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/delete-template.md): Delete a template - [Update template](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/update-template.md): Update template - [Start build](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/start-build.md): Start the build - [Start build (v2)](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/start-build-v2.md): Start the build - [Update template (v2)](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/update-template-v2.md): Update template - [Get build status](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/get-build-status.md): Get template build info - [Get build logs](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/get-build-logs.md): Get template build logs - [Get template by alias](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/templates/get-template-by-alias.md): Check if template with given alias exists - [Assign tags](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/tags/assign-tags.md): Assign tag(s) to a template build - [Delete tags](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/tags/delete-tags.md): Delete multiple tags from templates - [List template tags](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/tags/list-template-tags.md): List all tags for a template - [List team volumes](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/volumes/list-team-volumes.md): List all team volumes - [Create team volume](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/volumes/create-team-volume.md): Create a new team volume - [Team volume](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/volumes/team-volume.md): Get team volume info - [Delete team volume](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/volumes/delete-team-volume.md): Delete a team volume - [Check the health of the service](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/envd/check-the-health-of-the-service.md) - [Service stats](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/envd/service-stats.md) - [Environment variables](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/envd/environment-variables.md) - [Download a file](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/download-a-file.md) - [Upload a file and ensure the parent directories exist. If the file exists, it will be overwritten.](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/upload-a-file-and-ensure-the-parent-directories-exist-if-the-file-exists-it-will-be-overwritten.md): Any request header of the form `X-Metadata-: ` is persisted as a user-defined extended attribute on the uploaded file. The `X-Metadata-` prefix is stripped and the remaining header name is lowercased to form the metadata key; the resulting map is returned on `EntryInfo` lookups (e.g. `St… - [CreateWatcher](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/createwatcher.md): Non-streaming versions of WatchDir - [GetWatcherEvents](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/getwatcherevents.md) - [ListDir](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/listdir.md) - [MakeDir](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/makedir.md) - [Move](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/move.md) - [Remove](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/remove.md) - [RemoveWatcher](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/removewatcher.md) - [Stat](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/stat.md) - [WatchDir](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/filesystem/watchdir.md): Server-streaming RPC. Use the Connect protocol with streaming support. - [CloseStdin](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/closestdin.md): Close stdin to signal EOF to the process. Only works for non-PTY processes. For PTY, send Ctrl+D (0x04) instead. - [Connect](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/connect.md): Server-streaming RPC. Use the Connect protocol with streaming support. - [List](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/list.md) - [SendInput](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/sendinput.md) - [SendSignal](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/sendsignal.md) - [Start](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/start.md): Server-streaming RPC. Use the Connect protocol with streaming support. - [StreamInput](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/streaminput.md): Client-streaming RPC. Client input stream ensures ordering of messages. Use the Connect protocol with streaming support. - [Update](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/process/update.md) - [List teams](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/teams/list-teams.md): List all teams - [Get team metrics](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/teams/get-team-metrics.md): Get metrics for the team - [Get team metrics max](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/teams/get-team-metrics-max.md): Get the maximum metrics for the team in the given interval - [List project secrets](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/secrets/list-project-secrets.md): List the project's secrets. No response carries a secret value. - [Create a secret](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/secrets/create-a-secret.md): Create a secret by storing a runtime marker as its first version. The response carries metadata only. - [Get a secret](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/secrets/get-a-secret.md): Get one secret's metadata, selected by identifier or name. - [Update a secret](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/secrets/update-a-secret.md): Replace the secret's stored marker by appending a new version. The response carries metadata only. - [Delete a secret](https://e2b-automation-sdk-reference-sync.mintlify.site/api-reference/secrets/delete-a-secret.md): Revoke the secret and schedule its versions for cleanup. - [Changelog](https://e2b-automation-sdk-reference-sync.mintlify.site/changelog.md): Weekly updates on what shipped in E2B - [Projects](https://e2b-automation-sdk-reference-sync.mintlify.site/projects.md) - [How do I calculate the price of a sandbox?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/calculate-sandbox-price.md): E2B bills per second, only while a sandbox is running, based on the vCPU and RAM allocated to it. Paused and killed sandboxes are not billed. - [How do I increase my concurrency limit?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/increase-concurrency.md): Raise your concurrent sandbox limit with self-serve add-ons in the console billing tab, or contact sales for higher limits on the Enterprise plan. - [How long does a sandbox live?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/sandbox-lifetime.md): A sandbox is not session-scoped. Continuous runtime is capped by plan (1 hour Hobby, 24 hours Pro, custom Enterprise) and resets on pause and resume, while a paused sandbox is kept indefinitely with no time-to-live. - [Do paused sandboxes count toward the concurrency limit?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/paused-sandboxes-concurrency.md): No. Only running sandboxes count toward the concurrency limit and only running sandboxes are billed. There is no time limit on how long a sandbox can stay paused. - [Does E2B support GPUs?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/gpu-support.md): No. E2B sandboxes are CPU-only, sized by vCPU and RAM only, with no GPU option in the SDKs, CLI, API, or a template definition. BYOC does not change this. - [What limits apply to my template builds?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/build-limits.md): The limits you can hit when building a template, which ones we can raise, and how to work around the ones we cannot - [Is there a limit on how many templates I can create?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/template-limit.md) - [Can I make a template public so other projects can use it?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/public-templates.md) - [Why does pip install fail when building a template?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/pip-install-error.md) - [Why does my template build fail with a Docker push authentication error?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/docker-push-authentication-error.md) - [Can I run sandboxes in the EU?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/eu-region.md): Yes. E2B offers a shared EU cluster for customers on the Pro tier and above. Contact support to get access. - [Do you publish egress IP ranges (CIDRs)?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/egress-ip-ranges.md): Whether E2B publishes egress CIDRs, and how to allowlist or pin sandbox outbound traffic. - [Why does iptables fail with 'xt_owner module missing' in a sandbox?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/iptables-xt-owner.md) - [Why does my custom template fail with 'port 49999 not open'?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/port-49999-not-open.md) - [BYOC (Bring Your Own Cloud)](https://e2b-automation-sdk-reference-sync.mintlify.site/byoc.md): Deploy E2B sandboxes inside your own VPC. BYOC is available on AWS and Google Cloud for Enterprise customers, Azure is not yet supported, and BYOC is a managed deployment in your account rather than self-hosting. - [DSCP marking for egress traffic](https://e2b-automation-sdk-reference-sync.mintlify.site/deployment/dscp-marking.md): Mark the egress traffic that leaves your sandboxes with a DSCP value so your firewalls can filter, log, or shape it. - [Is E2B SOC 2 compliant?](https://e2b-automation-sdk-reference-sync.mintlify.site/faq/security-and-compliance.md): E2B has a SOC 2 Type II report, served with the DPA template, penetration test, and bridge letter from the Trust Center at trust.e2b.dev. Covers where sandboxes run, encryption at rest, and how to request a HIPAA BAA, a signed DPA, a security questionnaire, or the subprocessor list. - [SDK v2 migration guide](https://e2b-automation-sdk-reference-sync.mintlify.site/migration/v2.md) - [V2 build system migration](https://e2b-automation-sdk-reference-sync.mintlify.site/migration/template-v2.md): How to migrate from the legacy template definition - [E2B_ACCESS_TOKEN deprecation](https://e2b-automation-sdk-reference-sync.mintlify.site/migration/access-token-deprecation.md): E2B_ACCESS_TOKEN is deprecated and no longer works. Authenticate the CLI with E2B_API_KEY instead. - [V1 build system deprecation](https://e2b-automation-sdk-reference-sync.mintlify.site/migration/v1-build-deprecation.md): The V1 template build system is deprecated. Migrate to the V2 build system. ## OpenAPI Specs - [openapi-public](https://e2b-automation-sdk-reference-sync.mintlify.site/openapi-public.yaml)