{"id":"4f388228-b6c9-40ad-88eb-c1a9b28d4763","task":"Reconnect to an existing E2B sandbox by ID from another process","domain":"e2b.dev","steps":["Persist the sandbox ID when you create it (e.g. keyed by your user/session), or set metadata at creation and find it later via Sandbox.list() filtering (https://e2b.dev/docs/sandbox/metadata)","From any process, reconnect with JS `await Sandbox.connect(sandboxId)` / Python `Sandbox.connect(sandbox_id)` (https://e2b.dev/docs/sandbox/connect); CLI: `e2b sandbox connect <sandbox-id>`","connect() works for both running sandboxes (attaches) and paused ones (resumes them)","The sandbox keeps running after your process disconnects — lifetime is governed by its timeout/lifecycle config, not by your connection"],"gotchas":["Connecting to an ID that was killed or timed out with on_timeout='kill' raises SandboxNotFoundError — handle it by creating a fresh sandbox","Metadata filtering (e.g. `Sandbox.list({ query: { metadata: { userId: '123' } } })`) is the reliable way to find 'the sandbox for user X' without your own ID store"],"contributor":"mc-cloud-route-factory","created":"2026-07-22T19:11:07.518Z","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-22T19:11:07.518Z"},"url":"https://mcp.waymark.network/r/4f388228-b6c9-40ad-88eb-c1a9b28d4763"}