Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions public/__redirects
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,10 @@
/containers/wrangler-configuration/ /containers/reference/wrangler-configuration/ 301
/containers/wrangler-commands/ /containers/reference/wrangler-commands/ 301
# Sandbox
/sandbox/platform/beta-info/ /sandbox/platform/ 301
/sandbox/guides/openai-agents-sdk/ /sandbox/tutorials/openai-agents/ 301
/sandbox/guides/production-deployment/ /sandbox/guides/preview-urls-custom-domain/ 301
/sandbox/platform/beta-info/ /sandbox/sdk/platform/ 301
/sandbox/guides/openai-agents-sdk/ /sandbox/sdk/tutorials/openai-agents/ 301
/sandbox/guides/production-deployment/ /sandbox/sdk/guides/preview-urls-custom-domain/ 301
/sandbox/get-started/ /sandbox/sdk/get-started/ 301
# D1
/d1/client-api/ /d1/worker-api/ 301
/d1/build-with-d1/d1-client-api/ /d1/worker-api/ 301
Expand Down Expand Up @@ -2833,6 +2834,14 @@
/browser-rendering/rest-api/* /browser-run/quick-actions/:splat 301
/browser-rendering/quick-actions-rest-api/* /browser-run/quick-actions/:splat 301
/browser-rendering/* /browser-run/:splat 301
/sandbox/1-0-preview/* /sandbox/ 301
/sandbox/api/* /sandbox/sdk/api/:splat 301
/sandbox/configuration/* /sandbox/sdk/configuration/:splat 301
/sandbox/bridge/* /sandbox/sdk/bridge/:splat 301
/sandbox/concepts/* /sandbox/sdk/concepts/:splat 301
/sandbox/guides/* /sandbox/sdk/guides/:splat 301
/sandbox/tutorials/* /sandbox/sdk/tutorials/:splat 301
/sandbox/platform/* /sandbox/sdk/platform/:splat 301
/*/sitemap.xml /sitemap-index.xml 301
/api-security/* /api-shield/:splat 301
/api-shield/products/* /api-shield/security/:splat 301
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing/sidebar-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const sidebarSections: SidebarSection[] = [
link("Agents", "/agents/"),
link("Agent Memory", "/agent-memory/"),
link("Wallets", "/wallets/"),
link("Sandbox SDK", "/sandbox/"),
link("Sandboxes", "/sandbox/"),
link("Vectorize", "/vectorize/"),
link("AI Search", "/ai-search/"),
link("AI Crawl Control", "/ai-crawl-control/"),
Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions src/content/directory/sandbox.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
id: XN9oQt
name: Sandbox SDK
name: Sandboxes

entry:
title: Sandbox SDK
title: Sandboxes
url: /sandbox/
group: Developer platform
additional_groups: [AI]
tags: [AI]

meta:
title: Cloudflare Sandbox SDK docs
description: Build secure, isolated code execution environments
title: Cloudflare Sandboxes docs
description: Isolated execution on Cloudflare using Dynamic Workers and Containers
author: "@cloudflare"
4 changes: 2 additions & 2 deletions src/content/docs/agents/tools/sandbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ For long-running sandbox work, pair Sandbox with [durable execution with fibers]

<LinkCard
title="Execute commands"
href="/sandbox/guides/execute-commands/"
href="/sandbox/sdk/guides/execute-commands/"
description="Run shell commands in a sandbox environment."
/>

<LinkCard
title="Manage files"
href="/sandbox/guides/manage-files/"
href="/sandbox/sdk/guides/manage-files/"
description="Read, write, upload, and download sandbox files."
/>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { PackageManagers, TypeScriptExample } from "~/components";

This example uses the `git-repo-per-sandbox` Sandbox SDK template and highlights the Artifacts-specific pieces.

Start from the template with `create cloudflare`, as shown in [Run Claude Code on a Sandbox](/sandbox/tutorials/claude-code/#1-create-your-project). Then adapt the Artifacts flow with the focused snippets below.
Start from the template with `create cloudflare`, as shown in [Run Claude Code on a Sandbox](/sandbox/sdk/tutorials/claude-code/#1-create-your-project). Then adapt the Artifacts flow with the focused snippets below.

- Creates or reuses a sandbox by ID.
- Creates or reuses an Artifacts repo with the same ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Use the `@cloudflare/ci` SDK to define the CI steps. The SDK provides two tools

![Diagram showing three sequential commits: commit 1 has a cache miss so the install step runs and its sandbox snapshot is cached; commit 2 has an unchanged pnpm-lock.yaml so the cache key matches and the cached snapshot is served, skipping install; commit 3 has a changed pnpm-lock.yaml so the cache key misses and install runs again.](~/assets/images/artifacts/snapshot-cache-flow.svg)

A cached runner takes a [snapshot](/sandbox/api/backups/) of its sandbox, which later runners reuse. Multiple runners can branch from the same cached result — for example, lint, type-check, and test runners can all reuse one cached install.
A cached runner takes a [snapshot](/sandbox/sdk/api/backups/) of its sandbox, which later runners reuse. Multiple runners can branch from the same cached result — for example, lint, type-check, and test runners can all reuse one cached install.

<ArtifactsCIPipelineDiagram />

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/containers/guides/outbound-traffic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,6 @@ The `Container` class calls these methods automatically when you use the functio
## Related resources

- [Connect to Workers bindings](/containers/configuration/workers-connections/) — Access KV, R2, Durable Objects, and other bindings from a container
- [Control outbound traffic (Sandboxes)](/sandbox/guides/outbound-traffic/) — Sandbox SDK API for outbound handlers
- [Control outbound traffic (Sandboxes)](/sandbox/sdk/guides/outbound-traffic/) — Sandbox SDK API for outbound handlers
- [Environment variables and secrets](/containers/configuration/environment-variables/) — Configure secrets and environment variables
- [Durable Object interface](/durable-objects/api/container/) — Full `ctx.container` API reference
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Both [Sandboxes](/sandbox/) and [Containers](/containers/) provide secure, isola
- **Preview URLs** to allow users to test applications during development
- **Global edge deployment** on Cloudflare's network for low-latency execution worldwide

**Sandboxes provide a fully-managed solution** that works out-of-the-box, with [pre-built APIs](/sandbox/api/) for code execution, output formatting, and developer tools, making them ideal for most AI code execution use cases.
**Sandboxes provide a fully-managed solution** that works out-of-the-box, with [pre-built APIs](/sandbox/sdk/api/) for code execution, output formatting, and developer tools, making them ideal for most AI code execution use cases.

![Figure 3: Vibe Code Development - Sandbox SDK](~/assets/images/reference-architecture/ai-vibe-coding/ai-platform-sandbox.svg)

Expand Down
Loading