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]5951f14e8195
diff --git a/.changeset/lucky-doors-listen.md b/.changeset/lucky-doors-listen.mddeleted file mode 100644index ad828c79f..000000000--- a/.changeset/lucky-doors-listen.md+++ /dev/null@@ -1,5 +0,0 @@-----'@e2b/cli': patch------Remove the `E2B_ACCESS_TOKEN` auth path. Authentication moved to Hydra OAuth, so the CLI no longer reads an access token — from the environment or from `~/.e2b/config.json` — to authorize API requests. The API key alone scopes every endpoint the CLI calls, and `e2b auth login` / `e2b auth configure` build their own clients with Hydra JWTs.diff --git a/.changeset/remove-access-token-option.md b/.changeset/remove-access-token-option.mddeleted file mode 100644index e80899696..000000000--- a/.changeset/remove-access-token-option.md+++ /dev/null@@ -1,28 +0,0 @@-----'e2b': minor-'@e2b/python-sdk': minor------Remove the deprecated `accessToken` / `access_token` option and its `E2B_ACCESS_TOKEN` environment fallback. E2B access tokens are no longer accepted for API authentication, so the SDKs no longer resolve one or send it as an `Authorization: Bearer` header — requests authenticate with the API key alone.--If you were relying on the option to send a bearer token to a custom deployment, pass the header directly, which is what the deprecation notice already pointed to:--```ts-// Before-const sandbox = await Sandbox.create({ accessToken: token })--// After-const sandbox = await Sandbox.create({- apiHeaders: { Authorization: `Bearer ${token}` },-})-```--```python-# Before-config = ConnectionConfig(access_token=token)--# After-config = ConnectionConfig(api_headers={"Authorization": f"Bearer {token}"})-```--Note that `Sandbox.envd_access_token` / `traffic_access_token` are unrelated per-sandbox tokens and are unaffected.diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex 9f87a2713..ccfce3449 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -1,5 +1,13 @@# @e2b/cli+## 2.16.2++### Patch Changes++- 65cd85d: Remove the `E2B_ACCESS_TOKEN` auth path. Authentication moved to Hydra OAuth, so the CLI no longer reads an access token — from the environment or from `~/.e2b/config.json` — to authorize API requests. The API key alone scopes every endpoint the CLI calls, and `e2b auth login` / `e2b auth configure` build their own clients with Hydra JWTs.+- Updated dependencies [6248b12]+## 2.16.1### Patch Changesdiff --git a/packages/cli/package.json b/packages/cli/package.jsonindex f675ab45b..42fc2bbfe 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@e2b/cli",- "version": "2.16.1",+ "version": "2.16.2","description": "CLI for managing e2b sandbox templates","homepage": "https://e2b.dev","license": "MIT",diff --git a/packages/js-sdk/CHANGELOG.md b/packages/js-sdk/CHANGELOG.mdindex 294b437a8..8c43c647a 100644--- a/packages/js-sdk/CHANGELOG.md+++ b/packages/js-sdk/CHANGELOG.md@@ -1,5 +1,33 @@# e2b+## 2.40.0++### Minor Changes++- 6248b12: Remove the deprecated `accessToken` / `access_token` option and its `E2B_ACCESS_TOKEN` environment fallback. E2B access tokens are no longer accepted for API authentication, so the SDKs no longer resolve one or send it as an `Authorization: Bearer` header — requests authenticate with the API key alone.++ If you were relying on the option to send a bearer token to a custom deployment, pass the header directly, which is what the deprecation notice already pointed to:++ ```ts+ // Before+ const sandbox = await Sandbox.create({ accessToken: token })++ // After+ const sandbox = await Sandbox.create({+ apiHeaders: { Authorization: `Bearer ${token}` },+ })+ ```++ ```python+ # Before+ config = ConnectionConfig(access_token=token)++ # After+ config = ConnectionConfig(api_headers={"Authorization": f"Bearer {token}"})+ ```++ Note that `Sandbox.envd_access_token` / `traffic_access_token` are unrelated per-sandbox tokens and are unaffected.+## 2.39.0### Minor Changesdiff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex 192d94467..6473c7ee8 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.39.0",+ "version": "2.40.0","description": "E2B SDK that give agents cloud environments","homepage": "https://e2b.dev","license": "MIT",diff --git a/packages/python-sdk/CHANGELOG.md b/packages/python-sdk/CHANGELOG.mdindex aa776dc67..091bfc804 100644--- a/packages/python-sdk/CHANGELOG.md+++ b/packages/python-sdk/CHANGELOG.md@@ -1,5 +1,33 @@# @e2b/python-sdk+## 2.40.0++### Minor Changes++- 6248b12: Remove the deprecated `accessToken` / `access_token` option and its `E2B_ACCESS_TOKEN` environment fallback. E2B access tokens are no longer accepted for API authentication, so the SDKs no longer resolve one or send it as an `Authorization: Bearer` header — requests authenticate with the API key alone.++ If you were relying on the option to send a bearer token to a custom deployment, pass the header directly, which is what the deprecation notice already pointed to:++ ```ts+ // Before+ const sandbox = await Sandbox.create({ accessToken: token })++ // After+ const sandbox = await Sandbox.create({+ apiHeaders: { Authorization: `Bearer ${token}` },+ })+ ```++ ```python+ # Before+ config = ConnectionConfig(access_token=token)++ # After+ config = ConnectionConfig(api_headers={"Authorization": f"Bearer {token}"})+ ```++ Note that `Sandbox.envd_access_token` / `traffic_access_token` are unrelated per-sandbox tokens and are unaffected.+## 2.39.1### Patch Changesdiff --git a/packages/python-sdk/package.json b/packages/python-sdk/package.jsonindex 1172673e9..b75ee2e9a 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.39.1",+ "version": "2.40.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 81a7383b0..2e473ccf3 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -1,6 +1,6 @@[project]name = "e2b"-version = "2.39.1"+version = "2.40.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 5ffcb5b20..de8f2eab2 100644--- a/packages/python-sdk/uv.lock+++ b/packages/python-sdk/uv.lock@@ -183,7 +183,7 @@ wheels = [[[package]]name = "e2b"-version = "2.39.1"+version = "2.40.0"source = { editable = "." }dependencies = [{ name = "attrs" },