Store configuration and credentials for your sandboxes.
Pocketenv has two ways to pass configuration into a sandbox:
Environment Variables
Secrets
Stored as
Plaintext
Encrypted (libsodium)
Visible in API
Yes
Redacted
Use for
Non-sensitive config
Passwords, tokens, keys
Environment variables
CLI
# Set a variablepocketenv env put my-sandbox DATABASE_URL "postgres://localhost/mydb"pocketenv env put my-sandbox NODE_ENV "production"# List all variablespocketenv env list my-sandboxpocketenv env ls my-sandbox # alias# Delete a variablepocketenv env delete <variable-id>pocketenv env rm <variable-id> # alias
Secrets are encrypted at rest using libsodium. The value is never returned in API responses — only a redacted placeholder is shown.
CLI
# Set a secret (you'll be prompted for the value)pocketenv secret put my-sandbox API_KEY# List secret names (values are never shown)pocketenv secret list my-sandboxpocketenv secret ls my-sandbox # alias# Deletepocketenv secret delete <secret-id>pocketenv secret rm <secret-id> # alias
SDK
await sandbox.secret.put("API_KEY", process.env.API_KEY!);await sandbox.secret.put("STRIPE_SECRET", "sk_live_...");const secrets = await sandbox.secret.list();// [{ id: "...", name: "API_KEY" }] ← value is never returnedawait sandbox.secret.delete(secretId);
Setting variables at sandbox creation
You can bake env vars and secrets into a sandbox at creation time via the SDK builder: