[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openai-sandbox-sdk":3,"mdc-bjqqje-key":39,"related-org-openai-sandbox-sdk":2026,"related-repo-openai-sandbox-sdk":2229},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":28,"repoUrl":29,"updatedAt":30,"license":31,"forks":32,"topics":33,"repo":34,"sourceUrl":37,"mdContent":38},"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},"openai","OpenAI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenai.png",[12,16,19,22,25],{"name":13,"slug":14,"type":15},"Cloudflare Workers","cloudflare-workers","tag",{"name":17,"slug":18,"type":15},"Cloudflare","cloudflare",{"name":20,"slug":21,"type":15},"Sandboxing","sandboxing",{"name":23,"slug":24,"type":15},"Code Execution","code-execution",{"name":26,"slug":27,"type":15},"Serverless","serverless",3992,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins","2026-04-06T18:39:45.467443",null,465,[],{"repoUrl":29,"stars":28,"forks":32,"topics":35,"description":36},[],"OpenAI Plugins","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins\u002Ftree\u002FHEAD\u002Fplugins\u002Fcloudflare\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":40,"body":41},{"name":4,"description":6},{"type":42,"children":43},"root",[44,53,59,66,121,127,140,238,243,249,259,374,384,491,497,672,678,685,827,833,846,1100,1129,1134,1140,1383,1389,1501,1507,1520,1525,1626,1631,1637,1642,1717,1743,1754,1760,1772,1828,1841,1847,1900,1906,1985,1991,2020],{"type":45,"tag":46,"props":47,"children":49},"element","h1",{"id":48},"cloudflare-sandbox-sdk",[50],{"type":51,"value":52},"text","Cloudflare Sandbox SDK",{"type":45,"tag":54,"props":55,"children":56},"p",{},[57],{"type":51,"value":58},"Build secure, isolated code execution environments on Cloudflare Workers.",{"type":45,"tag":60,"props":61,"children":63},"h2",{"id":62},"first-verify-installation",[64],{"type":51,"value":65},"FIRST: Verify Installation",{"type":45,"tag":67,"props":68,"children":73},"pre",{"className":69,"code":70,"language":71,"meta":72,"style":72},"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","",[74],{"type":45,"tag":75,"props":76,"children":77},"code",{"__ignoreMap":72},[78,101],{"type":45,"tag":79,"props":80,"children":83},"span",{"class":81,"line":82},"line",1,[84,90,96],{"type":45,"tag":79,"props":85,"children":87},{"style":86},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[88],{"type":51,"value":89},"npm",{"type":45,"tag":79,"props":91,"children":93},{"style":92},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[94],{"type":51,"value":95}," install",{"type":45,"tag":79,"props":97,"children":98},{"style":92},[99],{"type":51,"value":100}," @cloudflare\u002Fsandbox\n",{"type":45,"tag":79,"props":102,"children":104},{"class":81,"line":103},2,[105,110,115],{"type":45,"tag":79,"props":106,"children":107},{"style":86},[108],{"type":51,"value":109},"docker",{"type":45,"tag":79,"props":111,"children":112},{"style":92},[113],{"type":51,"value":114}," info",{"type":45,"tag":79,"props":116,"children":118},{"style":117},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[119],{"type":51,"value":120},"  # Must succeed - Docker required for local dev\n",{"type":45,"tag":60,"props":122,"children":124},{"id":123},"retrieval-sources",[125],{"type":51,"value":126},"Retrieval Sources",{"type":45,"tag":54,"props":128,"children":129},{},[130,132,138],{"type":51,"value":131},"Your knowledge of the Sandbox SDK may be outdated. ",{"type":45,"tag":133,"props":134,"children":135},"strong",{},[136],{"type":51,"value":137},"Prefer retrieval over pre-training",{"type":51,"value":139}," for any Sandbox SDK task.",{"type":45,"tag":141,"props":142,"children":143},"table",{},[144,163],{"type":45,"tag":145,"props":146,"children":147},"thead",{},[148],{"type":45,"tag":149,"props":150,"children":151},"tr",{},[152,158],{"type":45,"tag":153,"props":154,"children":155},"th",{},[156],{"type":51,"value":157},"Resource",{"type":45,"tag":153,"props":159,"children":160},{},[161],{"type":51,"value":162},"URL",{"type":45,"tag":164,"props":165,"children":166},"tbody",{},[167,187,204,221],{"type":45,"tag":149,"props":168,"children":169},{},[170,176],{"type":45,"tag":171,"props":172,"children":173},"td",{},[174],{"type":51,"value":175},"Docs",{"type":45,"tag":171,"props":177,"children":178},{},[179],{"type":45,"tag":180,"props":181,"children":185},"a",{"href":182,"rel":183},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002F",[184],"nofollow",[186],{"type":51,"value":182},{"type":45,"tag":149,"props":188,"children":189},{},[190,195],{"type":45,"tag":171,"props":191,"children":192},{},[193],{"type":51,"value":194},"API Reference",{"type":45,"tag":171,"props":196,"children":197},{},[198],{"type":45,"tag":180,"props":199,"children":202},{"href":200,"rel":201},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fapi\u002F",[184],[203],{"type":51,"value":200},{"type":45,"tag":149,"props":205,"children":206},{},[207,212],{"type":45,"tag":171,"props":208,"children":209},{},[210],{"type":51,"value":211},"Examples",{"type":45,"tag":171,"props":213,"children":214},{},[215],{"type":45,"tag":180,"props":216,"children":219},{"href":217,"rel":218},"https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fsandbox-sdk\u002Ftree\u002Fmain\u002Fexamples",[184],[220],{"type":51,"value":217},{"type":45,"tag":149,"props":222,"children":223},{},[224,229],{"type":45,"tag":171,"props":225,"children":226},{},[227],{"type":51,"value":228},"Get Started",{"type":45,"tag":171,"props":230,"children":231},{},[232],{"type":45,"tag":180,"props":233,"children":236},{"href":234,"rel":235},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fget-started\u002F",[184],[237],{"type":51,"value":234},{"type":45,"tag":54,"props":239,"children":240},{},[241],{"type":51,"value":242},"When implementing features, fetch the relevant doc page or example first.",{"type":45,"tag":60,"props":244,"children":246},{"id":245},"required-configuration",[247],{"type":51,"value":248},"Required Configuration",{"type":45,"tag":54,"props":250,"children":251},{},[252,257],{"type":45,"tag":133,"props":253,"children":254},{},[255],{"type":51,"value":256},"wrangler.jsonc",{"type":51,"value":258}," (exact - do not modify structure):",{"type":45,"tag":67,"props":260,"children":264},{"className":261,"code":262,"language":263,"meta":72,"style":72},"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",[265],{"type":45,"tag":75,"props":266,"children":267},{"__ignoreMap":72},[268,276,284,293,302,311,320,329,338,347,356,365],{"type":45,"tag":79,"props":269,"children":270},{"class":81,"line":82},[271],{"type":45,"tag":79,"props":272,"children":273},{},[274],{"type":51,"value":275},"{\n",{"type":45,"tag":79,"props":277,"children":278},{"class":81,"line":103},[279],{"type":45,"tag":79,"props":280,"children":281},{},[282],{"type":51,"value":283},"  \"containers\": [{\n",{"type":45,"tag":79,"props":285,"children":287},{"class":81,"line":286},3,[288],{"type":45,"tag":79,"props":289,"children":290},{},[291],{"type":51,"value":292},"    \"class_name\": \"Sandbox\",\n",{"type":45,"tag":79,"props":294,"children":296},{"class":81,"line":295},4,[297],{"type":45,"tag":79,"props":298,"children":299},{},[300],{"type":51,"value":301},"    \"image\": \".\u002FDockerfile\",\n",{"type":45,"tag":79,"props":303,"children":305},{"class":81,"line":304},5,[306],{"type":45,"tag":79,"props":307,"children":308},{},[309],{"type":51,"value":310},"    \"instance_type\": \"lite\",\n",{"type":45,"tag":79,"props":312,"children":314},{"class":81,"line":313},6,[315],{"type":45,"tag":79,"props":316,"children":317},{},[318],{"type":51,"value":319},"    \"max_instances\": 1\n",{"type":45,"tag":79,"props":321,"children":323},{"class":81,"line":322},7,[324],{"type":45,"tag":79,"props":325,"children":326},{},[327],{"type":51,"value":328},"  }],\n",{"type":45,"tag":79,"props":330,"children":332},{"class":81,"line":331},8,[333],{"type":45,"tag":79,"props":334,"children":335},{},[336],{"type":51,"value":337},"  \"durable_objects\": {\n",{"type":45,"tag":79,"props":339,"children":341},{"class":81,"line":340},9,[342],{"type":45,"tag":79,"props":343,"children":344},{},[345],{"type":51,"value":346},"    \"bindings\": [{ \"class_name\": \"Sandbox\", \"name\": \"Sandbox\" }]\n",{"type":45,"tag":79,"props":348,"children":350},{"class":81,"line":349},10,[351],{"type":45,"tag":79,"props":352,"children":353},{},[354],{"type":51,"value":355},"  },\n",{"type":45,"tag":79,"props":357,"children":359},{"class":81,"line":358},11,[360],{"type":45,"tag":79,"props":361,"children":362},{},[363],{"type":51,"value":364},"  \"migrations\": [{ \"new_sqlite_classes\": [\"Sandbox\"], \"tag\": \"v1\" }]\n",{"type":45,"tag":79,"props":366,"children":368},{"class":81,"line":367},12,[369],{"type":45,"tag":79,"props":370,"children":371},{},[372],{"type":51,"value":373},"}\n",{"type":45,"tag":54,"props":375,"children":376},{},[377,382],{"type":45,"tag":133,"props":378,"children":379},{},[380],{"type":51,"value":381},"Worker entry",{"type":51,"value":383}," - must re-export Sandbox class:",{"type":45,"tag":67,"props":385,"children":389},{"className":386,"code":387,"language":388,"meta":72,"style":72},"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",[390],{"type":45,"tag":75,"props":391,"children":392},{"__ignoreMap":72},[393,444],{"type":45,"tag":79,"props":394,"children":395},{"class":81,"line":82},[396,402,408,414,419,424,429,434,439],{"type":45,"tag":79,"props":397,"children":399},{"style":398},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[400],{"type":51,"value":401},"import",{"type":45,"tag":79,"props":403,"children":405},{"style":404},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[406],{"type":51,"value":407}," {",{"type":45,"tag":79,"props":409,"children":411},{"style":410},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[412],{"type":51,"value":413}," getSandbox",{"type":45,"tag":79,"props":415,"children":416},{"style":404},[417],{"type":51,"value":418}," }",{"type":45,"tag":79,"props":420,"children":421},{"style":398},[422],{"type":51,"value":423}," from",{"type":45,"tag":79,"props":425,"children":426},{"style":404},[427],{"type":51,"value":428}," '",{"type":45,"tag":79,"props":430,"children":431},{"style":92},[432],{"type":51,"value":433},"@cloudflare\u002Fsandbox",{"type":45,"tag":79,"props":435,"children":436},{"style":404},[437],{"type":51,"value":438},"'",{"type":45,"tag":79,"props":440,"children":441},{"style":404},[442],{"type":51,"value":443},";\n",{"type":45,"tag":79,"props":445,"children":446},{"class":81,"line":103},[447,452,456,461,465,469,473,477,481,486],{"type":45,"tag":79,"props":448,"children":449},{"style":398},[450],{"type":51,"value":451},"export",{"type":45,"tag":79,"props":453,"children":454},{"style":404},[455],{"type":51,"value":407},{"type":45,"tag":79,"props":457,"children":458},{"style":410},[459],{"type":51,"value":460}," Sandbox",{"type":45,"tag":79,"props":462,"children":463},{"style":404},[464],{"type":51,"value":418},{"type":45,"tag":79,"props":466,"children":467},{"style":398},[468],{"type":51,"value":423},{"type":45,"tag":79,"props":470,"children":471},{"style":404},[472],{"type":51,"value":428},{"type":45,"tag":79,"props":474,"children":475},{"style":92},[476],{"type":51,"value":433},{"type":45,"tag":79,"props":478,"children":479},{"style":404},[480],{"type":51,"value":438},{"type":45,"tag":79,"props":482,"children":483},{"style":404},[484],{"type":51,"value":485},";",{"type":45,"tag":79,"props":487,"children":488},{"style":117},[489],{"type":51,"value":490},"  \u002F\u002F Required export\n",{"type":45,"tag":60,"props":492,"children":494},{"id":493},"quick-reference",[495],{"type":51,"value":496},"Quick Reference",{"type":45,"tag":141,"props":498,"children":499},{},[500,516],{"type":45,"tag":145,"props":501,"children":502},{},[503],{"type":45,"tag":149,"props":504,"children":505},{},[506,511],{"type":45,"tag":153,"props":507,"children":508},{},[509],{"type":51,"value":510},"Task",{"type":45,"tag":153,"props":512,"children":513},{},[514],{"type":51,"value":515},"Method",{"type":45,"tag":164,"props":517,"children":518},{},[519,536,553,570,587,604,621,638,655],{"type":45,"tag":149,"props":520,"children":521},{},[522,527],{"type":45,"tag":171,"props":523,"children":524},{},[525],{"type":51,"value":526},"Get sandbox",{"type":45,"tag":171,"props":528,"children":529},{},[530],{"type":45,"tag":75,"props":531,"children":533},{"className":532},[],[534],{"type":51,"value":535},"getSandbox(env.Sandbox, 'user-123')",{"type":45,"tag":149,"props":537,"children":538},{},[539,544],{"type":45,"tag":171,"props":540,"children":541},{},[542],{"type":51,"value":543},"Run command",{"type":45,"tag":171,"props":545,"children":546},{},[547],{"type":45,"tag":75,"props":548,"children":550},{"className":549},[],[551],{"type":51,"value":552},"await sandbox.exec('python script.py')",{"type":45,"tag":149,"props":554,"children":555},{},[556,561],{"type":45,"tag":171,"props":557,"children":558},{},[559],{"type":51,"value":560},"Run code (interpreter)",{"type":45,"tag":171,"props":562,"children":563},{},[564],{"type":45,"tag":75,"props":565,"children":567},{"className":566},[],[568],{"type":51,"value":569},"await sandbox.runCode(code, { language: 'python' })",{"type":45,"tag":149,"props":571,"children":572},{},[573,578],{"type":45,"tag":171,"props":574,"children":575},{},[576],{"type":51,"value":577},"Write file",{"type":45,"tag":171,"props":579,"children":580},{},[581],{"type":45,"tag":75,"props":582,"children":584},{"className":583},[],[585],{"type":51,"value":586},"await sandbox.writeFile('\u002Fworkspace\u002Fapp.py', content)",{"type":45,"tag":149,"props":588,"children":589},{},[590,595],{"type":45,"tag":171,"props":591,"children":592},{},[593],{"type":51,"value":594},"Read file",{"type":45,"tag":171,"props":596,"children":597},{},[598],{"type":45,"tag":75,"props":599,"children":601},{"className":600},[],[602],{"type":51,"value":603},"await sandbox.readFile('\u002Fworkspace\u002Fapp.py')",{"type":45,"tag":149,"props":605,"children":606},{},[607,612],{"type":45,"tag":171,"props":608,"children":609},{},[610],{"type":51,"value":611},"Create directory",{"type":45,"tag":171,"props":613,"children":614},{},[615],{"type":45,"tag":75,"props":616,"children":618},{"className":617},[],[619],{"type":51,"value":620},"await sandbox.mkdir('\u002Fworkspace\u002Fsrc', { recursive: true })",{"type":45,"tag":149,"props":622,"children":623},{},[624,629],{"type":45,"tag":171,"props":625,"children":626},{},[627],{"type":51,"value":628},"List files",{"type":45,"tag":171,"props":630,"children":631},{},[632],{"type":45,"tag":75,"props":633,"children":635},{"className":634},[],[636],{"type":51,"value":637},"await sandbox.listFiles('\u002Fworkspace')",{"type":45,"tag":149,"props":639,"children":640},{},[641,646],{"type":45,"tag":171,"props":642,"children":643},{},[644],{"type":51,"value":645},"Expose port",{"type":45,"tag":171,"props":647,"children":648},{},[649],{"type":45,"tag":75,"props":650,"children":652},{"className":651},[],[653],{"type":51,"value":654},"await sandbox.exposePort(8080)",{"type":45,"tag":149,"props":656,"children":657},{},[658,663],{"type":45,"tag":171,"props":659,"children":660},{},[661],{"type":51,"value":662},"Destroy",{"type":45,"tag":171,"props":664,"children":665},{},[666],{"type":45,"tag":75,"props":667,"children":669},{"className":668},[],[670],{"type":51,"value":671},"await sandbox.destroy()",{"type":45,"tag":60,"props":673,"children":675},{"id":674},"core-patterns",[676],{"type":51,"value":677},"Core Patterns",{"type":45,"tag":679,"props":680,"children":682},"h3",{"id":681},"execute-commands",[683],{"type":51,"value":684},"Execute Commands",{"type":45,"tag":67,"props":686,"children":688},{"className":386,"code":687,"language":388,"meta":72,"style":72},"const sandbox = getSandbox(env.Sandbox, 'user-123');\nconst result = await sandbox.exec('python --version');\n\u002F\u002F result: { stdout, stderr, exitCode, success }\n",[689],{"type":45,"tag":75,"props":690,"children":691},{"__ignoreMap":72},[692,758,819],{"type":45,"tag":79,"props":693,"children":694},{"class":81,"line":82},[695,701,706,711,716,721,726,731,736,740,745,749,754],{"type":45,"tag":79,"props":696,"children":698},{"style":697},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[699],{"type":51,"value":700},"const",{"type":45,"tag":79,"props":702,"children":703},{"style":410},[704],{"type":51,"value":705}," sandbox ",{"type":45,"tag":79,"props":707,"children":708},{"style":404},[709],{"type":51,"value":710},"=",{"type":45,"tag":79,"props":712,"children":714},{"style":713},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[715],{"type":51,"value":413},{"type":45,"tag":79,"props":717,"children":718},{"style":410},[719],{"type":51,"value":720},"(env",{"type":45,"tag":79,"props":722,"children":723},{"style":404},[724],{"type":51,"value":725},".",{"type":45,"tag":79,"props":727,"children":728},{"style":410},[729],{"type":51,"value":730},"Sandbox",{"type":45,"tag":79,"props":732,"children":733},{"style":404},[734],{"type":51,"value":735},",",{"type":45,"tag":79,"props":737,"children":738},{"style":404},[739],{"type":51,"value":428},{"type":45,"tag":79,"props":741,"children":742},{"style":92},[743],{"type":51,"value":744},"user-123",{"type":45,"tag":79,"props":746,"children":747},{"style":404},[748],{"type":51,"value":438},{"type":45,"tag":79,"props":750,"children":751},{"style":410},[752],{"type":51,"value":753},")",{"type":45,"tag":79,"props":755,"children":756},{"style":404},[757],{"type":51,"value":443},{"type":45,"tag":79,"props":759,"children":760},{"class":81,"line":103},[761,765,770,774,779,784,788,793,798,802,807,811,815],{"type":45,"tag":79,"props":762,"children":763},{"style":697},[764],{"type":51,"value":700},{"type":45,"tag":79,"props":766,"children":767},{"style":410},[768],{"type":51,"value":769}," result ",{"type":45,"tag":79,"props":771,"children":772},{"style":404},[773],{"type":51,"value":710},{"type":45,"tag":79,"props":775,"children":776},{"style":398},[777],{"type":51,"value":778}," await",{"type":45,"tag":79,"props":780,"children":781},{"style":410},[782],{"type":51,"value":783}," sandbox",{"type":45,"tag":79,"props":785,"children":786},{"style":404},[787],{"type":51,"value":725},{"type":45,"tag":79,"props":789,"children":790},{"style":713},[791],{"type":51,"value":792},"exec",{"type":45,"tag":79,"props":794,"children":795},{"style":410},[796],{"type":51,"value":797},"(",{"type":45,"tag":79,"props":799,"children":800},{"style":404},[801],{"type":51,"value":438},{"type":45,"tag":79,"props":803,"children":804},{"style":92},[805],{"type":51,"value":806},"python --version",{"type":45,"tag":79,"props":808,"children":809},{"style":404},[810],{"type":51,"value":438},{"type":45,"tag":79,"props":812,"children":813},{"style":410},[814],{"type":51,"value":753},{"type":45,"tag":79,"props":816,"children":817},{"style":404},[818],{"type":51,"value":443},{"type":45,"tag":79,"props":820,"children":821},{"class":81,"line":286},[822],{"type":45,"tag":79,"props":823,"children":824},{"style":117},[825],{"type":51,"value":826},"\u002F\u002F result: { stdout, stderr, exitCode, success }\n",{"type":45,"tag":679,"props":828,"children":830},{"id":829},"code-interpreter-recommended-for-ai",[831],{"type":51,"value":832},"Code Interpreter (Recommended for AI)",{"type":45,"tag":54,"props":834,"children":835},{},[836,838,844],{"type":51,"value":837},"Use ",{"type":45,"tag":75,"props":839,"children":841},{"className":840},[],[842],{"type":51,"value":843},"runCode()",{"type":51,"value":845}," for executing LLM-generated code with rich outputs:",{"type":45,"tag":67,"props":847,"children":849},{"className":386,"code":848,"language":388,"meta":72,"style":72},"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",[850],{"type":45,"tag":75,"props":851,"children":852},{"__ignoreMap":72},[853,931,940,1012,1092],{"type":45,"tag":79,"props":854,"children":855},{"class":81,"line":82},[856,860,865,869,873,877,881,886,890,895,901,906,910,915,919,923,927],{"type":45,"tag":79,"props":857,"children":858},{"style":697},[859],{"type":51,"value":700},{"type":45,"tag":79,"props":861,"children":862},{"style":410},[863],{"type":51,"value":864}," ctx ",{"type":45,"tag":79,"props":866,"children":867},{"style":404},[868],{"type":51,"value":710},{"type":45,"tag":79,"props":870,"children":871},{"style":398},[872],{"type":51,"value":778},{"type":45,"tag":79,"props":874,"children":875},{"style":410},[876],{"type":51,"value":783},{"type":45,"tag":79,"props":878,"children":879},{"style":404},[880],{"type":51,"value":725},{"type":45,"tag":79,"props":882,"children":883},{"style":713},[884],{"type":51,"value":885},"createCodeContext",{"type":45,"tag":79,"props":887,"children":888},{"style":410},[889],{"type":51,"value":797},{"type":45,"tag":79,"props":891,"children":892},{"style":404},[893],{"type":51,"value":894},"{",{"type":45,"tag":79,"props":896,"children":898},{"style":897},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[899],{"type":51,"value":900}," language",{"type":45,"tag":79,"props":902,"children":903},{"style":404},[904],{"type":51,"value":905},":",{"type":45,"tag":79,"props":907,"children":908},{"style":404},[909],{"type":51,"value":428},{"type":45,"tag":79,"props":911,"children":912},{"style":92},[913],{"type":51,"value":914},"python",{"type":45,"tag":79,"props":916,"children":917},{"style":404},[918],{"type":51,"value":438},{"type":45,"tag":79,"props":920,"children":921},{"style":404},[922],{"type":51,"value":418},{"type":45,"tag":79,"props":924,"children":925},{"style":410},[926],{"type":51,"value":753},{"type":45,"tag":79,"props":928,"children":929},{"style":404},[930],{"type":51,"value":443},{"type":45,"tag":79,"props":932,"children":933},{"class":81,"line":103},[934],{"type":45,"tag":79,"props":935,"children":937},{"emptyLinePlaceholder":936},true,[938],{"type":51,"value":939},"\n",{"type":45,"tag":79,"props":941,"children":942},{"class":81,"line":286},[943,948,952,956,961,965,969,974,978,982,986,991,995,999,1004,1008],{"type":45,"tag":79,"props":944,"children":945},{"style":398},[946],{"type":51,"value":947},"await",{"type":45,"tag":79,"props":949,"children":950},{"style":410},[951],{"type":51,"value":783},{"type":45,"tag":79,"props":953,"children":954},{"style":404},[955],{"type":51,"value":725},{"type":45,"tag":79,"props":957,"children":958},{"style":713},[959],{"type":51,"value":960},"runCode",{"type":45,"tag":79,"props":962,"children":963},{"style":410},[964],{"type":51,"value":797},{"type":45,"tag":79,"props":966,"children":967},{"style":404},[968],{"type":51,"value":438},{"type":45,"tag":79,"props":970,"children":971},{"style":92},[972],{"type":51,"value":973},"import pandas as pd; data = [1,2,3]",{"type":45,"tag":79,"props":975,"children":976},{"style":404},[977],{"type":51,"value":438},{"type":45,"tag":79,"props":979,"children":980},{"style":404},[981],{"type":51,"value":735},{"type":45,"tag":79,"props":983,"children":984},{"style":404},[985],{"type":51,"value":407},{"type":45,"tag":79,"props":987,"children":988},{"style":897},[989],{"type":51,"value":990}," context",{"type":45,"tag":79,"props":992,"children":993},{"style":404},[994],{"type":51,"value":905},{"type":45,"tag":79,"props":996,"children":997},{"style":410},[998],{"type":51,"value":864},{"type":45,"tag":79,"props":1000,"children":1001},{"style":404},[1002],{"type":51,"value":1003},"}",{"type":45,"tag":79,"props":1005,"children":1006},{"style":410},[1007],{"type":51,"value":753},{"type":45,"tag":79,"props":1009,"children":1010},{"style":404},[1011],{"type":51,"value":443},{"type":45,"tag":79,"props":1013,"children":1014},{"class":81,"line":295},[1015,1019,1023,1027,1031,1035,1039,1043,1047,1051,1056,1060,1064,1068,1072,1076,1080,1084,1088],{"type":45,"tag":79,"props":1016,"children":1017},{"style":697},[1018],{"type":51,"value":700},{"type":45,"tag":79,"props":1020,"children":1021},{"style":410},[1022],{"type":51,"value":769},{"type":45,"tag":79,"props":1024,"children":1025},{"style":404},[1026],{"type":51,"value":710},{"type":45,"tag":79,"props":1028,"children":1029},{"style":398},[1030],{"type":51,"value":778},{"type":45,"tag":79,"props":1032,"children":1033},{"style":410},[1034],{"type":51,"value":783},{"type":45,"tag":79,"props":1036,"children":1037},{"style":404},[1038],{"type":51,"value":725},{"type":45,"tag":79,"props":1040,"children":1041},{"style":713},[1042],{"type":51,"value":960},{"type":45,"tag":79,"props":1044,"children":1045},{"style":410},[1046],{"type":51,"value":797},{"type":45,"tag":79,"props":1048,"children":1049},{"style":404},[1050],{"type":51,"value":438},{"type":45,"tag":79,"props":1052,"children":1053},{"style":92},[1054],{"type":51,"value":1055},"sum(data)",{"type":45,"tag":79,"props":1057,"children":1058},{"style":404},[1059],{"type":51,"value":438},{"type":45,"tag":79,"props":1061,"children":1062},{"style":404},[1063],{"type":51,"value":735},{"type":45,"tag":79,"props":1065,"children":1066},{"style":404},[1067],{"type":51,"value":407},{"type":45,"tag":79,"props":1069,"children":1070},{"style":897},[1071],{"type":51,"value":990},{"type":45,"tag":79,"props":1073,"children":1074},{"style":404},[1075],{"type":51,"value":905},{"type":45,"tag":79,"props":1077,"children":1078},{"style":410},[1079],{"type":51,"value":864},{"type":45,"tag":79,"props":1081,"children":1082},{"style":404},[1083],{"type":51,"value":1003},{"type":45,"tag":79,"props":1085,"children":1086},{"style":410},[1087],{"type":51,"value":753},{"type":45,"tag":79,"props":1089,"children":1090},{"style":404},[1091],{"type":51,"value":443},{"type":45,"tag":79,"props":1093,"children":1094},{"class":81,"line":304},[1095],{"type":45,"tag":79,"props":1096,"children":1097},{"style":117},[1098],{"type":51,"value":1099},"\u002F\u002F result.results[0].text = \"6\"\n",{"type":45,"tag":54,"props":1101,"children":1102},{},[1103,1108,1110,1115,1117,1123,1124],{"type":45,"tag":133,"props":1104,"children":1105},{},[1106],{"type":51,"value":1107},"Languages",{"type":51,"value":1109},": ",{"type":45,"tag":75,"props":1111,"children":1113},{"className":1112},[],[1114],{"type":51,"value":914},{"type":51,"value":1116},", ",{"type":45,"tag":75,"props":1118,"children":1120},{"className":1119},[],[1121],{"type":51,"value":1122},"javascript",{"type":51,"value":1116},{"type":45,"tag":75,"props":1125,"children":1127},{"className":1126},[],[1128],{"type":51,"value":388},{"type":45,"tag":54,"props":1130,"children":1131},{},[1132],{"type":51,"value":1133},"State persists within context. Create explicit contexts for production.",{"type":45,"tag":679,"props":1135,"children":1137},{"id":1136},"file-operations",[1138],{"type":51,"value":1139},"File Operations",{"type":45,"tag":67,"props":1141,"children":1143},{"className":386,"code":1142,"language":388,"meta":72,"style":72},"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",[1144],{"type":45,"tag":75,"props":1145,"children":1146},{"__ignoreMap":72},[1147,1219,1269,1326],{"type":45,"tag":79,"props":1148,"children":1149},{"class":81,"line":82},[1150,1154,1158,1162,1167,1171,1175,1180,1184,1188,1192,1197,1201,1207,1211,1215],{"type":45,"tag":79,"props":1151,"children":1152},{"style":398},[1153],{"type":51,"value":947},{"type":45,"tag":79,"props":1155,"children":1156},{"style":410},[1157],{"type":51,"value":783},{"type":45,"tag":79,"props":1159,"children":1160},{"style":404},[1161],{"type":51,"value":725},{"type":45,"tag":79,"props":1163,"children":1164},{"style":713},[1165],{"type":51,"value":1166},"mkdir",{"type":45,"tag":79,"props":1168,"children":1169},{"style":410},[1170],{"type":51,"value":797},{"type":45,"tag":79,"props":1172,"children":1173},{"style":404},[1174],{"type":51,"value":438},{"type":45,"tag":79,"props":1176,"children":1177},{"style":92},[1178],{"type":51,"value":1179},"\u002Fworkspace\u002Fproject",{"type":45,"tag":79,"props":1181,"children":1182},{"style":404},[1183],{"type":51,"value":438},{"type":45,"tag":79,"props":1185,"children":1186},{"style":404},[1187],{"type":51,"value":735},{"type":45,"tag":79,"props":1189,"children":1190},{"style":404},[1191],{"type":51,"value":407},{"type":45,"tag":79,"props":1193,"children":1194},{"style":897},[1195],{"type":51,"value":1196}," recursive",{"type":45,"tag":79,"props":1198,"children":1199},{"style":404},[1200],{"type":51,"value":905},{"type":45,"tag":79,"props":1202,"children":1204},{"style":1203},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1205],{"type":51,"value":1206}," true",{"type":45,"tag":79,"props":1208,"children":1209},{"style":404},[1210],{"type":51,"value":418},{"type":45,"tag":79,"props":1212,"children":1213},{"style":410},[1214],{"type":51,"value":753},{"type":45,"tag":79,"props":1216,"children":1217},{"style":404},[1218],{"type":51,"value":443},{"type":45,"tag":79,"props":1220,"children":1221},{"class":81,"line":103},[1222,1226,1230,1234,1239,1243,1247,1252,1256,1260,1265],{"type":45,"tag":79,"props":1223,"children":1224},{"style":398},[1225],{"type":51,"value":947},{"type":45,"tag":79,"props":1227,"children":1228},{"style":410},[1229],{"type":51,"value":783},{"type":45,"tag":79,"props":1231,"children":1232},{"style":404},[1233],{"type":51,"value":725},{"type":45,"tag":79,"props":1235,"children":1236},{"style":713},[1237],{"type":51,"value":1238},"writeFile",{"type":45,"tag":79,"props":1240,"children":1241},{"style":410},[1242],{"type":51,"value":797},{"type":45,"tag":79,"props":1244,"children":1245},{"style":404},[1246],{"type":51,"value":438},{"type":45,"tag":79,"props":1248,"children":1249},{"style":92},[1250],{"type":51,"value":1251},"\u002Fworkspace\u002Fproject\u002Fmain.py",{"type":45,"tag":79,"props":1253,"children":1254},{"style":404},[1255],{"type":51,"value":438},{"type":45,"tag":79,"props":1257,"children":1258},{"style":404},[1259],{"type":51,"value":735},{"type":45,"tag":79,"props":1261,"children":1262},{"style":410},[1263],{"type":51,"value":1264}," code)",{"type":45,"tag":79,"props":1266,"children":1267},{"style":404},[1268],{"type":51,"value":443},{"type":45,"tag":79,"props":1270,"children":1271},{"class":81,"line":286},[1272,1276,1281,1285,1289,1293,1297,1302,1306,1310,1314,1318,1322],{"type":45,"tag":79,"props":1273,"children":1274},{"style":697},[1275],{"type":51,"value":700},{"type":45,"tag":79,"props":1277,"children":1278},{"style":410},[1279],{"type":51,"value":1280}," file ",{"type":45,"tag":79,"props":1282,"children":1283},{"style":404},[1284],{"type":51,"value":710},{"type":45,"tag":79,"props":1286,"children":1287},{"style":398},[1288],{"type":51,"value":778},{"type":45,"tag":79,"props":1290,"children":1291},{"style":410},[1292],{"type":51,"value":783},{"type":45,"tag":79,"props":1294,"children":1295},{"style":404},[1296],{"type":51,"value":725},{"type":45,"tag":79,"props":1298,"children":1299},{"style":713},[1300],{"type":51,"value":1301},"readFile",{"type":45,"tag":79,"props":1303,"children":1304},{"style":410},[1305],{"type":51,"value":797},{"type":45,"tag":79,"props":1307,"children":1308},{"style":404},[1309],{"type":51,"value":438},{"type":45,"tag":79,"props":1311,"children":1312},{"style":92},[1313],{"type":51,"value":1251},{"type":45,"tag":79,"props":1315,"children":1316},{"style":404},[1317],{"type":51,"value":438},{"type":45,"tag":79,"props":1319,"children":1320},{"style":410},[1321],{"type":51,"value":753},{"type":45,"tag":79,"props":1323,"children":1324},{"style":404},[1325],{"type":51,"value":443},{"type":45,"tag":79,"props":1327,"children":1328},{"class":81,"line":295},[1329,1333,1338,1342,1346,1350,1354,1359,1363,1367,1371,1375,1379],{"type":45,"tag":79,"props":1330,"children":1331},{"style":697},[1332],{"type":51,"value":700},{"type":45,"tag":79,"props":1334,"children":1335},{"style":410},[1336],{"type":51,"value":1337}," files ",{"type":45,"tag":79,"props":1339,"children":1340},{"style":404},[1341],{"type":51,"value":710},{"type":45,"tag":79,"props":1343,"children":1344},{"style":398},[1345],{"type":51,"value":778},{"type":45,"tag":79,"props":1347,"children":1348},{"style":410},[1349],{"type":51,"value":783},{"type":45,"tag":79,"props":1351,"children":1352},{"style":404},[1353],{"type":51,"value":725},{"type":45,"tag":79,"props":1355,"children":1356},{"style":713},[1357],{"type":51,"value":1358},"listFiles",{"type":45,"tag":79,"props":1360,"children":1361},{"style":410},[1362],{"type":51,"value":797},{"type":45,"tag":79,"props":1364,"children":1365},{"style":404},[1366],{"type":51,"value":438},{"type":45,"tag":79,"props":1368,"children":1369},{"style":92},[1370],{"type":51,"value":1179},{"type":45,"tag":79,"props":1372,"children":1373},{"style":404},[1374],{"type":51,"value":438},{"type":45,"tag":79,"props":1376,"children":1377},{"style":410},[1378],{"type":51,"value":753},{"type":45,"tag":79,"props":1380,"children":1381},{"style":404},[1382],{"type":51,"value":443},{"type":45,"tag":60,"props":1384,"children":1386},{"id":1385},"when-to-use-what",[1387],{"type":51,"value":1388},"When to Use What",{"type":45,"tag":141,"props":1390,"children":1391},{},[1392,1413],{"type":45,"tag":145,"props":1393,"children":1394},{},[1395],{"type":45,"tag":149,"props":1396,"children":1397},{},[1398,1403,1408],{"type":45,"tag":153,"props":1399,"children":1400},{},[1401],{"type":51,"value":1402},"Need",{"type":45,"tag":153,"props":1404,"children":1405},{},[1406],{"type":51,"value":1407},"Use",{"type":45,"tag":153,"props":1409,"children":1410},{},[1411],{"type":51,"value":1412},"Why",{"type":45,"tag":164,"props":1414,"children":1415},{},[1416,1438,1459,1480],{"type":45,"tag":149,"props":1417,"children":1418},{},[1419,1424,1433],{"type":45,"tag":171,"props":1420,"children":1421},{},[1422],{"type":51,"value":1423},"Shell commands, scripts",{"type":45,"tag":171,"props":1425,"children":1426},{},[1427],{"type":45,"tag":75,"props":1428,"children":1430},{"className":1429},[],[1431],{"type":51,"value":1432},"exec()",{"type":45,"tag":171,"props":1434,"children":1435},{},[1436],{"type":51,"value":1437},"Direct control, streaming",{"type":45,"tag":149,"props":1439,"children":1440},{},[1441,1446,1454],{"type":45,"tag":171,"props":1442,"children":1443},{},[1444],{"type":51,"value":1445},"LLM-generated code",{"type":45,"tag":171,"props":1447,"children":1448},{},[1449],{"type":45,"tag":75,"props":1450,"children":1452},{"className":1451},[],[1453],{"type":51,"value":843},{"type":45,"tag":171,"props":1455,"children":1456},{},[1457],{"type":51,"value":1458},"Rich outputs, state persistence",{"type":45,"tag":149,"props":1460,"children":1461},{},[1462,1467,1475],{"type":45,"tag":171,"props":1463,"children":1464},{},[1465],{"type":51,"value":1466},"Build\u002Ftest pipelines",{"type":45,"tag":171,"props":1468,"children":1469},{},[1470],{"type":45,"tag":75,"props":1471,"children":1473},{"className":1472},[],[1474],{"type":51,"value":1432},{"type":45,"tag":171,"props":1476,"children":1477},{},[1478],{"type":51,"value":1479},"Exit codes, stderr capture",{"type":45,"tag":149,"props":1481,"children":1482},{},[1483,1488,1496],{"type":45,"tag":171,"props":1484,"children":1485},{},[1486],{"type":51,"value":1487},"Data analysis",{"type":45,"tag":171,"props":1489,"children":1490},{},[1491],{"type":45,"tag":75,"props":1492,"children":1494},{"className":1493},[],[1495],{"type":51,"value":843},{"type":45,"tag":171,"props":1497,"children":1498},{},[1499],{"type":51,"value":1500},"Charts, tables, pandas",{"type":45,"tag":60,"props":1502,"children":1504},{"id":1503},"extending-the-dockerfile",[1505],{"type":51,"value":1506},"Extending the Dockerfile",{"type":45,"tag":54,"props":1508,"children":1509},{},[1510,1512,1518],{"type":51,"value":1511},"Base image (",{"type":45,"tag":75,"props":1513,"children":1515},{"className":1514},[],[1516],{"type":51,"value":1517},"docker.io\u002Fcloudflare\u002Fsandbox:0.7.0",{"type":51,"value":1519},") includes Python 3.11, Node.js 20, and common tools.",{"type":45,"tag":54,"props":1521,"children":1522},{},[1523],{"type":51,"value":1524},"Add dependencies by extending the Dockerfile:",{"type":45,"tag":67,"props":1526,"children":1530},{"className":1527,"code":1528,"language":1529,"meta":72,"style":72},"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",[1531],{"type":45,"tag":75,"props":1532,"children":1533},{"__ignoreMap":72},[1534,1542,1549,1557,1565,1572,1580,1588,1595,1603,1611,1618],{"type":45,"tag":79,"props":1535,"children":1536},{"class":81,"line":82},[1537],{"type":45,"tag":79,"props":1538,"children":1539},{},[1540],{"type":51,"value":1541},"FROM docker.io\u002Fcloudflare\u002Fsandbox:0.7.0\n",{"type":45,"tag":79,"props":1543,"children":1544},{"class":81,"line":103},[1545],{"type":45,"tag":79,"props":1546,"children":1547},{"emptyLinePlaceholder":936},[1548],{"type":51,"value":939},{"type":45,"tag":79,"props":1550,"children":1551},{"class":81,"line":286},[1552],{"type":45,"tag":79,"props":1553,"children":1554},{},[1555],{"type":51,"value":1556},"# Python packages\n",{"type":45,"tag":79,"props":1558,"children":1559},{"class":81,"line":295},[1560],{"type":45,"tag":79,"props":1561,"children":1562},{},[1563],{"type":51,"value":1564},"RUN pip install requests beautifulsoup4\n",{"type":45,"tag":79,"props":1566,"children":1567},{"class":81,"line":304},[1568],{"type":45,"tag":79,"props":1569,"children":1570},{"emptyLinePlaceholder":936},[1571],{"type":51,"value":939},{"type":45,"tag":79,"props":1573,"children":1574},{"class":81,"line":313},[1575],{"type":45,"tag":79,"props":1576,"children":1577},{},[1578],{"type":51,"value":1579},"# Node packages (global)\n",{"type":45,"tag":79,"props":1581,"children":1582},{"class":81,"line":322},[1583],{"type":45,"tag":79,"props":1584,"children":1585},{},[1586],{"type":51,"value":1587},"RUN npm install -g typescript\n",{"type":45,"tag":79,"props":1589,"children":1590},{"class":81,"line":331},[1591],{"type":45,"tag":79,"props":1592,"children":1593},{"emptyLinePlaceholder":936},[1594],{"type":51,"value":939},{"type":45,"tag":79,"props":1596,"children":1597},{"class":81,"line":340},[1598],{"type":45,"tag":79,"props":1599,"children":1600},{},[1601],{"type":51,"value":1602},"# System packages\n",{"type":45,"tag":79,"props":1604,"children":1605},{"class":81,"line":349},[1606],{"type":45,"tag":79,"props":1607,"children":1608},{},[1609],{"type":51,"value":1610},"RUN apt-get update && apt-get install -y ffmpeg && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n",{"type":45,"tag":79,"props":1612,"children":1613},{"class":81,"line":358},[1614],{"type":45,"tag":79,"props":1615,"children":1616},{"emptyLinePlaceholder":936},[1617],{"type":51,"value":939},{"type":45,"tag":79,"props":1619,"children":1620},{"class":81,"line":367},[1621],{"type":45,"tag":79,"props":1622,"children":1623},{},[1624],{"type":51,"value":1625},"EXPOSE 8080  # Required for local dev port exposure\n",{"type":45,"tag":54,"props":1627,"children":1628},{},[1629],{"type":51,"value":1630},"Keep images lean - affects cold start time.",{"type":45,"tag":60,"props":1632,"children":1634},{"id":1633},"preview-urls-port-exposure",[1635],{"type":51,"value":1636},"Preview URLs (Port Exposure)",{"type":45,"tag":54,"props":1638,"children":1639},{},[1640],{"type":51,"value":1641},"Expose HTTP services running in sandboxes:",{"type":45,"tag":67,"props":1643,"children":1645},{"className":386,"code":1644,"language":388,"meta":72,"style":72},"const { url } = await sandbox.exposePort(8080);\n\u002F\u002F Returns preview URL for the service\n",[1646],{"type":45,"tag":75,"props":1647,"children":1648},{"__ignoreMap":72},[1649,1709],{"type":45,"tag":79,"props":1650,"children":1651},{"class":81,"line":82},[1652,1656,1660,1665,1669,1674,1678,1682,1686,1691,1695,1701,1705],{"type":45,"tag":79,"props":1653,"children":1654},{"style":697},[1655],{"type":51,"value":700},{"type":45,"tag":79,"props":1657,"children":1658},{"style":404},[1659],{"type":51,"value":407},{"type":45,"tag":79,"props":1661,"children":1662},{"style":410},[1663],{"type":51,"value":1664}," url ",{"type":45,"tag":79,"props":1666,"children":1667},{"style":404},[1668],{"type":51,"value":1003},{"type":45,"tag":79,"props":1670,"children":1671},{"style":404},[1672],{"type":51,"value":1673}," =",{"type":45,"tag":79,"props":1675,"children":1676},{"style":398},[1677],{"type":51,"value":778},{"type":45,"tag":79,"props":1679,"children":1680},{"style":410},[1681],{"type":51,"value":783},{"type":45,"tag":79,"props":1683,"children":1684},{"style":404},[1685],{"type":51,"value":725},{"type":45,"tag":79,"props":1687,"children":1688},{"style":713},[1689],{"type":51,"value":1690},"exposePort",{"type":45,"tag":79,"props":1692,"children":1693},{"style":410},[1694],{"type":51,"value":797},{"type":45,"tag":79,"props":1696,"children":1698},{"style":1697},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1699],{"type":51,"value":1700},"8080",{"type":45,"tag":79,"props":1702,"children":1703},{"style":410},[1704],{"type":51,"value":753},{"type":45,"tag":79,"props":1706,"children":1707},{"style":404},[1708],{"type":51,"value":443},{"type":45,"tag":79,"props":1710,"children":1711},{"class":81,"line":103},[1712],{"type":45,"tag":79,"props":1713,"children":1714},{"style":117},[1715],{"type":51,"value":1716},"\u002F\u002F Returns preview URL for the service\n",{"type":45,"tag":54,"props":1718,"children":1719},{},[1720,1725,1727,1733,1735,1741],{"type":45,"tag":133,"props":1721,"children":1722},{},[1723],{"type":51,"value":1724},"Production requirement",{"type":51,"value":1726},": Preview URLs need a custom domain with wildcard DNS (",{"type":45,"tag":75,"props":1728,"children":1730},{"className":1729},[],[1731],{"type":51,"value":1732},"*.yourdomain.com",{"type":51,"value":1734},"). The ",{"type":45,"tag":75,"props":1736,"children":1738},{"className":1737},[],[1739],{"type":51,"value":1740},".workers.dev",{"type":51,"value":1742}," domain does not support preview URL subdomains.",{"type":45,"tag":54,"props":1744,"children":1745},{},[1746,1748],{"type":51,"value":1747},"See: ",{"type":45,"tag":180,"props":1749,"children":1752},{"href":1750,"rel":1751},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fsandbox\u002Fguides\u002Fexpose-services\u002F",[184],[1753],{"type":51,"value":1750},{"type":45,"tag":60,"props":1755,"children":1757},{"id":1756},"openai-agents-sdk-integration",[1758],{"type":51,"value":1759},"OpenAI Agents SDK Integration",{"type":45,"tag":54,"props":1761,"children":1762},{},[1763,1765,1771],{"type":51,"value":1764},"The SDK provides helpers for OpenAI Agents at ",{"type":45,"tag":75,"props":1766,"children":1768},{"className":1767},[],[1769],{"type":51,"value":1770},"@cloudflare\u002Fsandbox\u002Fopenai",{"type":51,"value":905},{"type":45,"tag":67,"props":1773,"children":1775},{"className":386,"code":1774,"language":388,"meta":72,"style":72},"import { Shell, Editor } from '@cloudflare\u002Fsandbox\u002Fopenai';\n",[1776],{"type":45,"tag":75,"props":1777,"children":1778},{"__ignoreMap":72},[1779],{"type":45,"tag":79,"props":1780,"children":1781},{"class":81,"line":82},[1782,1786,1790,1795,1799,1804,1808,1812,1816,1820,1824],{"type":45,"tag":79,"props":1783,"children":1784},{"style":398},[1785],{"type":51,"value":401},{"type":45,"tag":79,"props":1787,"children":1788},{"style":404},[1789],{"type":51,"value":407},{"type":45,"tag":79,"props":1791,"children":1792},{"style":410},[1793],{"type":51,"value":1794}," Shell",{"type":45,"tag":79,"props":1796,"children":1797},{"style":404},[1798],{"type":51,"value":735},{"type":45,"tag":79,"props":1800,"children":1801},{"style":410},[1802],{"type":51,"value":1803}," Editor",{"type":45,"tag":79,"props":1805,"children":1806},{"style":404},[1807],{"type":51,"value":418},{"type":45,"tag":79,"props":1809,"children":1810},{"style":398},[1811],{"type":51,"value":423},{"type":45,"tag":79,"props":1813,"children":1814},{"style":404},[1815],{"type":51,"value":428},{"type":45,"tag":79,"props":1817,"children":1818},{"style":92},[1819],{"type":51,"value":1770},{"type":45,"tag":79,"props":1821,"children":1822},{"style":404},[1823],{"type":51,"value":438},{"type":45,"tag":79,"props":1825,"children":1826},{"style":404},[1827],{"type":51,"value":443},{"type":45,"tag":54,"props":1829,"children":1830},{},[1831,1833,1839],{"type":51,"value":1832},"See ",{"type":45,"tag":75,"props":1834,"children":1836},{"className":1835},[],[1837],{"type":51,"value":1838},"examples\u002Fopenai-agents",{"type":51,"value":1840}," for complete integration pattern.",{"type":45,"tag":60,"props":1842,"children":1844},{"id":1843},"sandbox-lifecycle",[1845],{"type":51,"value":1846},"Sandbox Lifecycle",{"type":45,"tag":1848,"props":1849,"children":1850},"ul",{},[1851,1863,1875,1887],{"type":45,"tag":1852,"props":1853,"children":1854},"li",{},[1855,1861],{"type":45,"tag":75,"props":1856,"children":1858},{"className":1857},[],[1859],{"type":51,"value":1860},"getSandbox()",{"type":51,"value":1862}," returns immediately - container starts lazily on first operation",{"type":45,"tag":1852,"props":1864,"children":1865},{},[1866,1868,1874],{"type":51,"value":1867},"Containers sleep after 10 minutes of inactivity (configurable via ",{"type":45,"tag":75,"props":1869,"children":1871},{"className":1870},[],[1872],{"type":51,"value":1873},"sleepAfter",{"type":51,"value":753},{"type":45,"tag":1852,"props":1876,"children":1877},{},[1878,1879,1885],{"type":51,"value":837},{"type":45,"tag":75,"props":1880,"children":1882},{"className":1881},[],[1883],{"type":51,"value":1884},"destroy()",{"type":51,"value":1886}," to immediately free resources",{"type":45,"tag":1852,"props":1888,"children":1889},{},[1890,1892,1898],{"type":51,"value":1891},"Same ",{"type":45,"tag":75,"props":1893,"children":1895},{"className":1894},[],[1896],{"type":51,"value":1897},"sandboxId",{"type":51,"value":1899}," always returns same sandbox instance",{"type":45,"tag":60,"props":1901,"children":1903},{"id":1902},"anti-patterns",[1904],{"type":51,"value":1905},"Anti-Patterns",{"type":45,"tag":1848,"props":1907,"children":1908},{},[1909,1942,1958,1968],{"type":45,"tag":1852,"props":1910,"children":1911},{},[1912,1917,1919,1925,1926,1932,1934,1940],{"type":45,"tag":133,"props":1913,"children":1914},{},[1915],{"type":51,"value":1916},"Don't use internal clients",{"type":51,"value":1918}," (",{"type":45,"tag":75,"props":1920,"children":1922},{"className":1921},[],[1923],{"type":51,"value":1924},"CommandClient",{"type":51,"value":1116},{"type":45,"tag":75,"props":1927,"children":1929},{"className":1928},[],[1930],{"type":51,"value":1931},"FileClient",{"type":51,"value":1933},") - use ",{"type":45,"tag":75,"props":1935,"children":1937},{"className":1936},[],[1938],{"type":51,"value":1939},"sandbox.*",{"type":51,"value":1941}," methods",{"type":45,"tag":1852,"props":1943,"children":1944},{},[1945,1950,1952],{"type":45,"tag":133,"props":1946,"children":1947},{},[1948],{"type":51,"value":1949},"Don't skip the Sandbox export",{"type":51,"value":1951}," - Worker won't deploy without ",{"type":45,"tag":75,"props":1953,"children":1955},{"className":1954},[],[1956],{"type":51,"value":1957},"export { Sandbox }",{"type":45,"tag":1852,"props":1959,"children":1960},{},[1961,1966],{"type":45,"tag":133,"props":1962,"children":1963},{},[1964],{"type":51,"value":1965},"Don't hardcode sandbox IDs for multi-user",{"type":51,"value":1967}," - use user\u002Fsession identifiers",{"type":45,"tag":1852,"props":1969,"children":1970},{},[1971,1976,1978,1983],{"type":45,"tag":133,"props":1972,"children":1973},{},[1974],{"type":51,"value":1975},"Don't forget cleanup",{"type":51,"value":1977}," - call ",{"type":45,"tag":75,"props":1979,"children":1981},{"className":1980},[],[1982],{"type":51,"value":1884},{"type":51,"value":1984}," for temporary sandboxes",{"type":45,"tag":60,"props":1986,"children":1988},{"id":1987},"detailed-references",[1989],{"type":51,"value":1990},"Detailed References",{"type":45,"tag":1848,"props":1992,"children":1993},{},[1994,2007],{"type":45,"tag":1852,"props":1995,"children":1996},{},[1997,2005],{"type":45,"tag":133,"props":1998,"children":1999},{},[2000],{"type":45,"tag":180,"props":2001,"children":2003},{"href":2002},"references\u002Fapi-quick-ref.md",[2004],{"type":51,"value":2002},{"type":51,"value":2006}," - Full API with options and return types",{"type":45,"tag":1852,"props":2008,"children":2009},{},[2010,2018],{"type":45,"tag":133,"props":2011,"children":2012},{},[2013],{"type":45,"tag":180,"props":2014,"children":2016},{"href":2015},"references\u002Fexamples.md",[2017],{"type":51,"value":2015},{"type":51,"value":2019}," - Example index with use cases",{"type":45,"tag":2021,"props":2022,"children":2023},"style",{},[2024],{"type":51,"value":2025},"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":2027,"total":2228},[2028,2049,2072,2089,2105,2120,2139,2155,2171,2185,2197,2212],{"slug":2029,"name":2029,"fn":2030,"description":2031,"org":2032,"tags":2033,"stars":2046,"repoUrl":2047,"updatedAt":2048},"prior-auth-packet-builder","build healthcare prior authorization packets","Build a concise prior authorization packet from local case files and payer policy docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2034,2037,2040,2043],{"name":2035,"slug":2036,"type":15},"Documents","documents",{"name":2038,"slug":2039,"type":15},"Healthcare","healthcare",{"name":2041,"slug":2042,"type":15},"Insurance","insurance",{"name":2044,"slug":2045,"type":15},"Regulatory Compliance","regulatory-compliance",28169,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python","2026-04-16T05:11:39.180399",{"slug":2050,"name":2050,"fn":2051,"description":2052,"org":2053,"tags":2054,"stars":2069,"repoUrl":2070,"updatedAt":2071},"aspnet-core","build ASP.NET Core web applications","Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2055,2058,2060,2063,2066],{"name":2056,"slug":2057,"type":15},".NET","dotnet",{"name":2059,"slug":2050,"type":15},"ASP.NET Core",{"name":2061,"slug":2062,"type":15},"Blazor","blazor",{"name":2064,"slug":2065,"type":15},"C#","csharp",{"name":2067,"slug":2068,"type":15},"Web Development","web-development",23787,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fskills","2026-04-12T05:07:02.819491",{"slug":2073,"name":2073,"fn":2074,"description":2075,"org":2076,"tags":2077,"stars":2069,"repoUrl":2070,"updatedAt":2088},"chatgpt-apps","build ChatGPT Apps SDK applications","Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2078,2081,2084,2087],{"name":2079,"slug":2080,"type":15},"Apps SDK","apps-sdk",{"name":2082,"slug":2083,"type":15},"ChatGPT","chatgpt",{"name":2085,"slug":2086,"type":15},"MCP","mcp",{"name":9,"slug":8,"type":15},"2026-04-12T05:07:05.468097",{"slug":2090,"name":2090,"fn":2091,"description":2092,"org":2093,"tags":2094,"stars":2069,"repoUrl":2070,"updatedAt":2104},"cli-creator","build CLIs from API docs","Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read\u002Fwrite commands, return stable JSON, manage auth, and pair with a companion skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2095,2098,2101],{"name":2096,"slug":2097,"type":15},"API Development","api-development",{"name":2099,"slug":2100,"type":15},"CLI","cli",{"name":2102,"slug":2103,"type":15},"Codex","codex","2026-04-12T05:07:04.132762",{"slug":2106,"name":2106,"fn":2107,"description":2108,"org":2109,"tags":2110,"stars":2069,"repoUrl":2070,"updatedAt":2119},"cloudflare-deploy","deploy projects to Cloudflare","Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2111,2112,2115,2116],{"name":17,"slug":18,"type":15},{"name":2113,"slug":2114,"type":15},"Cloudflare Pages","cloudflare-pages",{"name":13,"slug":14,"type":15},{"name":2117,"slug":2118,"type":15},"Deployment","deployment","2026-04-12T05:07:14.275118",{"slug":2121,"name":2121,"fn":2122,"description":2123,"org":2124,"tags":2125,"stars":2069,"repoUrl":2070,"updatedAt":2138},"define-goal","define and set measurable project goals","Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective, clarify success criteria, or turn a fuzzy intention into a quantitative outcome. Use this skill for goal creation and goal refinement only; it does not manage durable snapshots, decision logs, or long-running execution artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2126,2129,2132,2135],{"name":2127,"slug":2128,"type":15},"Productivity","productivity",{"name":2130,"slug":2131,"type":15},"Project Management","project-management",{"name":2133,"slug":2134,"type":15},"Strategy","strategy",{"name":2136,"slug":2137,"type":15},"Task Management","task-management","2026-05-23T06:17:16.870838",{"slug":2140,"name":2140,"fn":2141,"description":2142,"org":2143,"tags":2144,"stars":2069,"repoUrl":2070,"updatedAt":2154},"figma","translate Figma designs into code","Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2145,2148,2150,2153],{"name":2146,"slug":2147,"type":15},"Design","design",{"name":2149,"slug":2140,"type":15},"Figma",{"name":2151,"slug":2152,"type":15},"Frontend","frontend",{"name":2085,"slug":2086,"type":15},"2026-04-12T05:06:47.939943",{"slug":2156,"name":2156,"fn":2157,"description":2158,"org":2159,"tags":2160,"stars":2069,"repoUrl":2070,"updatedAt":2170},"figma-code-connect-components","connect Figma designs to code components","Connects Figma design components to code components using Code Connect mapping tools. Use when user says \"code connect\", \"connect this component to code\", \"map this component\", \"link component to code\", \"create code connect mapping\", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2161,2162,2165,2166,2167],{"name":2146,"slug":2147,"type":15},{"name":2163,"slug":2164,"type":15},"Design System","design-system",{"name":2149,"slug":2140,"type":15},{"name":2151,"slug":2152,"type":15},{"name":2168,"slug":2169,"type":15},"UI Components","ui-components","2026-05-10T05:59:52.971881",{"slug":2172,"name":2172,"fn":2173,"description":2174,"org":2175,"tags":2176,"stars":2069,"repoUrl":2070,"updatedAt":2184},"figma-create-design-system-rules","generate design system rules from Figma","Generates custom design system rules for the user's codebase. Use when user says \"create design system rules\", \"generate rules for my project\", \"set up design rules\", \"customize design system guidelines\", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2177,2178,2179,2182,2183],{"name":2146,"slug":2147,"type":15},{"name":2163,"slug":2164,"type":15},{"name":2180,"slug":2181,"type":15},"Documentation","documentation",{"name":2149,"slug":2140,"type":15},{"name":2151,"slug":2152,"type":15},"2026-05-16T06:07:47.821474",{"slug":2186,"name":2186,"fn":2187,"description":2188,"org":2189,"tags":2190,"stars":2069,"repoUrl":2070,"updatedAt":2196},"figma-implement-design","translate Figma designs into application code","Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions \"implement design\", \"generate code\", \"implement component\", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2191,2192,2193,2194,2195],{"name":2146,"slug":2147,"type":15},{"name":2149,"slug":2140,"type":15},{"name":2151,"slug":2152,"type":15},{"name":2168,"slug":2169,"type":15},{"name":2067,"slug":2068,"type":15},"2026-05-16T06:07:40.583615",{"slug":2198,"name":2198,"fn":2199,"description":2200,"org":2201,"tags":2202,"stars":2069,"repoUrl":2070,"updatedAt":2211},"hatch-pet","create animated pets for Codex","Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2203,2206,2207,2210],{"name":2204,"slug":2205,"type":15},"Animation","animation",{"name":2102,"slug":2103,"type":15},{"name":2208,"slug":2209,"type":15},"Creative","creative",{"name":2146,"slug":2147,"type":15},"2026-05-02T05:31:48.48485",{"slug":2213,"name":2213,"fn":2214,"description":2215,"org":2216,"tags":2217,"stars":2069,"repoUrl":2070,"updatedAt":2227},"imagegen","generate and edit raster images","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2218,2219,2220,2223,2226],{"name":2208,"slug":2209,"type":15},{"name":2146,"slug":2147,"type":15},{"name":2221,"slug":2222,"type":15},"Image Generation","image-generation",{"name":2224,"slug":2225,"type":15},"Images","images",{"name":9,"slug":8,"type":15},"2026-05-15T06:23:24.312127",675,{"items":2230,"total":2342},[2231,2248,2264,2276,2292,2310,2330],{"slug":2232,"name":2232,"fn":2233,"description":2234,"org":2235,"tags":2236,"stars":28,"repoUrl":29,"updatedAt":2247},"accessibility-and-inclusive-visualization","make data visualizations accessible","Make data visualizations accessible and inclusive. Use when the user needs chart or diagram accessibility guidance, text alternatives for complex visuals, color and contrast review, keyboard support, reduced-motion behavior for animation or parallax, or an accessibility QA workflow for exported figures, UML-like diagrams, and dashboards.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2237,2240,2243,2246],{"name":2238,"slug":2239,"type":15},"Accessibility","accessibility",{"name":2241,"slug":2242,"type":15},"Charts","charts",{"name":2244,"slug":2245,"type":15},"Data Visualization","data-visualization",{"name":2146,"slug":2147,"type":15},"2026-06-30T19:00:57.102",{"slug":2249,"name":2249,"fn":2250,"description":2251,"org":2252,"tags":2253,"stars":28,"repoUrl":29,"updatedAt":2263},"agent-browser","automate browser interactions for agents","Browser automation CLI for AI agents. Use when the user needs to interact with websites, verify dev server output, test web apps, navigate pages, fill forms, click buttons, take screenshots, extract data, or automate any browser task. Also triggers when a dev server starts so you can verify it visually.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2254,2257,2260],{"name":2255,"slug":2256,"type":15},"Agents","agents",{"name":2258,"slug":2259,"type":15},"Browser Automation","browser-automation",{"name":2261,"slug":2262,"type":15},"Testing","testing","2026-04-06T18:41:03.44016",{"slug":2265,"name":2265,"fn":2266,"description":2267,"org":2268,"tags":2269,"stars":28,"repoUrl":29,"updatedAt":2275},"agent-browser-verify","verify dev server output with automated browser","Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass\u002Ffail before continuing.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2270,2271,2274],{"name":2258,"slug":2259,"type":15},{"name":2272,"slug":2273,"type":15},"Local Development","local-development",{"name":2261,"slug":2262,"type":15},"2026-04-06T18:41:17.526867",{"slug":2277,"name":2277,"fn":2278,"description":2279,"org":2280,"tags":2281,"stars":28,"repoUrl":29,"updatedAt":2291},"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, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2282,2283,2284,2287,2288],{"name":2255,"slug":2256,"type":15},{"name":13,"slug":14,"type":15},{"name":2285,"slug":2286,"type":15},"SDK","sdk",{"name":26,"slug":27,"type":15},{"name":2289,"slug":2290,"type":15},"WebSockets","websockets","2026-04-06T18:39:51.717063",{"slug":2293,"name":2293,"fn":2294,"description":2295,"org":2296,"tags":2297,"stars":28,"repoUrl":29,"updatedAt":2309},"ai-elements","build chat UIs with AI Elements","AI Elements component library guidance — pre-built React components for AI interfaces built on shadcn\u002Fui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2298,2299,2302,2305,2306],{"name":2151,"slug":2152,"type":15},{"name":2300,"slug":2301,"type":15},"React","react",{"name":2303,"slug":2304,"type":15},"shadcn\u002Fui","shadcn-ui",{"name":2168,"slug":2169,"type":15},{"name":2307,"slug":2308,"type":15},"Vercel","vercel","2026-04-06T18:40:59.619419",{"slug":2311,"name":2311,"fn":2312,"description":2313,"org":2314,"tags":2315,"stars":28,"repoUrl":29,"updatedAt":2329},"ai-gateway","configure Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2316,2319,2322,2325,2328],{"name":2317,"slug":2318,"type":15},"AI Infrastructure","ai-infrastructure",{"name":2320,"slug":2321,"type":15},"Cost Optimization","cost-optimization",{"name":2323,"slug":2324,"type":15},"LLM","llm",{"name":2326,"slug":2327,"type":15},"Performance","performance",{"name":2307,"slug":2308,"type":15},"2026-04-06T18:40:44.377464",{"slug":2331,"name":2331,"fn":2332,"description":2333,"org":2334,"tags":2335,"stars":28,"repoUrl":29,"updatedAt":2341},"ai-generation-persistence","implement persistence patterns for AI generations","AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2336,2337,2340],{"name":2320,"slug":2321,"type":15},{"name":2338,"slug":2339,"type":15},"Database","database",{"name":2323,"slug":2324,"type":15},"2026-04-06T18:41:08.513425",600]