unstale

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 init

@unstale/cli on npm

e2b 213 changes

Breaking changes 4

  • The synchronous Python SDK now creates sandboxes with Sandbox.create() instead of instantiating Sandbox().

    2.0.0upgrade guide

  • The secure: false option for temporarily disabling secure communication during sandbox creation was removed.

    2.0.0upgrade guide

  • Use sandbox.files.write() to write a single file in the Python SDK.

    2.0.0upgrade guide

  • Listing sandboxes now uses pagination, with paginator methods for retrieving items and checking whether more pages are available.

    2.0.0upgrade guide

Security 1

  • Sandboxes are secure by default; direct access to the sandbox controller URL requires an authentication header, which the SDK handles automatically.

    2.0.0upgrade guide

New APIs and options 6

  • The migration guide introduces files.write_files() as a v2 pattern.

    2.0.0upgrade guide

  • Parses a Dockerfile and builds a template from supported instructions: FROM, RUN, COPY, ADD, WORKDIR, USER, ENV, ARG, CMD, and ENTRYPOINT.

    2.0.0upgrade guide

  • Parses a Dockerfile and builds a template from supported instructions: FROM, RUN, COPY, ADD, WORKDIR, USER, ENV, ARG, CMD, and ENTRYPOINT.

    2.0.0upgrade guide

  • Creates a template from a built Docker image; the image must target linux/amd64, and credentials can be specified for private registries.

    2.0.0upgrade guide

  • Set secure to false during sandbox creation to temporarily disable secure communication; this is not recommended for production.

    2.0.0upgrade guide

  • Use sandbox.files.write_files() to write multiple files in the Python SDK.

    2.0.0upgrade guide

Behavior and default changes 1

  • Templates default to user user with the working directory set to the user's home directory, differing from Docker defaults.

    2.0.0upgrade guide

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.

    1.0.0, 2.0.0upgrade guideupgrade guide

e2b 15 changes

Breaking changes 3

  • V2 builds authenticate with this variable instead of the access token.

    1.0.0upgrade guide

  • The V1 build command is a deprecation stub that exits immediately; migrate to the V2 build system.

    1.0.0upgrade guide

  • Use this V2 build command instead of e2b template build; it authenticates with E2B_API_KEY rather than the access token.

    1.0.0upgrade guide

New APIs and options 2

  • Use this path to keep using a Dockerfile, parsed into a V2 template.

    1.0.0upgrade guide

  • Use this path to reference a Docker image that you build and push yourself.

    1.0.0upgrade guide