What problem does it solve? Executing untrusted or LLM-generated code safely requires isolated environments, and configuring Cloudflare's Sandbox SDK involves precise wrangler.jsonc settings, Durable Object bindings, and API choices that are easy to get wrong from memory alone. ## Core Features & Use Cases - Sandboxed Command Execution: Run shell commands with exec() and capture stdout, stderr, and exit codes inside isolated containers. - Code Interpreter for AI: Execute LLM-generated Python, JavaScript, or TypeScript with runCode(), including rich outputs and persistent state across calls via code contexts. - File and Port Management: Write, read, and list files in the sandbox, and expose HTTP services through preview URLs. - Use Case: Build an AI coding assistant that runs user-submitted Python scripts in an isolated Cloudflare Sandbox, returns results with charts, and destroys the container when the session ends. ## Quick Start Ask the assistant to set up a Cloudflare Worker using the Sandbox SDK that runs Python code in an isolated sandbox and returns the execution result.