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.

Add --ssh option to create command

+10 -4
+9 -4
apps/cli/src/cmd/create.ts
··· 3 3 import getAccessToken from "../lib/getAccessToken"; 4 4 import type { Sandbox } from "../types/sandbox"; 5 5 import chalk from "chalk"; 6 + import connectToSandbox from "./ssh"; 6 7 7 8 async function createSandbox( 8 9 name: string, 9 - { provider }: { provider: string | undefined }, 10 + { provider, ssh }: { provider: string | undefined; ssh: boolean | undefined }, 10 11 ) { 11 12 const token = await getAccessToken(); 12 13 ··· 30 31 }, 31 32 }, 32 33 ); 33 - consola.success( 34 - `Sandbox created successfully: ${chalk.greenBright(sandbox.data.name)}`, 35 - ); 34 + if (!ssh) { 35 + consola.success( 36 + `Sandbox created successfully: ${chalk.greenBright(sandbox.data.name)}`, 37 + ); 38 + return; 39 + } 40 + await connectToSandbox(sandbox.data.name); 36 41 } catch (error) { 37 42 consola.error(`Failed to create sandbox: ${error}`); 38 43 }
+1
apps/cli/src/index.ts
··· 85 85 .command("create") 86 86 .aliases(["new"]) 87 87 .option("--provider, -p <provider>", "the provider to use for the sandbox") 88 + .option("--ssh, -s", "connect to the Sandbox and automatically open a shell") 88 89 .argument("[name]", "the name of the sandbox to create") 89 90 .description("create a new sandbox") 90 91 .action(createSandbox);