--- title: "Pocketenv" description: "Open-source, multi-provider sandbox platform for running code safely in isolated environments." --- Pocketenv lets you create and manage sandboxes — isolated compute environments — across multiple backend providers, all from a single CLI or SDK. Run AI agents, untrusted code, and experiments without touching your local machine. Install the CLI and spin up your first sandbox in minutes. Integrate Pocketenv into your TypeScript or JavaScript app. Choose from 10 supported backend providers. Full XRPC API documentation with interactive playground. ## What you can do Execute shell commands or drop into an interactive console. Make services publicly accessible with a preview URL. Store encrypted secrets and plaintext environment variables. Define and manage long-running processes inside your sandbox. Create point-in-time snapshots and restore from them. Attach volumes for data that survives sandbox restarts. ## How it works Pocketenv uses the [AT Protocol](https://atproto.com) to define sandboxes as portable, versioned records — meaning a sandbox definition is not locked to any one provider. You can move between Cloudflare, Daytona, Vercel, E2B, Modal, and more without changing your code. ```bash # Create a sandbox on any provider pocketenv create my-app --provider daytona --base openclaw # Run a command pocketenv exec my-app "npm install && npm start" # Open an interactive shell pocketenv console my-app ``` ```typescript // Or use the SDK import { Sandbox } from "@pocketenv/sdk"; const sandbox = await Sandbox.create({ name: "my-app", base: "openclaw" }); const result = await sandbox.sh`npm test`; console.log(result.stdout); await sandbox.stop(); ```