[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-cloudflare-sandbox-sdk":3,"mdc-bjqqje-key":40,"related-repo-cloudflare-sandbox-sdk":2027,"related-org-cloudflare-sandbox-sdk":2137},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":35,"sourceUrl":38,"mdContent":39},"sandbox-sdk","build sandboxed code execution apps on Cloudflare","Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI\u002FCD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"cloudflare","Cloudflare","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fcloudflare.jpg",[12,16,17,20,23],{"name":13,"slug":14,"type":15},"Cloudflare Workers","cloudflare-workers","tag",{"name":9,"slug":8,"type":15},{"name":18,"slug":19,"type":15},"Sandboxing","sandboxing",{"name":21,"slug":22,"type":15},"Code Execution","code-execution",{"name":24,"slug":25,"type":15},"Serverless","serverless",2112,"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fskills","2026-04-06T18:07:37.89439",null,192,[32,8,33,34],"agents","skills","workers",{"repoUrl":27,"stars":26,"forks":30,"topics":36,"description":37},[32,8,33,34],"Skills for teaching agents how to build on Cloudflare.","https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fsandbox-sdk","---\nname: sandbox-sdk\ndescription: Build sandboxed applications for secure code execution. Load when building AI code execution, code interpreters, CI\u002FCD systems, interactive dev environments, or executing untrusted code. Covers Sandbox SDK lifecycle, commands, files, code interpreter, and preview URLs. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.\n---\n\n# Cloudflare Sandbox SDK\n\nBuild secure, isolated code execution environments on Cloudflare Workers.\n\n## FIRST: Verify Installation\n\n```bash\nnpm install @cloudflare\u002Fsandbox\ndocker info  # Must succeed - Docker required for local dev\n```\n\n## Retrieval Sources\n\nYour knowledge of the Sandbox SDK may be outdated. **Prefer retrieval over pre-training** for any Sandbox SDK task.\n\n| Resource | URL |\n|----------|-----|\n| Docs | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002F |\n| API Reference | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fapi\u002F |\n| Examples | https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fsandbox-sdk\u002Ftree\u002Fmain\u002Fexamples |\n| Get Started | https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fget-started\u002F |\n\nWhen implementing features, fetch the relevant doc page or example first.\n\n## Required Configuration\n\n**wrangler.jsonc** (exact - do not modify structure):\n\n```jsonc\n{\n  \"containers\": [{\n    \"class_name\": \"Sandbox\",\n    \"image\": \".\u002FDockerfile\",\n    \"instance_type\": \"lite\",\n    \"max_instances\": 1\n  }],\n  \"durable_objects\": {\n    \"bindings\": [{ \"class_name\": \"Sandbox\", \"name\": \"Sandbox\" }]\n  },\n  \"migrations\": [{ \"new_sqlite_classes\": [\"Sandbox\"], \"tag\": \"v1\" }]\n}\n```\n\n**Worker entry** - must re-export Sandbox class:\n\n```typescript\nimport { getSandbox } from '@cloudflare\u002Fsandbox';\nexport { Sandbox } from '@cloudflare\u002Fsandbox';  \u002F\u002F Required export\n```\n\n## Quick Reference\n\n| Task | Method |\n|------|--------|\n| Get sandbox | `getSandbox(env.Sandbox, 'user-123')` |\n| Run command | `await sandbox.exec('python script.py')` |\n| Run code (interpreter) | `await sandbox.runCode(code, { language: 'python' })` |\n| Write file | `await sandbox.writeFile('\u002Fworkspace\u002Fapp.py', content)` |\n| Read file | `await sandbox.readFile('\u002Fworkspace\u002Fapp.py')` |\n| Create directory | `await sandbox.mkdir('\u002Fworkspace\u002Fsrc', { recursive: true })` |\n| List files | `await sandbox.listFiles('\u002Fworkspace')` |\n| Expose port | `await sandbox.exposePort(8080)` |\n| Destroy | `await sandbox.destroy()` |\n\n## Core Patterns\n\n### Execute Commands\n\n```typescript\nconst sandbox = getSandbox(env.Sandbox, 'user-123');\nconst result = await sandbox.exec('python --version');\n\u002F\u002F result: { stdout, stderr, exitCode, success }\n```\n\n### Code Interpreter (Recommended for AI)\n\nUse `runCode()` for executing LLM-generated code with rich outputs:\n\n```typescript\nconst ctx = await sandbox.createCodeContext({ language: 'python' });\n\nawait sandbox.runCode('import pandas as pd; data = [1,2,3]', { context: ctx });\nconst result = await sandbox.runCode('sum(data)', { context: ctx });\n\u002F\u002F result.results[0].text = \"6\"\n```\n\n**Languages**: `python`, `javascript`, `typescript`\n\nState persists within context. Create explicit contexts for production.\n\n### File Operations\n\n```typescript\nawait sandbox.mkdir('\u002Fworkspace\u002Fproject', { recursive: true });\nawait sandbox.writeFile('\u002Fworkspace\u002Fproject\u002Fmain.py', code);\nconst file = await sandbox.readFile('\u002Fworkspace\u002Fproject\u002Fmain.py');\nconst files = await sandbox.listFiles('\u002Fworkspace\u002Fproject');\n```\n\n## When to Use What\n\n| Need | Use | Why |\n|------|-----|-----|\n| Shell commands, scripts | `exec()` | Direct control, streaming |\n| LLM-generated code | `runCode()` | Rich outputs, state persistence |\n| Build\u002Ftest pipelines | `exec()` | Exit codes, stderr capture |\n| Data analysis | `runCode()` | Charts, tables, pandas |\n\n## Extending the Dockerfile\n\nBase image (`docker.io\u002Fcloudflare\u002Fsandbox:0.7.0`) includes Python 3.11, Node.js 20, and common tools.\n\nAdd dependencies by extending the Dockerfile:\n\n```dockerfile\nFROM docker.io\u002Fcloudflare\u002Fsandbox:0.7.0\n\n# Python packages\nRUN pip install requests beautifulsoup4\n\n# Node packages (global)\nRUN npm install -g typescript\n\n# System packages\nRUN apt-get update && apt-get install -y ffmpeg && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n\nEXPOSE 8080  # Required for local dev port exposure\n```\n\nKeep images lean - affects cold start time.\n\n## Preview URLs (Port Exposure)\n\nExpose HTTP services running in sandboxes:\n\n```typescript\nconst { url } = await sandbox.exposePort(8080);\n\u002F\u002F Returns preview URL for the service\n```\n\n**Production requirement**: Preview URLs need a custom domain with wildcard DNS (`*.yourdomain.com`). The `.workers.dev` domain does not support preview URL subdomains.\n\nSee: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fguides\u002Fexpose-services\u002F\n\n## OpenAI Agents SDK Integration\n\nThe SDK provides helpers for OpenAI Agents at `@cloudflare\u002Fsandbox\u002Fopenai`:\n\n```typescript\nimport { Shell, Editor } from '@cloudflare\u002Fsandbox\u002Fopenai';\n```\n\nSee `examples\u002Fopenai-agents` for complete integration pattern.\n\n## Sandbox Lifecycle\n\n- `getSandbox()` returns immediately - container starts lazily on first operation\n- Containers sleep after 10 minutes of inactivity (configurable via `sleepAfter`)\n- Use `destroy()` to immediately free resources\n- Same `sandboxId` always returns same sandbox instance\n\n## Anti-Patterns\n\n- **Don't use internal clients** (`CommandClient`, `FileClient`) - use `sandbox.*` methods\n- **Don't skip the Sandbox export** - Worker won't deploy without `export { Sandbox }`\n- **Don't hardcode sandbox IDs for multi-user** - use user\u002Fsession identifiers\n- **Don't forget cleanup** - call `destroy()` for temporary sandboxes\n\n## Detailed References\n\n- **[references\u002Fapi-quick-ref.md](references\u002Fapi-quick-ref.md)** - Full API with options and return types\n- **[references\u002Fexamples.md](references\u002Fexamples.md)** - Example index with use cases\n",{"data":41,"body":42},{"name":4,"description":6},{"type":43,"children":44},"root",[45,54,60,67,122,128,141,239,244,250,260,375,385,492,498,673,679,686,828,834,847,1101,1130,1135,1141,1384,1390,1502,1508,1521,1526,1627,1632,1638,1643,1718,1744,1755,1761,1773,1829,1842,1848,1901,1907,1986,1992,2021],{"type":46,"tag":47,"props":48,"children":50},"element","h1",{"id":49},"cloudflare-sandbox-sdk",[51],{"type":52,"value":53},"text","Cloudflare Sandbox SDK",{"type":46,"tag":55,"props":56,"children":57},"p",{},[58],{"type":52,"value":59},"Build secure, isolated code execution environments on Cloudflare Workers.",{"type":46,"tag":61,"props":62,"children":64},"h2",{"id":63},"first-verify-installation",[65],{"type":52,"value":66},"FIRST: Verify Installation",{"type":46,"tag":68,"props":69,"children":74},"pre",{"className":70,"code":71,"language":72,"meta":73,"style":73},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @cloudflare\u002Fsandbox\ndocker info  # Must succeed - Docker required for local dev\n","bash","",[75],{"type":46,"tag":76,"props":77,"children":78},"code",{"__ignoreMap":73},[79,102],{"type":46,"tag":80,"props":81,"children":84},"span",{"class":82,"line":83},"line",1,[85,91,97],{"type":46,"tag":80,"props":86,"children":88},{"style":87},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[89],{"type":52,"value":90},"npm",{"type":46,"tag":80,"props":92,"children":94},{"style":93},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[95],{"type":52,"value":96}," install",{"type":46,"tag":80,"props":98,"children":99},{"style":93},[100],{"type":52,"value":101}," @cloudflare\u002Fsandbox\n",{"type":46,"tag":80,"props":103,"children":105},{"class":82,"line":104},2,[106,111,116],{"type":46,"tag":80,"props":107,"children":108},{"style":87},[109],{"type":52,"value":110},"docker",{"type":46,"tag":80,"props":112,"children":113},{"style":93},[114],{"type":52,"value":115}," info",{"type":46,"tag":80,"props":117,"children":119},{"style":118},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[120],{"type":52,"value":121},"  # Must succeed - Docker required for local dev\n",{"type":46,"tag":61,"props":123,"children":125},{"id":124},"retrieval-sources",[126],{"type":52,"value":127},"Retrieval Sources",{"type":46,"tag":55,"props":129,"children":130},{},[131,133,139],{"type":52,"value":132},"Your knowledge of the Sandbox SDK may be outdated. ",{"type":46,"tag":134,"props":135,"children":136},"strong",{},[137],{"type":52,"value":138},"Prefer retrieval over pre-training",{"type":52,"value":140}," for any Sandbox SDK task.",{"type":46,"tag":142,"props":143,"children":144},"table",{},[145,164],{"type":46,"tag":146,"props":147,"children":148},"thead",{},[149],{"type":46,"tag":150,"props":151,"children":152},"tr",{},[153,159],{"type":46,"tag":154,"props":155,"children":156},"th",{},[157],{"type":52,"value":158},"Resource",{"type":46,"tag":154,"props":160,"children":161},{},[162],{"type":52,"value":163},"URL",{"type":46,"tag":165,"props":166,"children":167},"tbody",{},[168,188,205,222],{"type":46,"tag":150,"props":169,"children":170},{},[171,177],{"type":46,"tag":172,"props":173,"children":174},"td",{},[175],{"type":52,"value":176},"Docs",{"type":46,"tag":172,"props":178,"children":179},{},[180],{"type":46,"tag":181,"props":182,"children":186},"a",{"href":183,"rel":184},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002F",[185],"nofollow",[187],{"type":52,"value":183},{"type":46,"tag":150,"props":189,"children":190},{},[191,196],{"type":46,"tag":172,"props":192,"children":193},{},[194],{"type":52,"value":195},"API Reference",{"type":46,"tag":172,"props":197,"children":198},{},[199],{"type":46,"tag":181,"props":200,"children":203},{"href":201,"rel":202},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fapi\u002F",[185],[204],{"type":52,"value":201},{"type":46,"tag":150,"props":206,"children":207},{},[208,213],{"type":46,"tag":172,"props":209,"children":210},{},[211],{"type":52,"value":212},"Examples",{"type":46,"tag":172,"props":214,"children":215},{},[216],{"type":46,"tag":181,"props":217,"children":220},{"href":218,"rel":219},"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fsandbox-sdk\u002Ftree\u002Fmain\u002Fexamples",[185],[221],{"type":52,"value":218},{"type":46,"tag":150,"props":223,"children":224},{},[225,230],{"type":46,"tag":172,"props":226,"children":227},{},[228],{"type":52,"value":229},"Get Started",{"type":46,"tag":172,"props":231,"children":232},{},[233],{"type":46,"tag":181,"props":234,"children":237},{"href":235,"rel":236},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fget-started\u002F",[185],[238],{"type":52,"value":235},{"type":46,"tag":55,"props":240,"children":241},{},[242],{"type":52,"value":243},"When implementing features, fetch the relevant doc page or example first.",{"type":46,"tag":61,"props":245,"children":247},{"id":246},"required-configuration",[248],{"type":52,"value":249},"Required Configuration",{"type":46,"tag":55,"props":251,"children":252},{},[253,258],{"type":46,"tag":134,"props":254,"children":255},{},[256],{"type":52,"value":257},"wrangler.jsonc",{"type":52,"value":259}," (exact - do not modify structure):",{"type":46,"tag":68,"props":261,"children":265},{"className":262,"code":263,"language":264,"meta":73,"style":73},"language-jsonc shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"containers\": [{\n    \"class_name\": \"Sandbox\",\n    \"image\": \".\u002FDockerfile\",\n    \"instance_type\": \"lite\",\n    \"max_instances\": 1\n  }],\n  \"durable_objects\": {\n    \"bindings\": [{ \"class_name\": \"Sandbox\", \"name\": \"Sandbox\" }]\n  },\n  \"migrations\": [{ \"new_sqlite_classes\": [\"Sandbox\"], \"tag\": \"v1\" }]\n}\n","jsonc",[266],{"type":46,"tag":76,"props":267,"children":268},{"__ignoreMap":73},[269,277,285,294,303,312,321,330,339,348,357,366],{"type":46,"tag":80,"props":270,"children":271},{"class":82,"line":83},[272],{"type":46,"tag":80,"props":273,"children":274},{},[275],{"type":52,"value":276},"{\n",{"type":46,"tag":80,"props":278,"children":279},{"class":82,"line":104},[280],{"type":46,"tag":80,"props":281,"children":282},{},[283],{"type":52,"value":284},"  \"containers\": [{\n",{"type":46,"tag":80,"props":286,"children":288},{"class":82,"line":287},3,[289],{"type":46,"tag":80,"props":290,"children":291},{},[292],{"type":52,"value":293},"    \"class_name\": \"Sandbox\",\n",{"type":46,"tag":80,"props":295,"children":297},{"class":82,"line":296},4,[298],{"type":46,"tag":80,"props":299,"children":300},{},[301],{"type":52,"value":302},"    \"image\": \".\u002FDockerfile\",\n",{"type":46,"tag":80,"props":304,"children":306},{"class":82,"line":305},5,[307],{"type":46,"tag":80,"props":308,"children":309},{},[310],{"type":52,"value":311},"    \"instance_type\": \"lite\",\n",{"type":46,"tag":80,"props":313,"children":315},{"class":82,"line":314},6,[316],{"type":46,"tag":80,"props":317,"children":318},{},[319],{"type":52,"value":320},"    \"max_instances\": 1\n",{"type":46,"tag":80,"props":322,"children":324},{"class":82,"line":323},7,[325],{"type":46,"tag":80,"props":326,"children":327},{},[328],{"type":52,"value":329},"  }],\n",{"type":46,"tag":80,"props":331,"children":333},{"class":82,"line":332},8,[334],{"type":46,"tag":80,"props":335,"children":336},{},[337],{"type":52,"value":338},"  \"durable_objects\": {\n",{"type":46,"tag":80,"props":340,"children":342},{"class":82,"line":341},9,[343],{"type":46,"tag":80,"props":344,"children":345},{},[346],{"type":52,"value":347},"    \"bindings\": [{ \"class_name\": \"Sandbox\", \"name\": \"Sandbox\" }]\n",{"type":46,"tag":80,"props":349,"children":351},{"class":82,"line":350},10,[352],{"type":46,"tag":80,"props":353,"children":354},{},[355],{"type":52,"value":356},"  },\n",{"type":46,"tag":80,"props":358,"children":360},{"class":82,"line":359},11,[361],{"type":46,"tag":80,"props":362,"children":363},{},[364],{"type":52,"value":365},"  \"migrations\": [{ \"new_sqlite_classes\": [\"Sandbox\"], \"tag\": \"v1\" }]\n",{"type":46,"tag":80,"props":367,"children":369},{"class":82,"line":368},12,[370],{"type":46,"tag":80,"props":371,"children":372},{},[373],{"type":52,"value":374},"}\n",{"type":46,"tag":55,"props":376,"children":377},{},[378,383],{"type":46,"tag":134,"props":379,"children":380},{},[381],{"type":52,"value":382},"Worker entry",{"type":52,"value":384}," - must re-export Sandbox class:",{"type":46,"tag":68,"props":386,"children":390},{"className":387,"code":388,"language":389,"meta":73,"style":73},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { getSandbox } from '@cloudflare\u002Fsandbox';\nexport { Sandbox } from '@cloudflare\u002Fsandbox';  \u002F\u002F Required export\n","typescript",[391],{"type":46,"tag":76,"props":392,"children":393},{"__ignoreMap":73},[394,445],{"type":46,"tag":80,"props":395,"children":396},{"class":82,"line":83},[397,403,409,415,420,425,430,435,440],{"type":46,"tag":80,"props":398,"children":400},{"style":399},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[401],{"type":52,"value":402},"import",{"type":46,"tag":80,"props":404,"children":406},{"style":405},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[407],{"type":52,"value":408}," {",{"type":46,"tag":80,"props":410,"children":412},{"style":411},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[413],{"type":52,"value":414}," getSandbox",{"type":46,"tag":80,"props":416,"children":417},{"style":405},[418],{"type":52,"value":419}," }",{"type":46,"tag":80,"props":421,"children":422},{"style":399},[423],{"type":52,"value":424}," from",{"type":46,"tag":80,"props":426,"children":427},{"style":405},[428],{"type":52,"value":429}," '",{"type":46,"tag":80,"props":431,"children":432},{"style":93},[433],{"type":52,"value":434},"@cloudflare\u002Fsandbox",{"type":46,"tag":80,"props":436,"children":437},{"style":405},[438],{"type":52,"value":439},"'",{"type":46,"tag":80,"props":441,"children":442},{"style":405},[443],{"type":52,"value":444},";\n",{"type":46,"tag":80,"props":446,"children":447},{"class":82,"line":104},[448,453,457,462,466,470,474,478,482,487],{"type":46,"tag":80,"props":449,"children":450},{"style":399},[451],{"type":52,"value":452},"export",{"type":46,"tag":80,"props":454,"children":455},{"style":405},[456],{"type":52,"value":408},{"type":46,"tag":80,"props":458,"children":459},{"style":411},[460],{"type":52,"value":461}," Sandbox",{"type":46,"tag":80,"props":463,"children":464},{"style":405},[465],{"type":52,"value":419},{"type":46,"tag":80,"props":467,"children":468},{"style":399},[469],{"type":52,"value":424},{"type":46,"tag":80,"props":471,"children":472},{"style":405},[473],{"type":52,"value":429},{"type":46,"tag":80,"props":475,"children":476},{"style":93},[477],{"type":52,"value":434},{"type":46,"tag":80,"props":479,"children":480},{"style":405},[481],{"type":52,"value":439},{"type":46,"tag":80,"props":483,"children":484},{"style":405},[485],{"type":52,"value":486},";",{"type":46,"tag":80,"props":488,"children":489},{"style":118},[490],{"type":52,"value":491},"  \u002F\u002F Required export\n",{"type":46,"tag":61,"props":493,"children":495},{"id":494},"quick-reference",[496],{"type":52,"value":497},"Quick Reference",{"type":46,"tag":142,"props":499,"children":500},{},[501,517],{"type":46,"tag":146,"props":502,"children":503},{},[504],{"type":46,"tag":150,"props":505,"children":506},{},[507,512],{"type":46,"tag":154,"props":508,"children":509},{},[510],{"type":52,"value":511},"Task",{"type":46,"tag":154,"props":513,"children":514},{},[515],{"type":52,"value":516},"Method",{"type":46,"tag":165,"props":518,"children":519},{},[520,537,554,571,588,605,622,639,656],{"type":46,"tag":150,"props":521,"children":522},{},[523,528],{"type":46,"tag":172,"props":524,"children":525},{},[526],{"type":52,"value":527},"Get sandbox",{"type":46,"tag":172,"props":529,"children":530},{},[531],{"type":46,"tag":76,"props":532,"children":534},{"className":533},[],[535],{"type":52,"value":536},"getSandbox(env.Sandbox, 'user-123')",{"type":46,"tag":150,"props":538,"children":539},{},[540,545],{"type":46,"tag":172,"props":541,"children":542},{},[543],{"type":52,"value":544},"Run command",{"type":46,"tag":172,"props":546,"children":547},{},[548],{"type":46,"tag":76,"props":549,"children":551},{"className":550},[],[552],{"type":52,"value":553},"await sandbox.exec('python script.py')",{"type":46,"tag":150,"props":555,"children":556},{},[557,562],{"type":46,"tag":172,"props":558,"children":559},{},[560],{"type":52,"value":561},"Run code (interpreter)",{"type":46,"tag":172,"props":563,"children":564},{},[565],{"type":46,"tag":76,"props":566,"children":568},{"className":567},[],[569],{"type":52,"value":570},"await sandbox.runCode(code, { language: 'python' })",{"type":46,"tag":150,"props":572,"children":573},{},[574,579],{"type":46,"tag":172,"props":575,"children":576},{},[577],{"type":52,"value":578},"Write file",{"type":46,"tag":172,"props":580,"children":581},{},[582],{"type":46,"tag":76,"props":583,"children":585},{"className":584},[],[586],{"type":52,"value":587},"await sandbox.writeFile('\u002Fworkspace\u002Fapp.py', content)",{"type":46,"tag":150,"props":589,"children":590},{},[591,596],{"type":46,"tag":172,"props":592,"children":593},{},[594],{"type":52,"value":595},"Read file",{"type":46,"tag":172,"props":597,"children":598},{},[599],{"type":46,"tag":76,"props":600,"children":602},{"className":601},[],[603],{"type":52,"value":604},"await sandbox.readFile('\u002Fworkspace\u002Fapp.py')",{"type":46,"tag":150,"props":606,"children":607},{},[608,613],{"type":46,"tag":172,"props":609,"children":610},{},[611],{"type":52,"value":612},"Create directory",{"type":46,"tag":172,"props":614,"children":615},{},[616],{"type":46,"tag":76,"props":617,"children":619},{"className":618},[],[620],{"type":52,"value":621},"await sandbox.mkdir('\u002Fworkspace\u002Fsrc', { recursive: true })",{"type":46,"tag":150,"props":623,"children":624},{},[625,630],{"type":46,"tag":172,"props":626,"children":627},{},[628],{"type":52,"value":629},"List files",{"type":46,"tag":172,"props":631,"children":632},{},[633],{"type":46,"tag":76,"props":634,"children":636},{"className":635},[],[637],{"type":52,"value":638},"await sandbox.listFiles('\u002Fworkspace')",{"type":46,"tag":150,"props":640,"children":641},{},[642,647],{"type":46,"tag":172,"props":643,"children":644},{},[645],{"type":52,"value":646},"Expose port",{"type":46,"tag":172,"props":648,"children":649},{},[650],{"type":46,"tag":76,"props":651,"children":653},{"className":652},[],[654],{"type":52,"value":655},"await sandbox.exposePort(8080)",{"type":46,"tag":150,"props":657,"children":658},{},[659,664],{"type":46,"tag":172,"props":660,"children":661},{},[662],{"type":52,"value":663},"Destroy",{"type":46,"tag":172,"props":665,"children":666},{},[667],{"type":46,"tag":76,"props":668,"children":670},{"className":669},[],[671],{"type":52,"value":672},"await sandbox.destroy()",{"type":46,"tag":61,"props":674,"children":676},{"id":675},"core-patterns",[677],{"type":52,"value":678},"Core Patterns",{"type":46,"tag":680,"props":681,"children":683},"h3",{"id":682},"execute-commands",[684],{"type":52,"value":685},"Execute Commands",{"type":46,"tag":68,"props":687,"children":689},{"className":387,"code":688,"language":389,"meta":73,"style":73},"const sandbox = getSandbox(env.Sandbox, 'user-123');\nconst result = await sandbox.exec('python --version');\n\u002F\u002F result: { stdout, stderr, exitCode, success }\n",[690],{"type":46,"tag":76,"props":691,"children":692},{"__ignoreMap":73},[693,759,820],{"type":46,"tag":80,"props":694,"children":695},{"class":82,"line":83},[696,702,707,712,717,722,727,732,737,741,746,750,755],{"type":46,"tag":80,"props":697,"children":699},{"style":698},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[700],{"type":52,"value":701},"const",{"type":46,"tag":80,"props":703,"children":704},{"style":411},[705],{"type":52,"value":706}," sandbox ",{"type":46,"tag":80,"props":708,"children":709},{"style":405},[710],{"type":52,"value":711},"=",{"type":46,"tag":80,"props":713,"children":715},{"style":714},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[716],{"type":52,"value":414},{"type":46,"tag":80,"props":718,"children":719},{"style":411},[720],{"type":52,"value":721},"(env",{"type":46,"tag":80,"props":723,"children":724},{"style":405},[725],{"type":52,"value":726},".",{"type":46,"tag":80,"props":728,"children":729},{"style":411},[730],{"type":52,"value":731},"Sandbox",{"type":46,"tag":80,"props":733,"children":734},{"style":405},[735],{"type":52,"value":736},",",{"type":46,"tag":80,"props":738,"children":739},{"style":405},[740],{"type":52,"value":429},{"type":46,"tag":80,"props":742,"children":743},{"style":93},[744],{"type":52,"value":745},"user-123",{"type":46,"tag":80,"props":747,"children":748},{"style":405},[749],{"type":52,"value":439},{"type":46,"tag":80,"props":751,"children":752},{"style":411},[753],{"type":52,"value":754},")",{"type":46,"tag":80,"props":756,"children":757},{"style":405},[758],{"type":52,"value":444},{"type":46,"tag":80,"props":760,"children":761},{"class":82,"line":104},[762,766,771,775,780,785,789,794,799,803,808,812,816],{"type":46,"tag":80,"props":763,"children":764},{"style":698},[765],{"type":52,"value":701},{"type":46,"tag":80,"props":767,"children":768},{"style":411},[769],{"type":52,"value":770}," result ",{"type":46,"tag":80,"props":772,"children":773},{"style":405},[774],{"type":52,"value":711},{"type":46,"tag":80,"props":776,"children":777},{"style":399},[778],{"type":52,"value":779}," await",{"type":46,"tag":80,"props":781,"children":782},{"style":411},[783],{"type":52,"value":784}," sandbox",{"type":46,"tag":80,"props":786,"children":787},{"style":405},[788],{"type":52,"value":726},{"type":46,"tag":80,"props":790,"children":791},{"style":714},[792],{"type":52,"value":793},"exec",{"type":46,"tag":80,"props":795,"children":796},{"style":411},[797],{"type":52,"value":798},"(",{"type":46,"tag":80,"props":800,"children":801},{"style":405},[802],{"type":52,"value":439},{"type":46,"tag":80,"props":804,"children":805},{"style":93},[806],{"type":52,"value":807},"python --version",{"type":46,"tag":80,"props":809,"children":810},{"style":405},[811],{"type":52,"value":439},{"type":46,"tag":80,"props":813,"children":814},{"style":411},[815],{"type":52,"value":754},{"type":46,"tag":80,"props":817,"children":818},{"style":405},[819],{"type":52,"value":444},{"type":46,"tag":80,"props":821,"children":822},{"class":82,"line":287},[823],{"type":46,"tag":80,"props":824,"children":825},{"style":118},[826],{"type":52,"value":827},"\u002F\u002F result: { stdout, stderr, exitCode, success }\n",{"type":46,"tag":680,"props":829,"children":831},{"id":830},"code-interpreter-recommended-for-ai",[832],{"type":52,"value":833},"Code Interpreter (Recommended for AI)",{"type":46,"tag":55,"props":835,"children":836},{},[837,839,845],{"type":52,"value":838},"Use ",{"type":46,"tag":76,"props":840,"children":842},{"className":841},[],[843],{"type":52,"value":844},"runCode()",{"type":52,"value":846}," for executing LLM-generated code with rich outputs:",{"type":46,"tag":68,"props":848,"children":850},{"className":387,"code":849,"language":389,"meta":73,"style":73},"const ctx = await sandbox.createCodeContext({ language: 'python' });\n\nawait sandbox.runCode('import pandas as pd; data = [1,2,3]', { context: ctx });\nconst result = await sandbox.runCode('sum(data)', { context: ctx });\n\u002F\u002F result.results[0].text = \"6\"\n",[851],{"type":46,"tag":76,"props":852,"children":853},{"__ignoreMap":73},[854,932,941,1013,1093],{"type":46,"tag":80,"props":855,"children":856},{"class":82,"line":83},[857,861,866,870,874,878,882,887,891,896,902,907,911,916,920,924,928],{"type":46,"tag":80,"props":858,"children":859},{"style":698},[860],{"type":52,"value":701},{"type":46,"tag":80,"props":862,"children":863},{"style":411},[864],{"type":52,"value":865}," ctx ",{"type":46,"tag":80,"props":867,"children":868},{"style":405},[869],{"type":52,"value":711},{"type":46,"tag":80,"props":871,"children":872},{"style":399},[873],{"type":52,"value":779},{"type":46,"tag":80,"props":875,"children":876},{"style":411},[877],{"type":52,"value":784},{"type":46,"tag":80,"props":879,"children":880},{"style":405},[881],{"type":52,"value":726},{"type":46,"tag":80,"props":883,"children":884},{"style":714},[885],{"type":52,"value":886},"createCodeContext",{"type":46,"tag":80,"props":888,"children":889},{"style":411},[890],{"type":52,"value":798},{"type":46,"tag":80,"props":892,"children":893},{"style":405},[894],{"type":52,"value":895},"{",{"type":46,"tag":80,"props":897,"children":899},{"style":898},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[900],{"type":52,"value":901}," language",{"type":46,"tag":80,"props":903,"children":904},{"style":405},[905],{"type":52,"value":906},":",{"type":46,"tag":80,"props":908,"children":909},{"style":405},[910],{"type":52,"value":429},{"type":46,"tag":80,"props":912,"children":913},{"style":93},[914],{"type":52,"value":915},"python",{"type":46,"tag":80,"props":917,"children":918},{"style":405},[919],{"type":52,"value":439},{"type":46,"tag":80,"props":921,"children":922},{"style":405},[923],{"type":52,"value":419},{"type":46,"tag":80,"props":925,"children":926},{"style":411},[927],{"type":52,"value":754},{"type":46,"tag":80,"props":929,"children":930},{"style":405},[931],{"type":52,"value":444},{"type":46,"tag":80,"props":933,"children":934},{"class":82,"line":104},[935],{"type":46,"tag":80,"props":936,"children":938},{"emptyLinePlaceholder":937},true,[939],{"type":52,"value":940},"\n",{"type":46,"tag":80,"props":942,"children":943},{"class":82,"line":287},[944,949,953,957,962,966,970,975,979,983,987,992,996,1000,1005,1009],{"type":46,"tag":80,"props":945,"children":946},{"style":399},[947],{"type":52,"value":948},"await",{"type":46,"tag":80,"props":950,"children":951},{"style":411},[952],{"type":52,"value":784},{"type":46,"tag":80,"props":954,"children":955},{"style":405},[956],{"type":52,"value":726},{"type":46,"tag":80,"props":958,"children":959},{"style":714},[960],{"type":52,"value":961},"runCode",{"type":46,"tag":80,"props":963,"children":964},{"style":411},[965],{"type":52,"value":798},{"type":46,"tag":80,"props":967,"children":968},{"style":405},[969],{"type":52,"value":439},{"type":46,"tag":80,"props":971,"children":972},{"style":93},[973],{"type":52,"value":974},"import pandas as pd; data = [1,2,3]",{"type":46,"tag":80,"props":976,"children":977},{"style":405},[978],{"type":52,"value":439},{"type":46,"tag":80,"props":980,"children":981},{"style":405},[982],{"type":52,"value":736},{"type":46,"tag":80,"props":984,"children":985},{"style":405},[986],{"type":52,"value":408},{"type":46,"tag":80,"props":988,"children":989},{"style":898},[990],{"type":52,"value":991}," context",{"type":46,"tag":80,"props":993,"children":994},{"style":405},[995],{"type":52,"value":906},{"type":46,"tag":80,"props":997,"children":998},{"style":411},[999],{"type":52,"value":865},{"type":46,"tag":80,"props":1001,"children":1002},{"style":405},[1003],{"type":52,"value":1004},"}",{"type":46,"tag":80,"props":1006,"children":1007},{"style":411},[1008],{"type":52,"value":754},{"type":46,"tag":80,"props":1010,"children":1011},{"style":405},[1012],{"type":52,"value":444},{"type":46,"tag":80,"props":1014,"children":1015},{"class":82,"line":296},[1016,1020,1024,1028,1032,1036,1040,1044,1048,1052,1057,1061,1065,1069,1073,1077,1081,1085,1089],{"type":46,"tag":80,"props":1017,"children":1018},{"style":698},[1019],{"type":52,"value":701},{"type":46,"tag":80,"props":1021,"children":1022},{"style":411},[1023],{"type":52,"value":770},{"type":46,"tag":80,"props":1025,"children":1026},{"style":405},[1027],{"type":52,"value":711},{"type":46,"tag":80,"props":1029,"children":1030},{"style":399},[1031],{"type":52,"value":779},{"type":46,"tag":80,"props":1033,"children":1034},{"style":411},[1035],{"type":52,"value":784},{"type":46,"tag":80,"props":1037,"children":1038},{"style":405},[1039],{"type":52,"value":726},{"type":46,"tag":80,"props":1041,"children":1042},{"style":714},[1043],{"type":52,"value":961},{"type":46,"tag":80,"props":1045,"children":1046},{"style":411},[1047],{"type":52,"value":798},{"type":46,"tag":80,"props":1049,"children":1050},{"style":405},[1051],{"type":52,"value":439},{"type":46,"tag":80,"props":1053,"children":1054},{"style":93},[1055],{"type":52,"value":1056},"sum(data)",{"type":46,"tag":80,"props":1058,"children":1059},{"style":405},[1060],{"type":52,"value":439},{"type":46,"tag":80,"props":1062,"children":1063},{"style":405},[1064],{"type":52,"value":736},{"type":46,"tag":80,"props":1066,"children":1067},{"style":405},[1068],{"type":52,"value":408},{"type":46,"tag":80,"props":1070,"children":1071},{"style":898},[1072],{"type":52,"value":991},{"type":46,"tag":80,"props":1074,"children":1075},{"style":405},[1076],{"type":52,"value":906},{"type":46,"tag":80,"props":1078,"children":1079},{"style":411},[1080],{"type":52,"value":865},{"type":46,"tag":80,"props":1082,"children":1083},{"style":405},[1084],{"type":52,"value":1004},{"type":46,"tag":80,"props":1086,"children":1087},{"style":411},[1088],{"type":52,"value":754},{"type":46,"tag":80,"props":1090,"children":1091},{"style":405},[1092],{"type":52,"value":444},{"type":46,"tag":80,"props":1094,"children":1095},{"class":82,"line":305},[1096],{"type":46,"tag":80,"props":1097,"children":1098},{"style":118},[1099],{"type":52,"value":1100},"\u002F\u002F result.results[0].text = \"6\"\n",{"type":46,"tag":55,"props":1102,"children":1103},{},[1104,1109,1111,1116,1118,1124,1125],{"type":46,"tag":134,"props":1105,"children":1106},{},[1107],{"type":52,"value":1108},"Languages",{"type":52,"value":1110},": ",{"type":46,"tag":76,"props":1112,"children":1114},{"className":1113},[],[1115],{"type":52,"value":915},{"type":52,"value":1117},", ",{"type":46,"tag":76,"props":1119,"children":1121},{"className":1120},[],[1122],{"type":52,"value":1123},"javascript",{"type":52,"value":1117},{"type":46,"tag":76,"props":1126,"children":1128},{"className":1127},[],[1129],{"type":52,"value":389},{"type":46,"tag":55,"props":1131,"children":1132},{},[1133],{"type":52,"value":1134},"State persists within context. Create explicit contexts for production.",{"type":46,"tag":680,"props":1136,"children":1138},{"id":1137},"file-operations",[1139],{"type":52,"value":1140},"File Operations",{"type":46,"tag":68,"props":1142,"children":1144},{"className":387,"code":1143,"language":389,"meta":73,"style":73},"await sandbox.mkdir('\u002Fworkspace\u002Fproject', { recursive: true });\nawait sandbox.writeFile('\u002Fworkspace\u002Fproject\u002Fmain.py', code);\nconst file = await sandbox.readFile('\u002Fworkspace\u002Fproject\u002Fmain.py');\nconst files = await sandbox.listFiles('\u002Fworkspace\u002Fproject');\n",[1145],{"type":46,"tag":76,"props":1146,"children":1147},{"__ignoreMap":73},[1148,1220,1270,1327],{"type":46,"tag":80,"props":1149,"children":1150},{"class":82,"line":83},[1151,1155,1159,1163,1168,1172,1176,1181,1185,1189,1193,1198,1202,1208,1212,1216],{"type":46,"tag":80,"props":1152,"children":1153},{"style":399},[1154],{"type":52,"value":948},{"type":46,"tag":80,"props":1156,"children":1157},{"style":411},[1158],{"type":52,"value":784},{"type":46,"tag":80,"props":1160,"children":1161},{"style":405},[1162],{"type":52,"value":726},{"type":46,"tag":80,"props":1164,"children":1165},{"style":714},[1166],{"type":52,"value":1167},"mkdir",{"type":46,"tag":80,"props":1169,"children":1170},{"style":411},[1171],{"type":52,"value":798},{"type":46,"tag":80,"props":1173,"children":1174},{"style":405},[1175],{"type":52,"value":439},{"type":46,"tag":80,"props":1177,"children":1178},{"style":93},[1179],{"type":52,"value":1180},"\u002Fworkspace\u002Fproject",{"type":46,"tag":80,"props":1182,"children":1183},{"style":405},[1184],{"type":52,"value":439},{"type":46,"tag":80,"props":1186,"children":1187},{"style":405},[1188],{"type":52,"value":736},{"type":46,"tag":80,"props":1190,"children":1191},{"style":405},[1192],{"type":52,"value":408},{"type":46,"tag":80,"props":1194,"children":1195},{"style":898},[1196],{"type":52,"value":1197}," recursive",{"type":46,"tag":80,"props":1199,"children":1200},{"style":405},[1201],{"type":52,"value":906},{"type":46,"tag":80,"props":1203,"children":1205},{"style":1204},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1206],{"type":52,"value":1207}," true",{"type":46,"tag":80,"props":1209,"children":1210},{"style":405},[1211],{"type":52,"value":419},{"type":46,"tag":80,"props":1213,"children":1214},{"style":411},[1215],{"type":52,"value":754},{"type":46,"tag":80,"props":1217,"children":1218},{"style":405},[1219],{"type":52,"value":444},{"type":46,"tag":80,"props":1221,"children":1222},{"class":82,"line":104},[1223,1227,1231,1235,1240,1244,1248,1253,1257,1261,1266],{"type":46,"tag":80,"props":1224,"children":1225},{"style":399},[1226],{"type":52,"value":948},{"type":46,"tag":80,"props":1228,"children":1229},{"style":411},[1230],{"type":52,"value":784},{"type":46,"tag":80,"props":1232,"children":1233},{"style":405},[1234],{"type":52,"value":726},{"type":46,"tag":80,"props":1236,"children":1237},{"style":714},[1238],{"type":52,"value":1239},"writeFile",{"type":46,"tag":80,"props":1241,"children":1242},{"style":411},[1243],{"type":52,"value":798},{"type":46,"tag":80,"props":1245,"children":1246},{"style":405},[1247],{"type":52,"value":439},{"type":46,"tag":80,"props":1249,"children":1250},{"style":93},[1251],{"type":52,"value":1252},"\u002Fworkspace\u002Fproject\u002Fmain.py",{"type":46,"tag":80,"props":1254,"children":1255},{"style":405},[1256],{"type":52,"value":439},{"type":46,"tag":80,"props":1258,"children":1259},{"style":405},[1260],{"type":52,"value":736},{"type":46,"tag":80,"props":1262,"children":1263},{"style":411},[1264],{"type":52,"value":1265}," code)",{"type":46,"tag":80,"props":1267,"children":1268},{"style":405},[1269],{"type":52,"value":444},{"type":46,"tag":80,"props":1271,"children":1272},{"class":82,"line":287},[1273,1277,1282,1286,1290,1294,1298,1303,1307,1311,1315,1319,1323],{"type":46,"tag":80,"props":1274,"children":1275},{"style":698},[1276],{"type":52,"value":701},{"type":46,"tag":80,"props":1278,"children":1279},{"style":411},[1280],{"type":52,"value":1281}," file ",{"type":46,"tag":80,"props":1283,"children":1284},{"style":405},[1285],{"type":52,"value":711},{"type":46,"tag":80,"props":1287,"children":1288},{"style":399},[1289],{"type":52,"value":779},{"type":46,"tag":80,"props":1291,"children":1292},{"style":411},[1293],{"type":52,"value":784},{"type":46,"tag":80,"props":1295,"children":1296},{"style":405},[1297],{"type":52,"value":726},{"type":46,"tag":80,"props":1299,"children":1300},{"style":714},[1301],{"type":52,"value":1302},"readFile",{"type":46,"tag":80,"props":1304,"children":1305},{"style":411},[1306],{"type":52,"value":798},{"type":46,"tag":80,"props":1308,"children":1309},{"style":405},[1310],{"type":52,"value":439},{"type":46,"tag":80,"props":1312,"children":1313},{"style":93},[1314],{"type":52,"value":1252},{"type":46,"tag":80,"props":1316,"children":1317},{"style":405},[1318],{"type":52,"value":439},{"type":46,"tag":80,"props":1320,"children":1321},{"style":411},[1322],{"type":52,"value":754},{"type":46,"tag":80,"props":1324,"children":1325},{"style":405},[1326],{"type":52,"value":444},{"type":46,"tag":80,"props":1328,"children":1329},{"class":82,"line":296},[1330,1334,1339,1343,1347,1351,1355,1360,1364,1368,1372,1376,1380],{"type":46,"tag":80,"props":1331,"children":1332},{"style":698},[1333],{"type":52,"value":701},{"type":46,"tag":80,"props":1335,"children":1336},{"style":411},[1337],{"type":52,"value":1338}," files ",{"type":46,"tag":80,"props":1340,"children":1341},{"style":405},[1342],{"type":52,"value":711},{"type":46,"tag":80,"props":1344,"children":1345},{"style":399},[1346],{"type":52,"value":779},{"type":46,"tag":80,"props":1348,"children":1349},{"style":411},[1350],{"type":52,"value":784},{"type":46,"tag":80,"props":1352,"children":1353},{"style":405},[1354],{"type":52,"value":726},{"type":46,"tag":80,"props":1356,"children":1357},{"style":714},[1358],{"type":52,"value":1359},"listFiles",{"type":46,"tag":80,"props":1361,"children":1362},{"style":411},[1363],{"type":52,"value":798},{"type":46,"tag":80,"props":1365,"children":1366},{"style":405},[1367],{"type":52,"value":439},{"type":46,"tag":80,"props":1369,"children":1370},{"style":93},[1371],{"type":52,"value":1180},{"type":46,"tag":80,"props":1373,"children":1374},{"style":405},[1375],{"type":52,"value":439},{"type":46,"tag":80,"props":1377,"children":1378},{"style":411},[1379],{"type":52,"value":754},{"type":46,"tag":80,"props":1381,"children":1382},{"style":405},[1383],{"type":52,"value":444},{"type":46,"tag":61,"props":1385,"children":1387},{"id":1386},"when-to-use-what",[1388],{"type":52,"value":1389},"When to Use What",{"type":46,"tag":142,"props":1391,"children":1392},{},[1393,1414],{"type":46,"tag":146,"props":1394,"children":1395},{},[1396],{"type":46,"tag":150,"props":1397,"children":1398},{},[1399,1404,1409],{"type":46,"tag":154,"props":1400,"children":1401},{},[1402],{"type":52,"value":1403},"Need",{"type":46,"tag":154,"props":1405,"children":1406},{},[1407],{"type":52,"value":1408},"Use",{"type":46,"tag":154,"props":1410,"children":1411},{},[1412],{"type":52,"value":1413},"Why",{"type":46,"tag":165,"props":1415,"children":1416},{},[1417,1439,1460,1481],{"type":46,"tag":150,"props":1418,"children":1419},{},[1420,1425,1434],{"type":46,"tag":172,"props":1421,"children":1422},{},[1423],{"type":52,"value":1424},"Shell commands, scripts",{"type":46,"tag":172,"props":1426,"children":1427},{},[1428],{"type":46,"tag":76,"props":1429,"children":1431},{"className":1430},[],[1432],{"type":52,"value":1433},"exec()",{"type":46,"tag":172,"props":1435,"children":1436},{},[1437],{"type":52,"value":1438},"Direct control, streaming",{"type":46,"tag":150,"props":1440,"children":1441},{},[1442,1447,1455],{"type":46,"tag":172,"props":1443,"children":1444},{},[1445],{"type":52,"value":1446},"LLM-generated code",{"type":46,"tag":172,"props":1448,"children":1449},{},[1450],{"type":46,"tag":76,"props":1451,"children":1453},{"className":1452},[],[1454],{"type":52,"value":844},{"type":46,"tag":172,"props":1456,"children":1457},{},[1458],{"type":52,"value":1459},"Rich outputs, state persistence",{"type":46,"tag":150,"props":1461,"children":1462},{},[1463,1468,1476],{"type":46,"tag":172,"props":1464,"children":1465},{},[1466],{"type":52,"value":1467},"Build\u002Ftest pipelines",{"type":46,"tag":172,"props":1469,"children":1470},{},[1471],{"type":46,"tag":76,"props":1472,"children":1474},{"className":1473},[],[1475],{"type":52,"value":1433},{"type":46,"tag":172,"props":1477,"children":1478},{},[1479],{"type":52,"value":1480},"Exit codes, stderr capture",{"type":46,"tag":150,"props":1482,"children":1483},{},[1484,1489,1497],{"type":46,"tag":172,"props":1485,"children":1486},{},[1487],{"type":52,"value":1488},"Data analysis",{"type":46,"tag":172,"props":1490,"children":1491},{},[1492],{"type":46,"tag":76,"props":1493,"children":1495},{"className":1494},[],[1496],{"type":52,"value":844},{"type":46,"tag":172,"props":1498,"children":1499},{},[1500],{"type":52,"value":1501},"Charts, tables, pandas",{"type":46,"tag":61,"props":1503,"children":1505},{"id":1504},"extending-the-dockerfile",[1506],{"type":52,"value":1507},"Extending the Dockerfile",{"type":46,"tag":55,"props":1509,"children":1510},{},[1511,1513,1519],{"type":52,"value":1512},"Base image (",{"type":46,"tag":76,"props":1514,"children":1516},{"className":1515},[],[1517],{"type":52,"value":1518},"docker.io\u002Fcloudflare\u002Fsandbox:0.7.0",{"type":52,"value":1520},") includes Python 3.11, Node.js 20, and common tools.",{"type":46,"tag":55,"props":1522,"children":1523},{},[1524],{"type":52,"value":1525},"Add dependencies by extending the Dockerfile:",{"type":46,"tag":68,"props":1527,"children":1531},{"className":1528,"code":1529,"language":1530,"meta":73,"style":73},"language-dockerfile shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","FROM docker.io\u002Fcloudflare\u002Fsandbox:0.7.0\n\n# Python packages\nRUN pip install requests beautifulsoup4\n\n# Node packages (global)\nRUN npm install -g typescript\n\n# System packages\nRUN apt-get update && apt-get install -y ffmpeg && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n\nEXPOSE 8080  # Required for local dev port exposure\n","dockerfile",[1532],{"type":46,"tag":76,"props":1533,"children":1534},{"__ignoreMap":73},[1535,1543,1550,1558,1566,1573,1581,1589,1596,1604,1612,1619],{"type":46,"tag":80,"props":1536,"children":1537},{"class":82,"line":83},[1538],{"type":46,"tag":80,"props":1539,"children":1540},{},[1541],{"type":52,"value":1542},"FROM docker.io\u002Fcloudflare\u002Fsandbox:0.7.0\n",{"type":46,"tag":80,"props":1544,"children":1545},{"class":82,"line":104},[1546],{"type":46,"tag":80,"props":1547,"children":1548},{"emptyLinePlaceholder":937},[1549],{"type":52,"value":940},{"type":46,"tag":80,"props":1551,"children":1552},{"class":82,"line":287},[1553],{"type":46,"tag":80,"props":1554,"children":1555},{},[1556],{"type":52,"value":1557},"# Python packages\n",{"type":46,"tag":80,"props":1559,"children":1560},{"class":82,"line":296},[1561],{"type":46,"tag":80,"props":1562,"children":1563},{},[1564],{"type":52,"value":1565},"RUN pip install requests beautifulsoup4\n",{"type":46,"tag":80,"props":1567,"children":1568},{"class":82,"line":305},[1569],{"type":46,"tag":80,"props":1570,"children":1571},{"emptyLinePlaceholder":937},[1572],{"type":52,"value":940},{"type":46,"tag":80,"props":1574,"children":1575},{"class":82,"line":314},[1576],{"type":46,"tag":80,"props":1577,"children":1578},{},[1579],{"type":52,"value":1580},"# Node packages (global)\n",{"type":46,"tag":80,"props":1582,"children":1583},{"class":82,"line":323},[1584],{"type":46,"tag":80,"props":1585,"children":1586},{},[1587],{"type":52,"value":1588},"RUN npm install -g typescript\n",{"type":46,"tag":80,"props":1590,"children":1591},{"class":82,"line":332},[1592],{"type":46,"tag":80,"props":1593,"children":1594},{"emptyLinePlaceholder":937},[1595],{"type":52,"value":940},{"type":46,"tag":80,"props":1597,"children":1598},{"class":82,"line":341},[1599],{"type":46,"tag":80,"props":1600,"children":1601},{},[1602],{"type":52,"value":1603},"# System packages\n",{"type":46,"tag":80,"props":1605,"children":1606},{"class":82,"line":350},[1607],{"type":46,"tag":80,"props":1608,"children":1609},{},[1610],{"type":52,"value":1611},"RUN apt-get update && apt-get install -y ffmpeg && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n",{"type":46,"tag":80,"props":1613,"children":1614},{"class":82,"line":359},[1615],{"type":46,"tag":80,"props":1616,"children":1617},{"emptyLinePlaceholder":937},[1618],{"type":52,"value":940},{"type":46,"tag":80,"props":1620,"children":1621},{"class":82,"line":368},[1622],{"type":46,"tag":80,"props":1623,"children":1624},{},[1625],{"type":52,"value":1626},"EXPOSE 8080  # Required for local dev port exposure\n",{"type":46,"tag":55,"props":1628,"children":1629},{},[1630],{"type":52,"value":1631},"Keep images lean - affects cold start time.",{"type":46,"tag":61,"props":1633,"children":1635},{"id":1634},"preview-urls-port-exposure",[1636],{"type":52,"value":1637},"Preview URLs (Port Exposure)",{"type":46,"tag":55,"props":1639,"children":1640},{},[1641],{"type":52,"value":1642},"Expose HTTP services running in sandboxes:",{"type":46,"tag":68,"props":1644,"children":1646},{"className":387,"code":1645,"language":389,"meta":73,"style":73},"const { url } = await sandbox.exposePort(8080);\n\u002F\u002F Returns preview URL for the service\n",[1647],{"type":46,"tag":76,"props":1648,"children":1649},{"__ignoreMap":73},[1650,1710],{"type":46,"tag":80,"props":1651,"children":1652},{"class":82,"line":83},[1653,1657,1661,1666,1670,1675,1679,1683,1687,1692,1696,1702,1706],{"type":46,"tag":80,"props":1654,"children":1655},{"style":698},[1656],{"type":52,"value":701},{"type":46,"tag":80,"props":1658,"children":1659},{"style":405},[1660],{"type":52,"value":408},{"type":46,"tag":80,"props":1662,"children":1663},{"style":411},[1664],{"type":52,"value":1665}," url ",{"type":46,"tag":80,"props":1667,"children":1668},{"style":405},[1669],{"type":52,"value":1004},{"type":46,"tag":80,"props":1671,"children":1672},{"style":405},[1673],{"type":52,"value":1674}," =",{"type":46,"tag":80,"props":1676,"children":1677},{"style":399},[1678],{"type":52,"value":779},{"type":46,"tag":80,"props":1680,"children":1681},{"style":411},[1682],{"type":52,"value":784},{"type":46,"tag":80,"props":1684,"children":1685},{"style":405},[1686],{"type":52,"value":726},{"type":46,"tag":80,"props":1688,"children":1689},{"style":714},[1690],{"type":52,"value":1691},"exposePort",{"type":46,"tag":80,"props":1693,"children":1694},{"style":411},[1695],{"type":52,"value":798},{"type":46,"tag":80,"props":1697,"children":1699},{"style":1698},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1700],{"type":52,"value":1701},"8080",{"type":46,"tag":80,"props":1703,"children":1704},{"style":411},[1705],{"type":52,"value":754},{"type":46,"tag":80,"props":1707,"children":1708},{"style":405},[1709],{"type":52,"value":444},{"type":46,"tag":80,"props":1711,"children":1712},{"class":82,"line":104},[1713],{"type":46,"tag":80,"props":1714,"children":1715},{"style":118},[1716],{"type":52,"value":1717},"\u002F\u002F Returns preview URL for the service\n",{"type":46,"tag":55,"props":1719,"children":1720},{},[1721,1726,1728,1734,1736,1742],{"type":46,"tag":134,"props":1722,"children":1723},{},[1724],{"type":52,"value":1725},"Production requirement",{"type":52,"value":1727},": Preview URLs need a custom domain with wildcard DNS (",{"type":46,"tag":76,"props":1729,"children":1731},{"className":1730},[],[1732],{"type":52,"value":1733},"*.yourdomain.com",{"type":52,"value":1735},"). The ",{"type":46,"tag":76,"props":1737,"children":1739},{"className":1738},[],[1740],{"type":52,"value":1741},".workers.dev",{"type":52,"value":1743}," domain does not support preview URL subdomains.",{"type":46,"tag":55,"props":1745,"children":1746},{},[1747,1749],{"type":52,"value":1748},"See: ",{"type":46,"tag":181,"props":1750,"children":1753},{"href":1751,"rel":1752},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fguides\u002Fexpose-services\u002F",[185],[1754],{"type":52,"value":1751},{"type":46,"tag":61,"props":1756,"children":1758},{"id":1757},"openai-agents-sdk-integration",[1759],{"type":52,"value":1760},"OpenAI Agents SDK Integration",{"type":46,"tag":55,"props":1762,"children":1763},{},[1764,1766,1772],{"type":52,"value":1765},"The SDK provides helpers for OpenAI Agents at ",{"type":46,"tag":76,"props":1767,"children":1769},{"className":1768},[],[1770],{"type":52,"value":1771},"@cloudflare\u002Fsandbox\u002Fopenai",{"type":52,"value":906},{"type":46,"tag":68,"props":1774,"children":1776},{"className":387,"code":1775,"language":389,"meta":73,"style":73},"import { Shell, Editor } from '@cloudflare\u002Fsandbox\u002Fopenai';\n",[1777],{"type":46,"tag":76,"props":1778,"children":1779},{"__ignoreMap":73},[1780],{"type":46,"tag":80,"props":1781,"children":1782},{"class":82,"line":83},[1783,1787,1791,1796,1800,1805,1809,1813,1817,1821,1825],{"type":46,"tag":80,"props":1784,"children":1785},{"style":399},[1786],{"type":52,"value":402},{"type":46,"tag":80,"props":1788,"children":1789},{"style":405},[1790],{"type":52,"value":408},{"type":46,"tag":80,"props":1792,"children":1793},{"style":411},[1794],{"type":52,"value":1795}," Shell",{"type":46,"tag":80,"props":1797,"children":1798},{"style":405},[1799],{"type":52,"value":736},{"type":46,"tag":80,"props":1801,"children":1802},{"style":411},[1803],{"type":52,"value":1804}," Editor",{"type":46,"tag":80,"props":1806,"children":1807},{"style":405},[1808],{"type":52,"value":419},{"type":46,"tag":80,"props":1810,"children":1811},{"style":399},[1812],{"type":52,"value":424},{"type":46,"tag":80,"props":1814,"children":1815},{"style":405},[1816],{"type":52,"value":429},{"type":46,"tag":80,"props":1818,"children":1819},{"style":93},[1820],{"type":52,"value":1771},{"type":46,"tag":80,"props":1822,"children":1823},{"style":405},[1824],{"type":52,"value":439},{"type":46,"tag":80,"props":1826,"children":1827},{"style":405},[1828],{"type":52,"value":444},{"type":46,"tag":55,"props":1830,"children":1831},{},[1832,1834,1840],{"type":52,"value":1833},"See ",{"type":46,"tag":76,"props":1835,"children":1837},{"className":1836},[],[1838],{"type":52,"value":1839},"examples\u002Fopenai-agents",{"type":52,"value":1841}," for complete integration pattern.",{"type":46,"tag":61,"props":1843,"children":1845},{"id":1844},"sandbox-lifecycle",[1846],{"type":52,"value":1847},"Sandbox Lifecycle",{"type":46,"tag":1849,"props":1850,"children":1851},"ul",{},[1852,1864,1876,1888],{"type":46,"tag":1853,"props":1854,"children":1855},"li",{},[1856,1862],{"type":46,"tag":76,"props":1857,"children":1859},{"className":1858},[],[1860],{"type":52,"value":1861},"getSandbox()",{"type":52,"value":1863}," returns immediately - container starts lazily on first operation",{"type":46,"tag":1853,"props":1865,"children":1866},{},[1867,1869,1875],{"type":52,"value":1868},"Containers sleep after 10 minutes of inactivity (configurable via ",{"type":46,"tag":76,"props":1870,"children":1872},{"className":1871},[],[1873],{"type":52,"value":1874},"sleepAfter",{"type":52,"value":754},{"type":46,"tag":1853,"props":1877,"children":1878},{},[1879,1880,1886],{"type":52,"value":838},{"type":46,"tag":76,"props":1881,"children":1883},{"className":1882},[],[1884],{"type":52,"value":1885},"destroy()",{"type":52,"value":1887}," to immediately free resources",{"type":46,"tag":1853,"props":1889,"children":1890},{},[1891,1893,1899],{"type":52,"value":1892},"Same ",{"type":46,"tag":76,"props":1894,"children":1896},{"className":1895},[],[1897],{"type":52,"value":1898},"sandboxId",{"type":52,"value":1900}," always returns same sandbox instance",{"type":46,"tag":61,"props":1902,"children":1904},{"id":1903},"anti-patterns",[1905],{"type":52,"value":1906},"Anti-Patterns",{"type":46,"tag":1849,"props":1908,"children":1909},{},[1910,1943,1959,1969],{"type":46,"tag":1853,"props":1911,"children":1912},{},[1913,1918,1920,1926,1927,1933,1935,1941],{"type":46,"tag":134,"props":1914,"children":1915},{},[1916],{"type":52,"value":1917},"Don't use internal clients",{"type":52,"value":1919}," (",{"type":46,"tag":76,"props":1921,"children":1923},{"className":1922},[],[1924],{"type":52,"value":1925},"CommandClient",{"type":52,"value":1117},{"type":46,"tag":76,"props":1928,"children":1930},{"className":1929},[],[1931],{"type":52,"value":1932},"FileClient",{"type":52,"value":1934},") - use ",{"type":46,"tag":76,"props":1936,"children":1938},{"className":1937},[],[1939],{"type":52,"value":1940},"sandbox.*",{"type":52,"value":1942}," methods",{"type":46,"tag":1853,"props":1944,"children":1945},{},[1946,1951,1953],{"type":46,"tag":134,"props":1947,"children":1948},{},[1949],{"type":52,"value":1950},"Don't skip the Sandbox export",{"type":52,"value":1952}," - Worker won't deploy without ",{"type":46,"tag":76,"props":1954,"children":1956},{"className":1955},[],[1957],{"type":52,"value":1958},"export { Sandbox }",{"type":46,"tag":1853,"props":1960,"children":1961},{},[1962,1967],{"type":46,"tag":134,"props":1963,"children":1964},{},[1965],{"type":52,"value":1966},"Don't hardcode sandbox IDs for multi-user",{"type":52,"value":1968}," - use user\u002Fsession identifiers",{"type":46,"tag":1853,"props":1970,"children":1971},{},[1972,1977,1979,1984],{"type":46,"tag":134,"props":1973,"children":1974},{},[1975],{"type":52,"value":1976},"Don't forget cleanup",{"type":52,"value":1978}," - call ",{"type":46,"tag":76,"props":1980,"children":1982},{"className":1981},[],[1983],{"type":52,"value":1885},{"type":52,"value":1985}," for temporary sandboxes",{"type":46,"tag":61,"props":1987,"children":1989},{"id":1988},"detailed-references",[1990],{"type":52,"value":1991},"Detailed References",{"type":46,"tag":1849,"props":1993,"children":1994},{},[1995,2008],{"type":46,"tag":1853,"props":1996,"children":1997},{},[1998,2006],{"type":46,"tag":134,"props":1999,"children":2000},{},[2001],{"type":46,"tag":181,"props":2002,"children":2004},{"href":2003},"references\u002Fapi-quick-ref.md",[2005],{"type":52,"value":2003},{"type":52,"value":2007}," - Full API with options and return types",{"type":46,"tag":1853,"props":2009,"children":2010},{},[2011,2019],{"type":46,"tag":134,"props":2012,"children":2013},{},[2014],{"type":46,"tag":181,"props":2015,"children":2017},{"href":2016},"references\u002Fexamples.md",[2018],{"type":52,"value":2016},{"type":52,"value":2020}," - Example index with use cases",{"type":46,"tag":2022,"props":2023,"children":2024},"style",{},[2025],{"type":52,"value":2026},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2028,"total":359},[2029,2046,2058,2071,2097,2116,2129],{"slug":2030,"name":2030,"fn":2031,"description":2032,"org":2033,"tags":2034,"stars":26,"repoUrl":27,"updatedAt":2045},"agents-sdk","build AI agents on Cloudflare Workers","Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2035,2037,2038,2039,2042],{"name":2036,"slug":32,"type":15},"Agents",{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":2040,"slug":2041,"type":15},"MCP","mcp",{"name":2043,"slug":2044,"type":15},"WebSockets","websockets","2026-04-06T18:07:36.660888",{"slug":8,"name":8,"fn":2047,"description":2048,"org":2049,"tags":2050,"stars":26,"repoUrl":27,"updatedAt":2057},"build on the full Cloudflare platform","Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2051,2052,2053,2054],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":24,"slug":25,"type":15},{"name":2055,"slug":2056,"type":15},"Storage","storage","2026-04-06T18:07:35.399081",{"slug":2059,"name":2059,"fn":2060,"description":2061,"org":2062,"tags":2063,"stars":26,"repoUrl":27,"updatedAt":2070},"cloudflare-email-service","manage transactional emails with Cloudflare","Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF\u002FDKIM\u002FDMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like \"add email to my Worker\" — this skill has critical config details.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2064,2065,2066,2069],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":2067,"slug":2068,"type":15},"Email","email",{"name":24,"slug":25,"type":15},"2026-04-16T05:02:38.301955",{"slug":2072,"name":2072,"fn":2073,"description":2074,"org":2075,"tags":2076,"stars":26,"repoUrl":27,"updatedAt":2096},"cloudflare-one","configure and manage Cloudflare One Zero Trust","Guides Cloudflare One Zero Trust and SASE work across Access, Gateway, WARP, Tunnel, Cloudflare WAN, DLP, CASB, device posture, and identity. Use when designing, configuring, troubleshooting, or reviewing Cloudflare One deployments. Retrieval-first: use current Cloudflare docs\u002FAPI schemas instead of embedded product docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2077,2080,2081,2084,2087,2090,2093],{"name":2078,"slug":2079,"type":15},"Access Control","access-control",{"name":9,"slug":8,"type":15},{"name":2082,"slug":2083,"type":15},"Infrastructure","infrastructure",{"name":2085,"slug":2086,"type":15},"Networking","networking",{"name":2088,"slug":2089,"type":15},"SASE","sase",{"name":2091,"slug":2092,"type":15},"Security","security",{"name":2094,"slug":2095,"type":15},"Zero Trust","zero-trust","2026-06-15T09:51:34.015251",{"slug":2098,"name":2098,"fn":2099,"description":2100,"org":2101,"tags":2102,"stars":26,"repoUrl":27,"updatedAt":2115},"cloudflare-one-migrations","plan migrations to Cloudflare One","Plans migrations from Zscaler ZIA\u002FZPA, Palo Alto, legacy VPN, SWG, or SASE stacks to Cloudflare One. Use for migration assessments, policy mapping, rollout plans, and parity\u002Fgap analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2103,2104,2107,2108,2111,2112],{"name":9,"slug":8,"type":15},{"name":2105,"slug":2106,"type":15},"Migration","migration",{"name":2085,"slug":2086,"type":15},{"name":2109,"slug":2110,"type":15},"Risk Assessment","risk-assessment",{"name":2091,"slug":2092,"type":15},{"name":2113,"slug":2114,"type":15},"Strategy","strategy","2026-06-15T09:51:35.348691",{"slug":2117,"name":2117,"fn":2118,"description":2119,"org":2120,"tags":2121,"stars":26,"repoUrl":27,"updatedAt":2128},"durable-objects","build Cloudflare Durable Objects","Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2122,2123,2124,2127],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":2125,"slug":2126,"type":15},"State Management","state-management",{"name":2043,"slug":2044,"type":15},"2026-04-06T18:07:39.148434",{"slug":4,"name":4,"fn":5,"description":6,"org":2130,"tags":2131,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2132,2133,2134,2135,2136],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":21,"slug":22,"type":15},{"name":18,"slug":19,"type":15},{"name":24,"slug":25,"type":15},{"items":2138,"total":2308},[2139,2154,2168,2183,2196,2210,2224,2238,2255,2272,2285,2300],{"slug":2140,"name":2140,"fn":2141,"description":2142,"org":2143,"tags":2144,"stars":2151,"repoUrl":2152,"updatedAt":2153},"code-review","review code changes for quality and risk","Review code changes for correctness, clarity, and risk. Use when the user asks for a review, a second opinion on a diff, or feedback on code they wrote.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2145,2146,2148],{"name":9,"slug":8,"type":15},{"name":2147,"slug":2140,"type":15},"Code Review",{"name":2149,"slug":2150,"type":15},"Engineering","engineering",5284,"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fagents","2026-06-08T08:19:41.621858",{"slug":2155,"name":2155,"fn":2156,"description":2157,"org":2158,"tags":2159,"stars":2151,"repoUrl":2152,"updatedAt":2167},"debug-plan","create systematic debugging plans","Create a systematic debugging plan for a bug report. Use when the user asks how to investigate a failure, regression, or unexpected behavior.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2160,2163,2166],{"name":2161,"slug":2162,"type":15},"Code Analysis","code-analysis",{"name":2164,"slug":2165,"type":15},"Debugging","debugging",{"name":2149,"slug":2150,"type":15},"2026-05-30T06:16:58.837407",{"slug":2169,"name":2169,"fn":2170,"description":2171,"org":2172,"tags":2173,"stars":2151,"repoUrl":2152,"updatedAt":2182},"escalation","escalate customer issues to human agents","Decide when and how to escalate a customer conversation to a human agent. Use when a request is high-risk, the customer is frustrated, or the issue is outside what you can resolve.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2174,2177,2180],{"name":2175,"slug":2176,"type":15},"Communications","communications",{"name":2178,"slug":2179,"type":15},"Customer Support","customer-support",{"name":2181,"slug":2169,"type":15},"Escalation","2026-06-08T08:19:43.130686",{"slug":2184,"name":2184,"fn":2185,"description":2186,"org":2187,"tags":2188,"stars":2151,"repoUrl":2152,"updatedAt":2195},"pirate-voice","rewrite text in pirate voice","Rewrite or answer in a playful pirate voice. Use when the user asks for pirate tone, nautical phrasing, or says to talk like a pirate.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2189,2192],{"name":2190,"slug":2191,"type":15},"Creative","creative",{"name":2193,"slug":2194,"type":15},"Writing","writing","2026-05-30T06:17:00.080367",{"slug":2197,"name":2197,"fn":2198,"description":2199,"org":2200,"tags":2201,"stars":2151,"repoUrl":2152,"updatedAt":2209},"release-notes","draft product release notes","Draft short release notes from a list of changes. Use when the user asks for changelogs, release notes, or a concise product update.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2202,2205,2208],{"name":2203,"slug":2204,"type":15},"Content Creation","content-creation",{"name":2206,"slug":2207,"type":15},"Documentation","documentation",{"name":2193,"slug":2194,"type":15},"2026-05-30T06:17:01.278643",{"slug":2211,"name":2211,"fn":2212,"description":2213,"org":2214,"tags":2215,"stars":2151,"repoUrl":2152,"updatedAt":2223},"test-plan","produce focused test plans","Produce a focused test plan for a change. Use when the user asks how to test a feature, what cases to cover, or for a QA checklist before shipping.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2216,2217,2220],{"name":2149,"slug":2150,"type":15},{"name":2218,"slug":2219,"type":15},"QA","qa",{"name":2221,"slug":2222,"type":15},"Testing","testing","2026-05-30T06:17:02.479863",{"slug":2225,"name":2225,"fn":2226,"description":2227,"org":2228,"tags":2229,"stars":2151,"repoUrl":2152,"updatedAt":2237},"workspace-digest","summarize files in the shared workspace","Summarize the files saved in this assistant's shared workspace. Use when the user asks what is in their workspace, for a file inventory, or a digest of saved work.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2230,2231,2234],{"name":2206,"slug":2207,"type":15},{"name":2232,"slug":2233,"type":15},"Knowledge Management","knowledge-management",{"name":2235,"slug":2236,"type":15},"Summarization","summarization","2026-06-07T07:51:27.265303",{"slug":2239,"name":2239,"fn":2240,"description":2241,"org":2242,"tags":2243,"stars":2252,"repoUrl":2253,"updatedAt":2254},"cloudflare-bundler-apps","author Cloudflare Worker Bundler applications","Author Cloudflare Worker Bundler-compatible apps that build and preview correctly inside a space. Use this skill whenever you scaffold, modify, or deploy a project that will be built with `@cloudflare\u002Fworker-bundler` (i.e. anything served from `\u002Fspace\u002F:name\u002Fpreview\u002F:branch\u002F`). Covers wrangler config, project layout, static asset rules, server entry conventions, npm dependency limits, and the most common cause of blank previews (JSX in browser scripts).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2244,2245,2246,2249],{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":2247,"slug":2248,"type":15},"Deployment","deployment",{"name":2250,"slug":2251,"type":15},"Web Development","web-development",5145,"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fvibesdk","2026-06-16T09:45:57.551207",{"slug":2256,"name":2256,"fn":2257,"description":2258,"org":2259,"tags":2260,"stars":2252,"repoUrl":2253,"updatedAt":2271},"frontend-design","create production-grade frontend interfaces","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2261,2264,2267,2270],{"name":2262,"slug":2263,"type":15},"Design","design",{"name":2265,"slug":2266,"type":15},"Frontend","frontend",{"name":2268,"slug":2269,"type":15},"HTML","html",{"name":2250,"slug":2251,"type":15},"2026-06-16T09:46:01.852741",{"slug":2273,"name":2273,"fn":2274,"description":2275,"org":2276,"tags":2277,"stars":2252,"repoUrl":2253,"updatedAt":2284},"frontend-design-landing-page","build marketing landing pages","Marketing landing page and conversion-focused product page reference. Use this skill when building hero sections, feature grids, pricing pages, testimonials, CTAs, footers, navigation bars, or any public-facing marketing surface. Covers a warm, professional, developer-friendly design language (cream backgrounds, generous whitespace, pill CTAs, corner-bracket card decorations) and a complete token set, animation system, and copy-paste component snippets. NOT for product\u002Fdashboard UIs — use frontend-design-saas for those.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2278,2279,2280,2283],{"name":2265,"slug":2266,"type":15},{"name":2268,"slug":2269,"type":15},{"name":2281,"slug":2282,"type":15},"Marketing","marketing",{"name":2250,"slug":2251,"type":15},"2026-06-16T09:46:00.515859",{"slug":2286,"name":2286,"fn":2287,"description":2288,"org":2289,"tags":2290,"stars":2252,"repoUrl":2253,"updatedAt":2299},"frontend-design-saas","build SaaS dashboard and product UIs","S-tier SaaS dashboard and product UI reference. Use this skill when building application shells, data tables, settings panels, billing pages, dashboards, auth flows, admin tools, or any internal\u002Fcustomer-facing SaaS product UI. Inspired by Stripe, Linear, Vercel, Airbnb, Notion. Covers neutral-led design tokens, sidebar+content shells, dense data UIs, form-heavy configuration pages, command palettes, empty states, and the accessibility (WCAG AA+) bar these products clear.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2291,2292,2293,2296],{"name":2262,"slug":2263,"type":15},{"name":2265,"slug":2266,"type":15},{"name":2294,"slug":2295,"type":15},"SaaS","saas",{"name":2297,"slug":2298,"type":15},"UI Components","ui-components","2026-06-16T09:45:58.956063",{"slug":2030,"name":2030,"fn":2031,"description":2032,"org":2301,"tags":2302,"stars":26,"repoUrl":27,"updatedAt":2045},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2303,2304,2305,2306,2307],{"name":2036,"slug":32,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"name":2040,"slug":2041,"type":15},{"name":2043,"slug":2044,"type":15},22]