Skip to main content
Pocketenv provides official SDKs for multiple languages. All SDKs wrap the same XRPC API and follow similar conventions.

JavaScript / TypeScript

@pocketenv/sdk — tagged template literals, builder pattern, full sub-resource support.

Gleam

pocketenv on hex.pm — type-safe, functional, pipe-friendly API.

Clojure

io.pocketenv/pocketenv on Clojars — idiomatic Clojure with -> chaining.

Elixir

pocketenv_ex on hex.pm — pipe-friendly, OTP-ready, config via config.exs.

Authentication

All SDKs resolve your token from the same sources, in priority order:
  1. Passed explicitly at the call site
  2. POCKETENV_TOKEN environment variable
  3. ~/.pocketenv/token.json — written by pocketenv login

Common concepts

Every SDK covers the same core resources:
ResourceDescription
SandboxCreate, start, stop, delete, exec
Environment variablesPlaintext key-value config
SecretsEncrypted credentials (redacted in responses)
FilesRead/write files inside a sandbox
PortsExpose sandbox ports to the internet
ServicesLong-running processes
VolumesPersistent storage
BackupsPoint-in-time directory snapshots