Skip to main content
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.

Quickstart

Install the CLI and spin up your first sandbox in minutes.

SDK Reference

Integrate Pocketenv into your TypeScript or JavaScript app.

Providers

Choose from 10 supported backend providers.

API Reference

Full XRPC API documentation with interactive playground.

What you can do

Run commands

Execute shell commands or drop into an interactive console.

Expose ports

Make services publicly accessible with a preview URL.

Manage secrets

Store encrypted secrets and plaintext environment variables.

Run services

Define and manage long-running processes inside your sandbox.

Backup & restore

Create point-in-time snapshots and restore from them.

Persistent storage

Attach volumes for data that survives sandbox restarts.

How it works

Pocketenv uses the AT Protocol 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.
# 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
// 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();