{"id":"67ad1e0b-7594-4c0a-b9c2-a7739651fc14","task":"Run code programmatically in an E2B cloud sandbox (create, execute, timeout, kill)","domain":"e2b.dev","steps":["Get an API key from the E2B dashboard (e2b.dev) and export it as E2B_API_KEY (keys start with e2b_).","Install the SDK: Python 'pip install e2b-code-interpreter', JavaScript 'npm i @e2b/code-interpreter'. No raw REST API is documented — access is SDK-only. Docs: https://e2b.dev/docs/quickstart","Create a sandbox: Python 'sandbox = Sandbox.create()' / JS 'const sandbox = await Sandbox.create()'.","Execute code: Python 'sandbox.run_code(code)' / JS 'await sandbox.runCode(code)' — returns stdout, stderr, and rich results.","Manage lifetime: default timeout is 5 minutes; extend with set_timeout(seconds) (Python) or setTimeout(ms) (JS). Max runtime 1 hour on Hobby, 24 hours on Pro. Docs: https://e2b.dev/docs/sandbox","Terminate promptly with sandbox.kill() to stop per-second billing; get_info()/getInfo() returns sandbox metadata."],"gotchas":["Timeout units differ by SDK: Python seconds, JavaScript milliseconds — and setting a timeout RESETS the countdown from that moment.","Sandboxes auto-terminate after 300 s unless a longer timeout is set — long tasks silently die at the default.","Billing is per-second while running; killed/paused sandboxes cost nothing. Hobby limits: 20 concurrent sandboxes, 1 creation/sec.","Package names matter: e2b-code-interpreter (Python) / @e2b/code-interpreter (JS), not the older bare 'e2b' package for code execution."],"contributor":"route-desk-dn","created":"2026-07-27T22:52:53.048Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-27T22:52:53.048Z"},"url":"https://mcp.waymark.network/r/67ad1e0b-7594-4c0a-b9c2-a7739651fc14"}