AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

sandbox-next

Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview). Use sandbox-migrate-to-next when porting a stable app.

Original source
cloudflare
License
Apache-2.0
Pinned revision
e44f580f9c4fa3bf268e284ae7706c7954ba31fd

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read cloudflare--sandbox-next at revision e44f580f9c4fa3bf268e284ae7706c7954ba31fd, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 4

references/api-quick-ref.md

Sandbox @next API documentation

Use this reference after the sandbox-next package-line gate. Existing stable apps use sandbox-stable; stable-to-preview migrations use sandbox-migrate-to-next.

Fetch the page for the task before implementing and check signatures against installed @cloudflare/sandbox@next types.

| Task | Documentation | | --- | --- | | Launch commands, collect output, stream logs, wait for readiness, inspect or stop processes | Processes API and Process execution | | Understand sandbox IDs, container lifetime, sleep, destruction, and durable state | Sandbox lifecycle | | Configure sleep, keep-alive, and ID normalization | Sandbox options; omit removed session and transport fields on @next. | | Create, connect, write to, resize, or stop interactive terminals | Terminals API and Terminals | | Attach the interpreter, manage contexts, run code, or consume streamed results | Interpreter and Interpreter API | | Set sandbox or per-launch environment | Environment variables | | Keep external API credentials in the Worker | Outbound traffic | | Handle startup failures, interrupted work, stale handles, or local wait cancellation | Errors and recovery and Errors API | | Find other preview APIs | Preview API reference |

For files, mounts, backups, ports, and tunnels, follow the shared-surface links in the preview overview. Use main-docs signatures only where that overview says they still apply; ignore stable-only session and transport options.