Learning resourcesReviewed · E2B

E2B Secured Access Guide

E2B’s secured access guide helps developers protect connections to their sandboxes, but older custom templates can require rebuilding. It explains SDK version differences, authentication for direct controller requests and the requirement for pre-signed file-transfer URLs.

Researched 23 Nov 2026

In short.

E2B’s secured access guide explains sandbox authentication for developers, but custom templates predating secure-access support need rebuilding. SDK v2.0.0 enabled secure access by default; SDK v2.51.0 and newer always enable it through Sandbox.create, even when passed secure: false. Supporting templates use envd v0.2.0 or newer. When secure access is enabled, every direct controller request must include X-Access-Token containing the token returned during sandbox creation. Upload and download URLs require pre-signing. These are documented behaviors; nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected page at [https://docs.e2b.dev/sandbox/secured-access.md], including compatibility notices, migration instructions, supported versions, direct API authentication, file-transfer guidance and both examples. The linked documentation index and upload/download pages are excluded. No commands, code or sandbox requests were executed; runtime authentication, template migration and file-transfer behavior remain unverified.

The overview

Identity

This is E2B’s documentation page about authenticating communication between its SDK and the controller running inside a sandbox. That controller exposes filesystem, command-execution and other sandbox-control APIs. The original page is [https://docs.e2b.dev/sandbox/secured-access.md].

Assessment

The guide is useful when upgrading an E2B integration, maintaining custom templates or accessing controller APIs directly. Its central migration warning is actionable: SDK v2.51.0 and newer ignore attempts to disable secure access, so incompatible custom templates need rebuilding. Rebuild commands and a complete authenticated HTTP request example are absent.

Users

The intended readers are developers using E2B’s JavaScript or Python SDKs, maintainers of custom sandbox templates and developers making direct controller API calls. Beginners get the authentication requirement and migration checkpoints; experienced developers get specific version boundaries and the required request-header name.

Capabilities

The page explains secure-access defaults, template compatibility, direct API authentication and the deprecated secure option. It also states that upload and download URLs need pre-signing and recommends using the SDK to generate them. It does not provide the file-transfer implementation details.

Using it

Requirements

Templates with envd v0.2.0 or newer support secure access. Custom templates using earlier envd versions must be rebuilt to enable it. The optional secure flag appeared in JavaScript and Python SDK v1.5.0; SDK v2.0.0 made secure access the default, and SDK v2.51.0 and newer always enable it through Sandbox.create.

When secure access is enabled, every direct controller request must include X-Access-Token containing the token returned during sandbox creation. Account setup, operating-system requirements and API-key prerequisites are not specified here.

Mechanism

According to the page, without secure access anyone possessing a sandbox ID can access its controller APIs and control the sandbox. Secure access adds authentication between the SDK and controller. When secure access is enabled, every direct controller request must include X-Access-Token containing the token returned during sandbox creation.

Setup

Check a template’s envd version using e2b template list or the dashboard’s template list. Rebuild custom templates using envd older than v0.2.0 before creating sandboxes from them with SDK v2.51.0 or newer. The page identifies this migration requirement but does not explain how to perform the rebuild.

Example

The JavaScript example calls Sandbox.create({ secure: false }), while the Python example calls Sandbox.create(secure=False). Both illustrate that SDK v2.51.0 and newer accept the option for backward compatibility but ignore its value, leaving secure access enabled. Neither example was executed.

Assessment & evidence

Limitations

The page does not explain token expiry, rotation, revocation or permission scope. It does not establish broader sandbox-isolation or encryption guarantees. Detailed template-rebuilding and pre-signed URL procedures are absent, and no runtime verification or security-test results are supplied.

Reasoning

Taken together, the documented compatibility rules mean that disabling the secure flag cannot resolve an old-template incompatibility with SDK v2.51.0 or newer: those SDKs ignore the flag, while older templates require rebuilding to support authentication. This conclusion follows from the stated version requirements; migration success in a particular environment remains unverified.

Alternatives

The page describes SDK access and direct controller API access as integration paths. When secure access is enabled, every direct controller request must include X-Access-Token containing the token returned during sandbox creation. The page recommends SDK generation of pre-signed file-transfer URLs. It does not compare other sandbox providers or alternative authentication guides.

Evidence

The evidence is the complete supplied E2B page at [https://docs.e2b.dev/sandbox/secured-access.md], including its compatibility notice, migration guidance, version milestones and JavaScript and Python examples. Its statements support an explanation of documented behavior, but do not establish successful execution or independent security validation.

Access & freshness

Costs

The page gives no prices, free-tier allowances or charges for sandbox use, template rebuilding or file transfers. Monetary costs are unknown. The effort required to migrate a particular template is also not assessed.

Rights

The supplied page contains no licence or reuse terms for its text or examples. Redistribution rights and the applicable SDK or service terms are not established by this evidence.

Freshness

The supplied page was captured on 23 November 2026. It provides no publication or update date, and its version references do not establish the latest available SDK release. Changes after that capture are unknown.

Actions

Identify your SDK version and check each relevant custom template’s envd version. Rebuild templates older than envd v0.2.0 when adopting the documented secure-access behavior. With SDK v2.51.0 or newer, do not expect secure: false to disable authentication.

When secure access is enabled, every direct controller request must include X-Access-Token containing the token returned during sandbox creation. Use the SDK to generate pre-signed upload and download URLs as recommended, and verify migration and authenticated access in your own environment.

Evidence for this report

selected-page.txtselected · checked 2026-11-23