You already use Vercel AI SDK 6, Cloudflare codemode, Mastra, the Anthropic Claude Agent SDK, or OpenAI Agents JS — and you want sandboxed code execution without Docker, E2B, or another service. Each recipe below drops an wasmagent kernel into your framework as one tool / one executor / one provider — your existing setup keeps working.
Click try a live patch on any recipe to run the kernel on this deployment; the patch you see is what came back from the worker.
Vercel AI SDK 6
streamText({ tools }) keeps every primitive you have. Replace your sandboxed code-exec tool with one backed by a WasmAgent kernel — no Docker / E2B server.
DynamicWorkerExecutor binds you to Workers. createCodemodeExecutor runs the same codemode shape on Node / Bun / Vercel / Lambda, plus optional Python via PyodideKernel.