

E2B Python SDK 2.66.0, released November 26, adds memory selection when creating a sandbox and memory/CPU selection when resuming a paused one. The feature makes resource choices more explicit, but it does not resize an already running process environment.
That distinction matters for coding agents whose tasks can vary from a short script to a larger build. An accepted connection request alone is not proof that the sandbox is now running with the requested resources.
The template defines the envelope
The merged implementation adds a maximum memory setting to template builds. A sandbox created from a suitably enabled resizable template can select memory within its allowed range; omitting the new setting preserves the template's normal size.
These are not arbitrary resource promises made by the client library. Template bounds, supported memory increments, team settings and the control plane constrain what can be accepted. Fixed-size templates remain fixed-size, and the documented errors distinguish an invalid size from a template that does not support resizing.
Resume options are conditional
The Python on_resume option accepts an object describing an action and optional memory_mb and cpu_count. The earlier restore/reboot strings remain supported. The default action restores the paused memory snapshot; reboot cold-boots from disk state and carries different persistence implications.
The tagged SDK documentation and validation say these sizing values apply only when the request actually resumes a paused sandbox. An already running sandbox keeps its sizes. A competing request that is already resuming the sandbox can also mean a valid requested size is ignored.
The documentation therefore directs callers to read the resulting resources through get_info(). Memory cannot shrink below the paused size on this path. CPU selection has its own template and team bounds; it should not be described as following every memory rule.
SDK support and server support are separate
The source warns that an older self-hosted or BYOC control plane can drop the new connect fields and resume at the old size without an error. The release notes and merged change describe the corresponding cloud support, but we did not connect to a service or independently test a hosted deployment.
The SDK rejects malformed resume options, such as an unknown action or non-positive integer size, before sending a request. That local validation is distinct from the server deciding whether a resource request is allowed.
Our analysis: explicit bounds and read-back are the important interface choices here. A robust agent runner should distinguish the resources it asked for from the resources the sandbox reports, particularly around pause/resume races and mixed server versions. Merely upgrading the Python package does not prove an infrastructure change took effect.
The reviewed E2B SDK source is Apache 2.0-licensed; that does not make hosted compute free or supply a service entitlement. Our repository profile links the project. We inspected the tagged SDK, release and added request tests without running those tests, creating a template or provisioning any sandbox.
EXPLORE THE SOURCE
Projects in this story
GitHub repositories
- e2b-dev/E2B ↗View project details
Original primary-source-reviewed reporting. No upstream installations, runtime tests, weights, datasets, inference, benchmarks, cloud resources or deployments performed.




