E2B SDK 2.65 and 2.66: sandbox.git deprecated, sandbox memory now resizable
e2b 2.65.0 deprecates every sandbox.git method (use commands.run) and adds Template.getInfo; 2.66.0 adds memoryMB per sandbox.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. Your keys stay in this tab. They are never sent to Wirestack or saved; we only count that the panel was used.
- E2B API keyE2B_API_KEYGet key
Sign in to the E2B dashboard, open the keys tab and copy your API key. It starts with e2b_.
What changed
E2B released two SDK versions on November 26, 2026 (JavaScript e2b and the Python SDK).
2.65.0:
- Every
sandbox.gitmethod is deprecated. Run git throughsandbox.commands.run()instead. - New
Template.getInfo(nameOrId)(get_infoin Python) returns a template's default build. - New
Template.listBuilds(nameOrId, { statuses, tags })(list_buildsin Python) pages through a template's builds, newest first. - Both new methods throw new not-found and invalid-argument errors, and refuse
name:taginput. - Runtime dependencies bumped, including
undicito ^8.12.4 for security fixes.
2.66.0:
- Resizable memory: build a template with
maxMemoryMB, pick each sandbox'smemoryMBon create, and choose the memory and CPU count a paused sandbox resumes with onSandbox.connect. onResumenow also takes an object form. The existing string values still work.- Template listing now returns the maximum memory, and the CLI shows a "Max RAM MiB" column.
What to do
If your code calls sandbox.git, move those calls to sandbox.commands.run("git ...") before the methods are removed. The memory options are new and optional; nothing breaks if you leave them out. Your key stays in E2B_API_KEY.
Source
Affected by this? Start from a checked E2B integration
Code with pinned versions, checked against the official docs on a schedule.
