try-works/role-model/sandbox-2026-deprecation

Claude Code and agent skill by try-works/role-model

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Migrate Cloudflare Sandbox SDK codebases away from features deprecated in June 2026 (HTTP and WebSocket transports, desktop, exposePort, default sessions, and stream-specific file and command APIs).

Install

npx vskill@latest install try-works/role-model/sandbox-2026-deprecation

SKILL.md

Sandbox SDK 2026 deprecation migration

Use this skill when migrating a codebase that depends on the Cloudflare Sandbox SDK away from features deprecated in June 2026.

For the announcement, refer to the changelog entry. For detailed documentation, refer to the migration guide.

Migration checklist

  1. Update @cloudflare/sandbox and the sandbox container image before changing runtime configuration.
  2. Search the codebase for deprecated configuration and APIs:

``sh rg 'SANDBOX_TRANSPORT|transport:|exposePort\(|enableDefaultSession|execStream\(|readFileStream|writeFileStream' ``

  1. Switch every sandbox to RPC transport with SANDBOX_TRANSPORT=rpc or getSandbox(..., { transport: "rpc" }).
  2. Replace Sandbox SDK desktop APIs with Cloudflare Browser Run where browser automation is required.
  3. Replace exposePort() with sandbox.tunnels.get(). Use quick tunnels for development and named tunnels for stable production hostnames.
  4. Set enableDefaultSession: false on getSandbox().
  5. Replace workflows that depend on persisted shell state with explicit sessions from sandbox.createSession().
  6. Move stream-specific file and command logic to the base readFile(), writeFile(), and exec() APIs where streaming behavior is supported.
  7. Deploy the Worker and smoke-test command execution, file operations, public URLs, and stateful session workflows.

API replacements

Deprecated featureReplacement
HTTP or WebSocket transportRPC transport
Sandbox SDK desktopCloudflare Browser Run
exposePort()sandbox.tunnels.get()
Default sessionsenableDefaultSession: false with explicit sessions
Stream-specific command and file helpersBase command and file APIs with streaming support

Notes for agents

  • Do not remove exposePort() blindly if the Worker uses proxyToSandbox() to inject authentication or rewrite responses. Preserve that behavior before moving traffic to tunnels.
  • If code relies on cd carrying across separate exec() calls, create an explicit session with cwd instead.
  • Tunnels require RPC transport. Configure RPC before migrating public URLs.
  • Large or binary file streaming requires RPC transport.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/try-works/role-model/sandbox-2026-deprecation/badge)](https://verified-skill.com/skills/try-works/role-model/sandbox-2026-deprecation)

Something wrong with this skill or its page? Tell us.