GitHub: pocketenv-io/pocketenv-elixir · hex.pm: pocketenv_ex
Installation
Add tomix.exs:
Authentication
config/config.exs (takes precedence over env vars):
{:ok, result} or {:error, reason}. Every Sandbox function accepts either a bare %Sandbox{} or an {:ok, %Sandbox{}} tuple as its first argument — so you can pipe across multiple steps without unwrapping.
Quick start
Sandbox lifecycle
Running commands
Ports & networking
Actor / profile
create_sandbox/2 options
| Option | Type | Default | Description |
|---|---|---|---|
:base | string | openclaw | Base sandbox image |
:provider | atom | :cloudflare | :cloudflare, :daytona, :vercel, :deno, :e2b, etc. |
:repo | string | nil | Git repo URL to clone on start |
:keep_alive | boolean | false | Prevent auto-stop on inactivity |
:token | string | global config | Per-call token override |
wait_until_running/2 options
| Option | Default | Description |
|---|---|---|
:timeout_ms | 60_000 | Max wait time in ms |
:interval_ms | 2_000 | Poll interval in ms |
