Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
[skip ci] Release new versions
github-actions[bot]0b15b3aae6ca
diff --git a/.changeset/omit-auto-pause-when-lifecycle-unset.md b/.changeset/omit-auto-pause-when-lifecycle-unset.mddeleted file mode 100644index 618e398ac..000000000--- a/.changeset/omit-auto-pause-when-lifecycle-unset.md+++ /dev/null@@ -1,38 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Omit `autoPause` from the create-sandbox request when no timeout lifecycle is configured, and omit `autoPauseMemory` unless `keepMemory` / `keep_memory` was chosen. Sending the SDK's local defaults for those fields was indistinguishable from an explicit choice, so the API could not tell "no preference" from a client choice and own its defaults. Explicit values are still always sent:--```ts-import { Sandbox } from 'e2b'--// No timeout lifecycle: autoPause is omitted, the API applies its default.-await Sandbox.create()--// Explicit action: autoPause: false / autoPause: true, as before.-await Sandbox.create({ lifecycle: { onTimeout: 'kill' } })-await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })--// Snapshot kind is only sent when keepMemory is set.-await Sandbox.create({- lifecycle: { onTimeout: { action: 'pause', keepMemory: false } },-})-```--```python-from e2b import Sandbox--# No timeout lifecycle: auto_pause is omitted, the API applies its default.-Sandbox.create()--# Explicit action: autoPause: false / autoPause: true, as before.-Sandbox.create(lifecycle={"on_timeout": "kill"})-Sandbox.create(lifecycle={"on_timeout": "pause"})--# Snapshot kind is only sent when keep_memory is set.-Sandbox.create(- lifecycle={"on_timeout": {"action": "pause", "keep_memory": False}}-)-```diff --git a/.changeset/omit-unset-auto-resume.md b/.changeset/omit-unset-auto-resume.mddeleted file mode 100644index 65a51d7fd..000000000--- a/.changeset/omit-unset-auto-resume.md+++ /dev/null@@ -1,26 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Omit `autoResume` from the `POST /sandboxes` request when `lifecycle.autoResume` / `lifecycle["auto_resume"]` is not configured, instead of sending the SDK's local default as `{ "autoResume": { "enabled": false } }`. The API can now tell an unset preference from an explicit opt-out and own the default itself. Explicit values are unchanged on the wire.--```ts-import { Sandbox } from 'e2b'--// autoResume is left out of the request entirely — the API's default applies-await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })--// an explicit choice is still sent as before-await Sandbox.create({ lifecycle: { onTimeout: 'pause', autoResume: true } })-```--```python-from e2b import Sandbox--# auto_resume is left out of the request entirely — the API's default applies-Sandbox.create(lifecycle={"on_timeout": "pause"})--# an explicit choice is still sent as before-Sandbox.create(lifecycle={"on_timeout": "pause", "auto_resume": True})-```diff --git a/.changeset/python-unify-pyqwest-connection-pools.md b/.changeset/python-unify-pyqwest-connection-pools.mddeleted file mode 100644index eedc77f61..000000000--- a/.changeset/python-unify-pyqwest-connection-pools.md+++ /dev/null@@ -1,17 +0,0 @@-----"@e2b/python-sdk": patch------Run every persistent HTTP stack in the SDK on one shared pyqwest connection pool-instead of four: the control-plane REST API, the envd HTTP API, the envd RPC-clients, and the volume content API now all draw from-`e2b.api.client_sync`/`client_async`, keyed on the three knobs that are fixed-when a pyqwest transport is built — proxy, idle read bound, and HTTP version.-reqwest pools per host internally, so one pool serves the API host and every-per-sandbox host without interference — and since envd RPC and the envd HTTP API-hit the same host, an active sandbox now needs a single HTTP/2 connection instead-of one per stack. Streamed downloads keep a pool of their own, the only one-carrying the idle `read_timeout`: reqwest's read timer runs during body send and-TTFB, so on a shared pool it would cut off long uploads. No signature changes —-`get_transport` and `get_envd_transport` keep the `http2` parameter restored in-2.39.1, and the two are now the same pool per key rather than two.diff --git a/.changeset/refresh-mcp-server-catalog.md b/.changeset/refresh-mcp-server-catalog.mddeleted file mode 100644index f41ae4f2e..000000000--- a/.changeset/refresh-mcp-server-catalog.md+++ /dev/null@@ -1,21 +0,0 @@-----'e2b': minor-'@e2b/python-sdk': minor------Refresh the MCP server types from the current MCP gateway catalog: 49 servers are new (`n8n`, `neo4j`, `okta`, `temporal`, `proxmox`, `zscaler`, the AWS Labs family, ...), 61 titles and 10 descriptions were rewritten, and 4 servers changed their options (`awsDiagram`, `context7`, `neo4jCypher`, `onlyofficeDocspace`).--Six servers the catalog no longer publishes are gone from `McpServer`: `postgres`, `root`, `tembo`, `flexprice`, `triplewhale`, `cdataConnectcloud`. `awsDiagram` and `context7` now require an option (`outputDir` and `apiKey`), so `awsDiagram: {}` and `context7: {}` stop type-checking, and `onlyofficeDocspace` is down to `baseUrl` and `docspaceApiKey`. The removals also narrow `McpServerName`, so `Template().addMcpServer('postgres')` stops compiling. The config is still passed to the gateway as written, so a dropped server can be kept by casting past the type — whether it starts is up to the gateway.--```ts-import { Sandbox } from 'e2b'--const sandbox = await Sandbox.create({- mcp: {- n8n: {- apiKey: process.env.N8N_API_KEY!,- apiUrl: 'https://n8n.example.com/api/v1',- },- },-})-```diff --git a/.changeset/utm-tagged-package-homepages.md b/.changeset/utm-tagged-package-homepages.mddeleted file mode 100644index 586ceeff3..000000000--- a/.changeset/utm-tagged-package-homepages.md+++ /dev/null@@ -1,7 +0,0 @@-----'e2b': patch-'@e2b/cli': patch-'@e2b/python-sdk': patch------Tag the package homepage and README links with UTM parameters (`utm_source=npm`/`pypi`) so registry traffic to e2b.dev is attributed correctly. No functional change.diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex ccfce3449..8f5cb1353 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -1,5 +1,16 @@# @e2b/cli+## 2.16.3++### Patch Changes++- 2daced6: Tag the package homepage and README links with UTM parameters (`utm_source=npm`/`pypi`) so registry traffic to e2b.dev is attributed correctly. No functional change.+- Updated dependencies [15bd48b]+- Updated dependencies [5367693]+- Updated dependencies [7af41e9]+- Updated dependencies [2daced6]+## 2.16.2### Patch Changesdiff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 8164bead7..b4f0c7c4f 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@e2b/cli",- "version": "2.16.2",+ "version": "2.16.3","description": "CLI for managing e2b sandbox templates","homepage": "https://e2b.dev/?utm_source=npm&utm_medium=referral&utm_campaign=package_homepage&utm_content=e2b-cli","license": "MIT",diff --git a/packages/js-sdk/CHANGELOG.md b/packages/js-sdk/CHANGELOG.mdindex 8c1166b0d..b17dbf26d 100644--- a/packages/js-sdk/CHANGELOG.md+++ b/packages/js-sdk/CHANGELOG.md@@ -1,5 +1,86 @@# e2b+## 2.42.0++### Minor Changes++- 7af41e9: Refresh the MCP server types from the current MCP gateway catalog: 49 servers are new (`n8n`, `neo4j`, `okta`, `temporal`, `proxmox`, `zscaler`, the AWS Labs family, ...), 61 titles and 10 descriptions were rewritten, and 4 servers changed their options (`awsDiagram`, `context7`, `neo4jCypher`, `onlyofficeDocspace`).++ Six servers the catalog no longer publishes are gone from `McpServer`: `postgres`, `root`, `tembo`, `flexprice`, `triplewhale`, `cdataConnectcloud`. `awsDiagram` and `context7` now require an option (`outputDir` and `apiKey`), so `awsDiagram: {}` and `context7: {}` stop type-checking, and `onlyofficeDocspace` is down to `baseUrl` and `docspaceApiKey`. The removals also narrow `McpServerName`, so `Template().addMcpServer('postgres')` stops compiling. The config is still passed to the gateway as written, so a dropped server can be kept by casting past the type — whether it starts is up to the gateway.++ ```ts+ import { Sandbox } from 'e2b'++ const sandbox = await Sandbox.create({+ mcp: {+ n8n: {+ apiKey: process.env.N8N_API_KEY!,+ apiUrl: 'https://n8n.example.com/api/v1',+ },+ },+ })+ ```++### Patch Changes++- 15bd48b: Omit `autoPause` from the create-sandbox request when no timeout lifecycle is configured, and omit `autoPauseMemory` unless `keepMemory` / `keep_memory` was chosen. Sending the SDK's local defaults for those fields was indistinguishable from an explicit choice, so the API could not tell "no preference" from a client choice and own its defaults. Explicit values are still always sent:++ ```ts+ import { Sandbox } from 'e2b'++ // No timeout lifecycle: autoPause is omitted, the API applies its default.+ await Sandbox.create()++ // Explicit action: autoPause: false / autoPause: true, as before.+ await Sandbox.create({ lifecycle: { onTimeout: 'kill' } })+ await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })++ // Snapshot kind is only sent when keepMemory is set.+ await Sandbox.create({+ lifecycle: { onTimeout: { action: 'pause', keepMemory: false } },+ })+ ```++ ```python+ from e2b import Sandbox++ # No timeout lifecycle: auto_pause is omitted, the API applies its default.+ Sandbox.create()++ # Explicit action: autoPause: false / autoPause: true, as before.+ Sandbox.create(lifecycle={"on_timeout": "kill"})+ Sandbox.create(lifecycle={"on_timeout": "pause"})++ # Snapshot kind is only sent when keep_memory is set.+ Sandbox.create(+ lifecycle={"on_timeout": {"action": "pause", "keep_memory": False}}+ )+ ```++- 5367693: Omit `autoResume` from the `POST /sandboxes` request when `lifecycle.autoResume` / `lifecycle["auto_resume"]` is not configured, instead of sending the SDK's local default as `{ "autoResume": { "enabled": false } }`. The API can now tell an unset preference from an explicit opt-out and own the default itself. Explicit values are unchanged on the wire.++ ```ts+ import { Sandbox } from 'e2b'++ // autoResume is left out of the request entirely — the API's default applies+ await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })++ // an explicit choice is still sent as before+ await Sandbox.create({ lifecycle: { onTimeout: 'pause', autoResume: true } })+ ```++ ```python+ from e2b import Sandbox++ # auto_resume is left out of the request entirely — the API's default applies+ Sandbox.create(lifecycle={"on_timeout": "pause"})++ # an explicit choice is still sent as before+ Sandbox.create(lifecycle={"on_timeout": "pause", "auto_resume": True})+ ```++- 2daced6: Tag the package homepage and README links with UTM parameters (`utm_source=npm`/`pypi`) so registry traffic to e2b.dev is attributed correctly. No functional change.+## 2.41.0### Minor Changesdiff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex f432dabcb..387385751 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.41.0",+ "version": "2.42.0","description": "E2B SDK that give agents cloud environments","homepage": "https://e2b.dev/?utm_source=npm&utm_medium=referral&utm_campaign=package_homepage&utm_content=e2b","license": "MIT",diff --git a/packages/python-sdk/CHANGELOG.md b/packages/python-sdk/CHANGELOG.mdindex fe15466fa..56cc76bd8 100644--- a/packages/python-sdk/CHANGELOG.md+++ b/packages/python-sdk/CHANGELOG.md@@ -1,5 +1,99 @@# @e2b/python-sdk+## 2.42.0++### Minor Changes++- 7af41e9: Refresh the MCP server types from the current MCP gateway catalog: 49 servers are new (`n8n`, `neo4j`, `okta`, `temporal`, `proxmox`, `zscaler`, the AWS Labs family, ...), 61 titles and 10 descriptions were rewritten, and 4 servers changed their options (`awsDiagram`, `context7`, `neo4jCypher`, `onlyofficeDocspace`).++ Six servers the catalog no longer publishes are gone from `McpServer`: `postgres`, `root`, `tembo`, `flexprice`, `triplewhale`, `cdataConnectcloud`. `awsDiagram` and `context7` now require an option (`outputDir` and `apiKey`), so `awsDiagram: {}` and `context7: {}` stop type-checking, and `onlyofficeDocspace` is down to `baseUrl` and `docspaceApiKey`. The removals also narrow `McpServerName`, so `Template().addMcpServer('postgres')` stops compiling. The config is still passed to the gateway as written, so a dropped server can be kept by casting past the type — whether it starts is up to the gateway.++ ```ts+ import { Sandbox } from 'e2b'++ const sandbox = await Sandbox.create({+ mcp: {+ n8n: {+ apiKey: process.env.N8N_API_KEY!,+ apiUrl: 'https://n8n.example.com/api/v1',+ },+ },+ })+ ```++### Patch Changes++- 15bd48b: Omit `autoPause` from the create-sandbox request when no timeout lifecycle is configured, and omit `autoPauseMemory` unless `keepMemory` / `keep_memory` was chosen. Sending the SDK's local defaults for those fields was indistinguishable from an explicit choice, so the API could not tell "no preference" from a client choice and own its defaults. Explicit values are still always sent:++ ```ts+ import { Sandbox } from 'e2b'++ // No timeout lifecycle: autoPause is omitted, the API applies its default.+ await Sandbox.create()++ // Explicit action: autoPause: false / autoPause: true, as before.+ await Sandbox.create({ lifecycle: { onTimeout: 'kill' } })+ await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })++ // Snapshot kind is only sent when keepMemory is set.+ await Sandbox.create({+ lifecycle: { onTimeout: { action: 'pause', keepMemory: false } },+ })+ ```++ ```python+ from e2b import Sandbox++ # No timeout lifecycle: auto_pause is omitted, the API applies its default.+ Sandbox.create()++ # Explicit action: autoPause: false / autoPause: true, as before.+ Sandbox.create(lifecycle={"on_timeout": "kill"})+ Sandbox.create(lifecycle={"on_timeout": "pause"})++ # Snapshot kind is only sent when keep_memory is set.+ Sandbox.create(+ lifecycle={"on_timeout": {"action": "pause", "keep_memory": False}}+ )+ ```++- 5367693: Omit `autoResume` from the `POST /sandboxes` request when `lifecycle.autoResume` / `lifecycle["auto_resume"]` is not configured, instead of sending the SDK's local default as `{ "autoResume": { "enabled": false } }`. The API can now tell an unset preference from an explicit opt-out and own the default itself. Explicit values are unchanged on the wire.++ ```ts+ import { Sandbox } from 'e2b'++ // autoResume is left out of the request entirely — the API's default applies+ await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })++ // an explicit choice is still sent as before+ await Sandbox.create({ lifecycle: { onTimeout: 'pause', autoResume: true } })+ ```++ ```python+ from e2b import Sandbox++ # auto_resume is left out of the request entirely — the API's default applies+ Sandbox.create(lifecycle={"on_timeout": "pause"})++ # an explicit choice is still sent as before+ Sandbox.create(lifecycle={"on_timeout": "pause", "auto_resume": True})+ ```++- 666241d: Run every persistent HTTP stack in the SDK on one shared pyqwest connection pool+ instead of four: the control-plane REST API, the envd HTTP API, the envd RPC+ clients, and the volume content API now all draw from+ `e2b.api.client_sync`/`client_async`, keyed on the three knobs that are fixed+ when a pyqwest transport is built — proxy, idle read bound, and HTTP version.+ reqwest pools per host internally, so one pool serves the API host and every+ per-sandbox host without interference — and since envd RPC and the envd HTTP API+ hit the same host, an active sandbox now needs a single HTTP/2 connection instead+ of one per stack. Streamed downloads keep a pool of their own, the only one+ carrying the idle `read_timeout`: reqwest's read timer runs during body send and+ TTFB, so on a shared pool it would cut off long uploads. No signature changes —+ `get_transport` and `get_envd_transport` keep the `http2` parameter restored in+ 2.39.1, and the two are now the same pool per key rather than two.+- 2daced6: Tag the package homepage and README links with UTM parameters (`utm_source=npm`/`pypi`) so registry traffic to e2b.dev is attributed correctly. No functional change.+## 2.41.0### Minor Changesdiff --git a/packages/python-sdk/package.json b/packages/python-sdk/package.jsonindex f3bf03673..36cc18b91 100644--- a/packages/python-sdk/package.json+++ b/packages/python-sdk/package.json@@ -1,7 +1,7 @@{"name": "@e2b/python-sdk","private": true,- "version": "2.41.0",+ "version": "2.42.0","scripts": {"example": "uv run python example.py","test": "uv run pytest -n 4 --verbose -x",diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.tomlindex b6415681d..f71ac684f 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -1,6 +1,6 @@[project]name = "e2b"-version = "2.41.0"+version = "2.42.0"description = "E2B SDK that give agents cloud environments"authors = [{ name = "e2b", email = "[email protected]" }]license = "MIT"diff --git a/packages/python-sdk/uv.lock b/packages/python-sdk/uv.lockindex e4de2a0fa..24c0205d9 100644--- a/packages/python-sdk/uv.lock+++ b/packages/python-sdk/uv.lock@@ -183,7 +183,7 @@ wheels = [[[package]]name = "e2b"-version = "2.41.0"+version = "2.42.0"source = { editable = "." }dependencies = [{ name = "attrs" },