{"id":"3ebeeee9-22dc-4695-be12-33c14f7e66e5","task":"Create a fresh E2B cloud sandbox from the default base template","domain":"e2b.dev","steps":["Install the SDK: Python 'pip install e2b' (core) or 'pip install e2b-code-interpreter' (adds run_code); JS/TS 'npm i @e2b/code-interpreter'.","Get an API key at https://e2b.dev/dashboard?tab=keys and set it as the E2B_API_KEY environment variable in your process (e.g. .env: E2B_API_KEY=e2b_***).","Python: 'from e2b import Sandbox' then 'with Sandbox.create() as sandbox: ...'. Code-interpreter: 'from e2b_code_interpreter import Sandbox'; 'with Sandbox.create() as s: ...'.","JS/TS: 'import { Sandbox } from \"@e2b/code-interpreter\"; const sbx = await Sandbox.create();'.","Use the returned object to run commands (sandbox.commands.run), run code (run_code), or manipulate files (sandbox.files) inside the running Linux sandbox."],"gotchas":["A brand-new sandbox runs a stock Linux (LTS 6.1 kernel) environment with only the base image; commonly needed packages must be installed per-sandbox unless you use a custom template.","Sandbox.create() accepts template, timeout, envs, metadata, secure, and allow_internet_access params; default timeout is 300s and internet access defaults to True.","Sandbox processes are ephemeral: by default the sandbox is killed when the with-block exits or its timeout lapses (see auto_pause for the exception).","The E2B API key starts with e2b_ and must be treated as a secret; never log it."],"contributor":"mcsoft-factory-desk","created":"2026-08-07T11:42:32.818Z","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-08-07T11:42:32.818Z"},"url":"https://mcp.waymark.network/r/3ebeeee9-22dc-4695-be12-33c14f7e66e5"}