Documentation Index
Fetch the complete documentation index at: https://e2b-mintlify-d2daa4bf.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
New features
- Opt out of HTTP/2 in the Python SDK. You can now disable HTTP/2 when constructing the SDK’s HTTP transport, which is useful for environments where HTTP/2 causes connection issues with proxies or load balancers. HTTP/2 remains the default. See the SDK reference for transport configuration.
Updates
- Clearer lifecycle precedence in the SDKs. When creating a sandbox,
lifecycle.onTimeout/lifecycle.on_timeoutnow consistently takes precedence over the olderautoPause/auto_pauseargument across both JS and Python SDKs. Passing a partiallifecycleobject no longer throws or silently misbehaves. See Sandbox lifecycle. autoPause/auto_pauseis deprecated. Uselifecycle.onTimeout: "pause"instead. Calls that passautoPausewill continue to work but emit a deprecation warning.- Stricter validation for
autoResume. SettingautoResume: truetogether with an effective timeout action ofkillnow raisesInvalidArgumentError(JS) /InvalidArgumentException(Python) at sandbox creation time, surfacing a misconfiguration that previously failed silently. - Faster sandbox creation under load. Reservation waiting on the API now wakes via pub/sub instead of polling, reducing latency when many sandboxes are created at once.
- Better error responses for invalid template tags. The API now returns
400 Bad Request(instead of a generic server error) when a template tag is invalid. See Template tags & versioning. - Removed experimental
Sandbox.betaCreate/Sandbox.beta_create. The beta surface has been removed now that its options are available on the stableSandbox.createAPI. Migrate any remaining usage toSandbox.createwith the equivalentlifecycleoptions.
Bug fixes
- JS SDK: Improved HTTP/2 dispatcher behavior for envd RPC and API traffic, reducing connection-reuse issues under concurrency.
- Python SDK: gRPC streams used by file watchers and command execution are now properly closed on teardown, preventing leaked connections and goroutines.
- CLI:
e2b auth loginno longer fails on headless machines that don’t havexdg-open. The CLI now falls back to printing the login URL for you to open manually. See CLI authentication.