pypi / e2b
e2b
What changed in e2b 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
7 breaking1 security8 new APIs and options1 behavior and defaults1 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inite2b 213 changes
Breaking changes 4
The synchronous Python SDK now creates sandboxes with Sandbox.create() instead of instantiating Sandbox().
The secure: false option for temporarily disabling secure communication during sandbox creation was removed.
Use sandbox.files.write() to write a single file in the Python SDK.
Listing sandboxes now uses pagination, with paginator methods for retrieving items and checking whether more pages are available.
Security 1
Sandboxes are secure by default; direct access to the sandbox controller URL requires an authentication header, which the SDK handles automatically.
New APIs and options 6
The migration guide introduces files.write_files() as a v2 pattern.
Parses a Dockerfile and builds a template from supported instructions: FROM, RUN, COPY, ADD, WORKDIR, USER, ENV, ARG, CMD, and ENTRYPOINT.
Parses a Dockerfile and builds a template from supported instructions: FROM, RUN, COPY, ADD, WORKDIR, USER, ENV, ARG, CMD, and ENTRYPOINT.
Creates a template from a built Docker image; the image must target linux/amd64, and credentials can be specified for private registries.
Set secure to false during sandbox creation to temporarily disable secure communication; this is not recommended for production.
Use sandbox.files.write_files() to write multiple files in the Python SDK.
Behavior and default changes 1
Templates default to user
userwith the working directory set to the user's home directory, differing from Docker defaults.
Tooling 1
Migrates existing template definitions to the new format, renames the old e2b.toml and e2b.Dockerfile files, and generates a template definition plus development and production build scripts.
e2b 15 changes
Breaking changes 3
V2 builds authenticate with this variable instead of the access token.
The V1 build command is a deprecation stub that exits immediately; migrate to the V2 build system.
Use this V2 build command instead of
e2b template build; it authenticates withE2B_API_KEYrather than the access token.
New APIs and options 2
Use this path to keep using a Dockerfile, parsed into a V2 template.
Use this path to reference a Docker image that you build and push yourself.