the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Proxy requests to Cloudflare sandbox

+4 -1
+4 -1
apps/cf-sandbox/src/index.ts
··· 1 1 import { Hono } from "hono"; 2 2 import { cors } from "hono/cors"; 3 3 import { Context } from "./context"; 4 - import { getSandbox, Sandbox } from "@cloudflare/sandbox"; 4 + import { getSandbox, proxyToSandbox, Sandbox } from "@cloudflare/sandbox"; 5 5 import { 6 6 files, 7 7 sandboxes, ··· 43 43 app.use(cors()); 44 44 45 45 app.use("*", async (c, next) => { 46 + const proxyResponse = await proxyToSandbox(c.req.raw, c.env); 47 + if (proxyResponse) return proxyResponse; 48 + 46 49 c.set("db", getConnection()); 47 50 const token = c.req.header("Authorization")?.split(" ")[1]?.trim(); 48 51 if (token) {