Skip to main content

Installation

Authentication

Token resolution order:
  1. Sandbox.configure({ token }) or inline Sandbox.create({ token })
  2. POCKETENV_TOKEN environment variable
  3. ~/.pocketenv/token.json
Sandbox.configure() is optional if you have a token file or env var set.

Quick start

Sandbox lifecycle

Builder pattern

Useful when setting many options:
Available builder methods: name, description, provider, topics, repo, vcpus, memory, disk, readme, env, secret, keepAlive, token, baseUrl.

Running commands

Environment variables & secrets

Ports & networking

Files

Services

Volumes

Backups

SSH keys & Tailscale

Sub-resource reference