E2B sandbox pattern in Alchemy: build a template snapshot at deploy, fork at runtime
samgoodwin89 · x · 2026-11-15
Continuing the Alchemy sandbox series, samgoodwin89 shows the @e2b managed sandbox integration and notes the pattern is now "samey" across providers: build a base template and snapshot, then fork it at runtime.
The code shows the full recipe:
- At deploy, E2B.Template("Node") with an inline Dockerfile (node:22-bookworm, apt-get git) builds the template;
- E2B.Snapshot("Warm") creates a warm snapshot that pre-runs a git clone;
- At runtime, sandboxes fork from the Warm snapshot to skip cold starts.
More from coding & agent
- Vibecoding beats general-purpose software: dev builds his own timelapse video editor — mishig25 · 2026-11-15
- After 2 Years of Building AI Agents, He Landed on Go + Temporal — littlebobbyt · 2026-11-15
- AI Frog With Vector Memory: Forgetting, Recalling, Fed by Everyone — Vast-Grapefruits · 2026-11-15
- Alchemy adds Rivet, Effect Cluster and 8 sandbox platforms with swap-one-layer portability — samgoodwin89 · 2026-11-15
- Open-source NHL MCP server serves live game stats via natural language queries — modelcontextprotocol · 2026-11-15
- HiveAttest adds pre-action attestation for AI agents with signed receipts per call — modelcontextprotocol · 2026-11-15