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.

Clone repository when opening sandbox terminal

If the sandbox record includes a repo URL, call cfsandbox.clone
before fetching params and cfsession.clone after session setup. Log
success or failure for each attempt.

+20
+20
apps/cf-sandbox/src/index.ts
··· 489 489 id: c.req.param("sandboxId"), 490 490 }); 491 491 492 + if (record.repo) { 493 + cfsandbox 494 + .clone(record.repo) 495 + .then(() => 496 + consola.success(`Git Repository successfully cloned: ${record.repo}`), 497 + ) 498 + .catch((e) => consola.error(`Failed to Clone Repository: ${e}`)); 499 + } 500 + 492 501 const params = await Promise.all([ 493 502 c.var.db 494 503 .select() ··· 596 605 params[4].length > 0 && 597 606 cfsession.setupTailscale(await decrypt(params[4][0].authKey)), 598 607 ]); 608 + 609 + if (record.repo) { 610 + cfsession 611 + .clone(record.repo) 612 + .then(() => 613 + consola.success( 614 + `Git Repository successfully cloned: ${record.repo}`, 615 + ), 616 + ) 617 + .catch((e) => consola.error(`Failed to Clone Repository: ${e}`)); 618 + } 599 619 600 620 return session.terminal(c.req.raw); 601 621 }