# What changed in e2b-code-interpreter

> 15 changes in e2b-code-interpreter 1 to 2 from its official release notes, upgrade guides and advisories: 7 breaking, 4 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/pypi/e2b-code-interpreter/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## e2b-code-interpreter 2

### Breaking changes

- The synchronous Python SDK now creates sandboxes with the class method Sandbox.create() instead of instantiating Sandbox(). (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v2)
- Python single-file writes now use sandbox.files.write() instead of sandbox.write(). (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v2)
- Python multiple-file writes now use sandbox.files.write_files() instead of the overloaded write() method. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v2)
- Sandbox listing now uses pagination; callers obtain a paginator and fetch items through it. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v2)
- Sandboxes are secure by default, so accessing the sandbox controller URL requires an authentication header; the SDK handles the header automatically. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v2)

### New APIs and options

- Parses an existing Dockerfile and builds a template from it; only a limited set of Dockerfile instructions is supported. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/template-v2)
- Uses an already-built Docker image as the base for a template. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/template-v2)
- Parses an existing Dockerfile and builds a template from it; only a limited set of Dockerfile instructions is supported. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/template-v2)
- Uses an already-built Docker image as the base for a template. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/template-v2)

### Behavior and default changes

- The default template user is user, with the working directory set to that user's home directory, unlike Docker defaults. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/template-v2)
- Docker images used with fromImage must be built for the linux/amd64 platform. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/template-v2)
- Set secure to false during sandbox creation to temporarily disable secure communication. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v2)

### Tooling

- Migrates an existing template definition to the new format and generates SDK template and development and production build files. (2.0.0) — [upgrade guide](https://docs.e2b.dev/migration/template-v2)

## e2b-code-interpreter 1

### Breaking changes

- The V1 build command is a deprecation stub that exits immediately; migrate to the V2 build system. (1.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v1-build-deprecation)
- This is the current V2 build command and authenticates with E2B_API_KEY instead of the access token. (1.0.0) — [upgrade guide](https://docs.e2b.dev/migration/v1-build-deprecation)
