Tutorials (16)

Last updated Sep 30, 2026 Note

This page documents Sandbox SDK 0.x for existing applications. For new applications, refer to Get started. To move an existing application to @cloudflare/sandbox 1.0, refer to Migrate from Sandbox SDK 0.x.

Learn how to build applications with Sandbox SDK through step-by-step tutorials. Each tutorial takes 20-30 minutes.

Build an AI coding agent with OpenAI Agents SDK (Sandbox SDK 0.x) Use the OpenAI Agents SDK with the Sandbox SDK 0.x to build a Python agent that writes, tests, and delivers code in an isolated environment.

Code interpreter with Workers AI (Sandbox SDK 0.x) Build a Sandbox SDK 0.x code interpreter using the Workers AI GPT-OSS model and the workers-ai-provider package.

Data persistence with R2 (Sandbox SDK 0.x) Mount R2 buckets as local filesystem paths with the Sandbox SDK 0.x to persist data across sandbox lifecycles.

Build an AI code executor (Sandbox SDK 0.x) Use Claude to generate Python code from natural language and run it in Sandbox SDK 0.x sandboxes.

Analyze data with AI (Sandbox SDK 0.x) Upload CSV files, generate analysis code with Claude, and return visualizations with the Sandbox SDK 0.x.

Automated testing pipeline (Sandbox SDK 0.x) Build a Sandbox SDK 0.x testing pipeline that clones Git repositories, installs dependencies, runs tests, and reports results.

Build a code review bot (Sandbox SDK 0.x) Clone repositories, analyze code with Claude, and post review comments to GitHub pull requests with the Sandbox SDK 0.x.

Before you start

All tutorials assume you have:

Was this helpful?

YesNo

On this page

Tutorials (16) - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/sandbox/sdk/tutorials/#page","headline":"Tutorials","description":"Step-by-step Sandbox SDK 0.x tutorials for building AI agents, code executors, and testing pipelines.","url":"https://developers.cloudflare.com/sandbox/sdk/tutorials/","inLanguage":"en","image":"https://developers.cloudflare.com/sandbox/sdk/tutorials/og.png?v=2b7eacdc0087751e","dateModified":"2026-09-30","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Use Claude to generate Python code from natural language and run it in Sandbox SDK 0.x sandboxes. title: Build an AI code executor image: https://developers.cloudflare.com/sandbox/sdk/tutorials/ai-code-executor/og.png?v=2376b752f8ce3735


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/sandbox/llms.txt
Use this file to discover all available pages before exploring further.