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.

Poll sandbox until ready with backoff

+10
+10
apps/cf-sandbox/src/index.ts
··· 304 304 305 305 await sandbox.start(); 306 306 307 + for (let i = 0; i < 10; i++) { 308 + try { 309 + await sandbox.sh`echo ready`; 310 + break; 311 + } catch { 312 + if (i === 9) return c.json({ error: "Sandbox failed to start" }, 503); 313 + await new Promise((r) => setTimeout(r, 500 * Math.pow(2, i))); 314 + } 315 + } 316 + 307 317 await c.var.db 308 318 .update(sandboxes) 309 319 .set({