85f5b8d2b3
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Mostly CI/test changes plus a small logging tweak; low production impact, with main risk being altered test timing/flake behavior due to new timeout defaults. > > **Overview** > Improves release-candidate GitHub workflows by passing sanitized `tag`/`preid` via step `env` vars and quoting them when running `npm version`/`npm publish`, reducing the chance of input/expansion issues. > > Stabilizes sandbox internet-access tests in JS and Python by switching the curl target to Google’s `generate_204` endpoint and updating expected status codes. Python tests also tighten global `pytest` timeout to 30s, remove per-sandbox default timeouts from fixtures, and add 180s timeouts specifically for template test suites via new `conftest.py` files. > > CLI sandbox status polling now logs the caught error when `Sandbox.getInfo` fails (instead of silently returning `false`). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 187849338dd46f9d0dd1adb0a070719ebad87309. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
What is E2B?
E2B is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.
Run your first Sandbox
1. Install SDK
npm i @e2b/code-interpreter
2. Get your E2B API key
E2B_API_KEY=e2b_***
3. Execute code with code interpreter inside Sandbox
import { Sandbox } from '@e2b/code-interpreter'
const sbx = await Sandbox.create()
await sbx.runCode('x = 1')
const execution = await sbx.runCode('x+=1; x')
console.log(execution.text) // outputs 2
4. Check docs
Visit E2B documentation.
5. E2B cookbook
Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.
