> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pocketenv.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pocketenv

> 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.

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Install the CLI and spin up your first sandbox in minutes.
  </Card>

  <Card title="SDK Reference" icon="code" href="/development">
    Integrate Pocketenv into your TypeScript or JavaScript app.
  </Card>

  <Card title="Providers" icon="server" href="/guides/providers">
    Choose from 10 supported backend providers.
  </Card>

  <Card title="API Reference" icon="terminal" href="/api-reference/introduction">
    Full XRPC API documentation with interactive playground.
  </Card>
</CardGroup>

## What you can do

<CardGroup cols={3}>
  <Card title="Run commands" icon="rectangle-terminal" href="/guides/exec-and-console">
    Execute shell commands or drop into an interactive console.
  </Card>

  <Card title="Expose ports" icon="network-wired" href="/guides/ports-and-networking">
    Make services publicly accessible with a preview URL.
  </Card>

  <Card title="Manage secrets" icon="lock" href="/guides/secrets-and-env">
    Store encrypted secrets and plaintext environment variables.
  </Card>

  <Card title="Run services" icon="play" href="/guides/services">
    Define and manage long-running processes inside your sandbox.
  </Card>

  <Card title="Backup & restore" icon="floppy-disk" href="/guides/backups">
    Create point-in-time snapshots and restore from them.
  </Card>

  <Card title="Persistent storage" icon="database" href="/api-reference/volume/list">
    Attach volumes for data that survives sandbox restarts.
  </Card>
</CardGroup>

## 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 theme={"theme":{"light":"catppuccin-latte","dark":"laserwave"}}
# 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 theme={"theme":{"light":"catppuccin-latte","dark":"laserwave"}}
// 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();
```
