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.

Start services when starting sandbox

Fetch services from the DB for the sandbox and enqueue a
background waitUntil that calls sandbox.startService for each
service command. Also apply a minor formatting fix in the xrpc
startSandbox handler.

+12
+1
apps/api/src/xrpc/io/pocketenv/sandbox/startSandbox.ts
··· 64 64 }, 65 65 }, 66 66 ); 67 + 67 68 return {}; 68 69 }; 69 70 server.io.pocketenv.sandbox.startSandbox({
+11
apps/cf-sandbox/src/index.ts
··· 377 377 .leftJoin(users, eq(sandboxes.userId, users.id)) 378 378 .where(eq(sandboxPorts.sandboxId, c.req.param("sandboxId"))) 379 379 .execute(), 380 + c.var.db 381 + .select() 382 + .from(services) 383 + .where(eq(services.sandboxId, c.req.param("sandboxId"))) 384 + .execute(), 380 385 ]); 381 386 382 387 c.executionCtx.waitUntil( ··· 472 477 .execute(); 473 478 } 474 479 }), 480 + ); 481 + 482 + c.executionCtx.waitUntil( 483 + Promise.all( 484 + params[7].map((service) => sandbox?.startService(service.command)), 485 + ), 475 486 ); 476 487 } catch (err) { 477 488 const errorMessage = err instanceof Error ? err.message : "Unknown error";