| name | app-platform-sandbox |
| version | 1.0.0 |
| min_doctl_version | 1.82.0 |
| description | Create and manage isolated container sandboxes for AI agent code execution. Use when you need ephemeral environments to run untrusted code, execute agent workflows, or test in isolation. NOT for debugging existing apps (use troubleshooting skill). |
| related_skills | ["troubleshooting"] |
| deprecated | false |
Sandbox Skill
Isolated execution environments for AI agents and testing workflows.
Philosophy
Lambda/Functions: Fast cold start, 15-min limit, stateless, per-ms billing
App Platform Sandbox: 30s cold start (or instant with pool), unlimited duration, stateful, per-hour billing
Sweet spot: Long-running, stateful, iterative workflows where agents need to
install packages, run code, check results, modify, repeat.
Quick Decision
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Need isolated execution environment? โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
Is this for debugging an EXISTING app?
โ
โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โ โ
YES NO
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ troubleshooting โ โ Need real-time โ
โ skill โ โ streaming or โ
โ โ โ port exposure? โ
โ Sandbox.get_ โ โ โ
โ from_id() โ โโโโโโโโโโฌโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โ โ
YES NO
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ SERVICE MODE โ โ Is low latency โ
โ exec_stream() โ โ critical? โ
โ expose_port() โ โ โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โ โ
YES NO
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ HOT POOL โ โ COLD SANDBOX โ
โ SandboxManager โ โ Sandbox.create()โ
โ ~50ms acquire โ โ ~30s startup โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ