Most PAM behaviour is configured with CLI flags and listen() options, but a number of switches are environment variables: they reach every worker without code changes, and they work the same under systemd, Docker, pam up --env-file and pam.toml. This page lists every PAM_* variable the runtime reads (and the few standard ones it honours), grouped by purpose.
Variables in the last two sections are set by PAM. Read them from your application if useful, but do not set them yourself.
| Variable |
Default |
Effect |
NO_COLOR |
unset |
Any value disables colored output |
PAM_COLOR |
unset |
never disables colored output |
PAM_ERROR_FORMAT |
unset |
json prints CLI errors as a JSON envelope, like --json-errors |
PAM_DEV_EVENTS |
unset |
1, json or jsonl makes pam dev emit machine-readable development events |
PAM_DEV_ARTIFACT_BUDGET_BYTES |
8 GiB |
Size budget for generated development artifacts (256 MiB minimum) |
These are read by install.sh and, where noted, by pam self-update.
| Variable |
Default |
Effect |
PAM_VERSION |
latest |
Version to install, as a v-prefixed SemVer tag (for example v2.2.27) |
PAM_INSTALL_DIR |
$XDG_DATA_HOME/pam (else ~/.local/share/pam) |
Where versioned runtime directories are installed |
PAM_BIN_DIR |
$XDG_BIN_HOME (else ~/.local/bin) |
Where the pam launcher symlink is created |
PAM_EXPECTED_ARCHIVE_SHA256 |
unset |
Refuse the install unless the release checksum equals this digest |
PAM_GITHUB_REPOSITORY |
push-in/pam |
Repository releases are downloaded from (installer and self-update) |
PAM_RELEASE_API_URL |
GitHub latest-release API |
Release metadata URL (installer and self-update) |
PAM_RELEASE_BASE_URL |
GitHub release downloads |
Base URL of release assets (installer and self-update) |
| Variable |
Default |
Effect |
PAM_PHP_INI_SCAN_DIR |
unset |
Extra INI directory appended to the bundled etc/conf.d by the pam launcher |
PAM_COMPOSER |
unset |
Path to a composer.phar used instead of PAM’s embedded Composer |
PAM_FAST_DATE_FORMAT |
on |
0 turns off the C fast path for DateTimeInterface::format() with DATE_ATOM / DATE_RFC3339 |
PAM_FIBER_STACK_POOL |
on |
0 turns off pooling of Fiber C stacks |
PAM_FIBER_STACK_POOL_CAPACITY |
8 |
Fiber stacks pooled per worker (maximum 64) |
PAM_FIBER_STACK_POOL_SCRUB |
off |
1 zeroes and releases the pages of each pooled stack (less RSS, more page faults) |
The launcher itself sets PHPRC, PHP_INI_SCAN_DIR, PAM_HOME and PAM_EXTENSION_DIR to paths inside the installation.
Projects created by pam init read these in their entry point. They are conventions of the generated code, not of the runtime.
| Variable |
Default |
Effect |
PAM_PORT |
3000 |
Port passed to listen() |
PAM_HOST |
127.0.0.1 |
Host passed to listen(); containers set 0.0.0.0 |
PAM_ENV |
unset |
production enables production behaviour in the web template; Nimbus also reads it when APP_ENV is unset. pam deploy:remote sets it to production |
| Variable |
Default |
Effect |
PAM_TRUSTED_PROXIES |
unset |
Comma-separated addresses or CIDR ranges added to trustedProxies |
PAM_METRICS_TOKEN |
unset |
Bearer token required for the worker metrics path (metricsToken) |
PAM_METRICS_PUBLIC |
unset |
1 serves the worker metrics path to any peer (metricsPublic) |
PAM_WEBSOCKET_ORIGINS |
unset |
Comma-separated browser origins allowed to open WebSockets; overrides websocketOrigins |
PAM_MAX_INFLIGHT_BODY_BYTES |
memory_limit / 4 |
Overrides maxInflightBodyBytes; 0 disables the budget |
PAM_IO_THREADS |
0 |
0 serves HTTP/1 on the PHP thread; 1 to 16 adds separate I/O threads (TLS always uses at least one) |
PAM_DRAIN_IDLE_MS |
1000 |
How long a draining worker keeps idle connections open (maximum 30000) |
PAM_DRAIN_QUIESCE_MS |
100 |
How long a draining listener keeps accepting before handing off (maximum 5000) |
PAM_NODE_ID |
host, worker and PID |
Node identifier used by WebSocket adapters across machines |
| Variable |
Default |
Effect |
PAM_ADMIN_TOKEN |
unset |
Bearer token of the control plane (32 to 256 ASCII characters); required for a non-loopback --admin-address |
PAM_ADMIN_TOKEN_FILE |
unset |
Read that token from a regular file instead; cannot be combined with PAM_ADMIN_TOKEN |
PAM_PREFORK |
on (Linux, 2+ workers) |
0 starts every worker with exec instead of forking from a zygote |
PAM_PREFORK_BOOT |
engine (app for Laravel Octane) |
app forks workers from a booted application; engine from a bare engine |
PAM_PREFORK_DEBUG |
unset |
Log how many inherited files each worker reopened after forking from a booted application |
PAM_BALANCE |
on |
0 turns off least-connections hand-off between sibling workers |
PAM_SHARED_MEMORY_MAX_BYTES |
half of physical RAM |
Budget for shared tables |
| Variable |
Default |
Effect |
PAM_MANAGER_STATE_DIR |
$XDG_STATE_HOME/pam, else ~/.local/state/pam |
Records, logs, history and saved lists of pamd. Set it together with PAM_MANAGER_RUNTIME_DIR for an independent manager |
PAM_MANAGER_RUNTIME_DIR |
$XDG_RUNTIME_DIR/pam, else inside the state directory |
Location of the daemon socket |
| Variable |
Default |
Effect |
PAM_DIAGNOSTICS |
unset |
1 enables the diagnostics event channel (pam diagnostics, heap, fibers, connections set it) |
PAM_PROFILE |
unset |
1 enables request profiling (pam profile sets it) |
PAM_TRACE |
unset |
1 enables tracing (pam trace sets it) |
PAM_CACHE_INVALIDATION_LOG |
unset |
Default invalidation log for pam cache:purge |
| Variable |
Default |
Effect |
PAM_LARAVEL_STORAGE_PATH |
unset |
Writable directory used as Laravel’s storage_path() on PAM |
PAM_NATIVE_HOME |
detected |
PAM Native SDK directory for native commands |
PAM_NATIVE_PACKAGE_PATH |
unset |
Use a local checkout of the PAM Native package |
PAM_MOBILE_UI_PACKAGE_PATH |
unset |
Use a local checkout of the PAM Native UI package |
PAM_NO_LOCAL_PACKAGES |
unset |
Do not offer the PAM source tree’s local packages to Composer (source builds only) |
PAM_VSCODE_EXTENSIONS |
~/.vscode/extensions |
Target of pam editor:install vscode |
PAM_NEOVIM_CONFIG_DIR |
Neovim config directory |
Target of pam editor:install neovim |
PAM_HELIX_CONFIG_DIR |
Helix config directory |
Target of pam editor:install helix |
| Variable |
Value |
PAM_WORKER_ID |
The worker number, starting at 1 |
PAM_WORKER_GENERATION |
The cluster generation, incremented by each reload |
PAM_WORKER_POOL |
The pool name, when --pool is used |
PAM_TASK_WORKER |
1 in task workers |
PAM_MAX_REQUESTS |
This worker’s effective (staggered) request limit |
PAM_CLI_MODE |
1 when PAM runs Artisan with console identity |
PAM_COMPOSER_MODE |
1 while the embedded Composer runs |
PAM_BINARY, PAM_PACKAGE_COMMAND |
The pam executable path and 1, passed to package commands |
Per request, $_SERVER['PAM_REQUEST_ID'] holds the request’s correlation ID (the client’s X-Request-Id when present) and $_SERVER['PAM_TRACEPARENT'] the W3C trace context.
PAM uses these to coordinate its own processes. They are listed so you recognise them in ps or /proc; never set them: PAM_WORKER_STATE_PATH, PAM_WORKER_SPAWNED_AT_MILLIS, PAM_ZYGOTE_COMMAND_FD, PAM_ZYGOTE_EVENT_FD, PAM_LISTENER_REGISTRY, PAM_SHARED_MEMORY_SOCKET, PAM_TASK_ADDRESS, PAM_TASK_TOKEN, PAM_INTERNAL_LISTEN_ADDRESS, PAM_INI_ENTRIES, PAM_INI_IGNORE, PAM_DEV_CHILD.