---
description: Step-by-step Sandbox SDK 0.x tutorials for building AI agents, code executors, and testing pipelines.
title: Tutorials
image: https://developers.cloudflare.com/sandbox/sdk/tutorials/og.png?v=2b7eacdc0087751e
---

[Skip to content](#main-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.

# Tutorials

Last updated Sep 30, 2026|Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/sandbox/sdk/tutorials/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

Note

This page documents Sandbox SDK 0.x for existing applications. For new applications, refer to [Get started](https://developers.cloudflare.com/sandbox/get-started/). To move an existing application to `@cloudflare/sandbox` 1.0, refer to [Migrate from Sandbox SDK 0.x](https://developers.cloudflare.com/sandbox/sdk/migrate/).

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.](https://developers.cloudflare.com/sandbox/sdk/tutorials/openai-agents/)

[**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.](https://developers.cloudflare.com/sandbox/sdk/tutorials/workers-ai-code-interpreter/)

[**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.](https://developers.cloudflare.com/sandbox/sdk/tutorials/persistent-storage/)

[**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.](https://developers.cloudflare.com/sandbox/sdk/tutorials/ai-code-executor/)

[**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.](https://developers.cloudflare.com/sandbox/sdk/tutorials/analyze-data-with-ai/)

[**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.](https://developers.cloudflare.com/sandbox/sdk/tutorials/automated-testing-pipeline/)

[**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.](https://developers.cloudflare.com/sandbox/sdk/tutorials/code-review-bot/)

## Before you start

All tutorials assume you have:

- Completed the [Get Started guide](https://developers.cloudflare.com/sandbox/sdk/get-started/)
- Basic familiarity with [Workers](https://developers.cloudflare.com/workers/)
- [Docker ↗︎](https://www.docker.com/) installed and running

## Related resources

- [How-to guides](https://developers.cloudflare.com/sandbox/sdk/guides/) - Solve specific problems
- [API reference](https://developers.cloudflare.com/sandbox/sdk/api/) - Complete SDK reference

Was this helpful?

YesNo

## On this page

[![](https://developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://developers.cloudflare.com/)

```json
{"@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/"}}
```
