<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Cloudflare changelogs | Sandbox SDK</title><description>Cloudflare changelogs for Sandbox SDK</description><link>https://developers.cloudflare.com/changelog/</link><item><title>Sandbox SDK - Deprecating Sandbox SDK features</title><link>https://developers.cloudflare.com/changelog/post/2026-06-09-deprecating-sandbox-sdk-features/</link><guid isPermaLink="true">https://developers.cloudflare.com/changelog/post/2026-06-09-deprecating-sandbox-sdk-features/</guid><description>&lt;p&gt;Today we are announcing the deprecation of several features from the Sandbox SDK. The SDK has grown and matured substantially since it first launched. As agent workflows have developed, we have shipped many new features and experiments so developers can easily integrate secure, isolated code execution into their workflows.&lt;/p&gt;
&lt;p&gt;We want the SDK to continue providing a stable foundation for agentic workflows while we iterate quickly on the codebase. These deprecated features have either been superseded by newer capabilities or seen low adoption. They will remain in the codebase until July 9, 2026, after which they will no longer be present in future Sandbox SDK versions.&lt;/p&gt;
&lt;h4&gt;HTTP and WebSocket transports&lt;/h4&gt;
&lt;p&gt;In April 2026, we released the new RPC transport and deprecated the WebSocket transport. This setting governs how the sandbox container talks to the Workers ecosystem. The RPC transport removes the limitations of both the HTTP and WebSocket transports. As of June 9, 2026, it is the recommended default. HTTP and WebSocket transports will no longer be present in Sandbox SDK versions released after July 9, 2026.&lt;/p&gt;
&lt;p&gt;To migrate before July 9, 2026, update the &lt;code&gt;SANDBOX_TRANSPORT&lt;/code&gt; variable to &lt;code&gt;rpc&lt;/code&gt; or set the &lt;code&gt;transport&lt;/code&gt; option when calling &lt;code&gt;getSandbox()&lt;/code&gt;. For more information, refer to the &lt;a href=&quot;https://developers.cloudflare.com/sandbox/configuration/transport/&quot;&gt;transport configuration documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h4&gt;Desktop&lt;/h4&gt;
&lt;p&gt;The desktop feature landed as a technical demonstration of what can be done with the Sandbox SDK — controlling a full browser environment from within a sandbox. With &lt;a href=&quot;https://developers.cloudflare.com/browser-run/&quot;&gt;Cloudflare Browser Run&lt;/a&gt; now available, this feature saw very little use. We have removed it in &lt;code&gt;0.10.2&lt;/code&gt;.&lt;/p&gt;
&lt;h4&gt;Expose ports&lt;/h4&gt;
&lt;p&gt;We recently released support for Cloudflare Tunnel in the Sandbox SDK. This provides a robust API for exposing services running in your sandbox to the public internet. It fixes issues many were facing with local development and deployment to &lt;code&gt;workers.dev&lt;/code&gt; domains. To migrate from &lt;code&gt;exposePort()&lt;/code&gt; to tunnels, refer to the &lt;a href=&quot;https://developers.cloudflare.com/sandbox/api/tunnels/&quot;&gt;tunnels API documentation&lt;/a&gt; and the &lt;a href=&quot;https://developers.cloudflare.com/sandbox/guides/expose-services/&quot;&gt;expose services guide&lt;/a&gt;.&lt;/p&gt;
&lt;h4&gt;Default sessions&lt;/h4&gt;
&lt;p&gt;By default, the &lt;code&gt;exec()&lt;/code&gt; method in the Sandbox SDK maintains a default session across all calls, so a &lt;code&gt;cd&lt;/code&gt; in one call is honored in the next. This convenience helped developers writing &lt;code&gt;exec&lt;/code&gt; statements by hand, but confused agents and caused hard-to-trace bugs. As of &lt;code&gt;0.10.3&lt;/code&gt;, we have introduced the &lt;a href=&quot;https://developers.cloudflare.com/sandbox/configuration/sandbox-options/&quot;&gt;&lt;code&gt;enableDefaultSession&lt;/code&gt;&lt;/a&gt; flag on the &lt;code&gt;getSandbox()&lt;/code&gt; interface to turn this off. Default sessions as a concept — and the flag — will be removed in an upcoming release.&lt;/p&gt;
&lt;p&gt;We recommend setting &lt;code&gt;enableDefaultSession: false&lt;/code&gt; today and using the &lt;a href=&quot;https://developers.cloudflare.com/sandbox/api/sessions/&quot;&gt;&lt;code&gt;sandbox.createSession()&lt;/code&gt; API&lt;/a&gt; when you need the previous behavior.&lt;/p&gt;
&lt;h4&gt;Other changes&lt;/h4&gt;
&lt;p&gt;We are also consolidating all APIs that buffer data to support streaming by default. This includes &lt;a href=&quot;https://developers.cloudflare.com/sandbox/api/files/&quot;&gt;&lt;code&gt;readFile&lt;/code&gt;, &lt;code&gt;writeFile&lt;/code&gt;&lt;/a&gt;, and &lt;a href=&quot;https://developers.cloudflare.com/sandbox/api/commands/&quot;&gt;&lt;code&gt;exec&lt;/code&gt;&lt;/a&gt;. The stream equivalents will be removed.&lt;/p&gt;
&lt;p&gt;We are exploring moving non-core features like the &lt;a href=&quot;https://developers.cloudflare.com/sandbox/guides/code-execution/&quot;&gt;code interpreter&lt;/a&gt;, &lt;a href=&quot;https://developers.cloudflare.com/sandbox/api/terminal/&quot;&gt;terminal&lt;/a&gt;, and &lt;a href=&quot;https://developers.cloudflare.com/sandbox/guides/git-workflows/&quot;&gt;git APIs&lt;/a&gt; into helpers. These features will retain their existing APIs, so migration should be simple.&lt;/p&gt;
&lt;h4&gt;Next steps&lt;/h4&gt;
&lt;p&gt;If you use any of these features, refer to the &lt;a href=&quot;https://developers.cloudflare.com/sandbox/guides/2026-deprecation/&quot;&gt;2026 deprecation migration guide&lt;/a&gt;. We also provide an &lt;a href=&quot;https://developers.cloudflare.com/sandbox/guides/2026-deprecation/SKILL.md&quot;&gt;agent skill&lt;/a&gt; to help with the migration.&lt;/p&gt;
&lt;p&gt;For any questions, ask in the &lt;a href=&quot;https://discord.gg/cloudflaredev&quot; target=&quot;_blank&quot;&gt;Cloudflare Developers Discord&lt;/a&gt;.&lt;/p&gt;</description><pubDate>Tue, 09 Jun 2026 00:00:00 GMT</pubDate><product>Sandbox SDK</product><category>Sandbox SDK</category></item></channel></rss>