Environment Variables
Every POSTSALE_ variable, what it controls, and its default.
| Variable | Purpose |
|---|---|
POSTSALE_TOKEN | A login token or an API key (psk_…); the session file takes precedence if present (a shadowed key is warned about) |
POSTSALE_ENVIRONMENT | production (default). Other values are reserved for Postsale internal use |
POSTSALE_DEBUG | 1 for verbose HTTP logging |
POSTSALE_HTTP_MAX_CONCURRENCY | Max in-flight HTTP attempts (default 5) |
POSTSALE_HTTP_RPM | Sustained per-minute budget (default 120) |
POSTSALE_HTTP_TIMEOUT_MS | Per-request timeout ms (default 30000; label purchase overrides with a longer fixed timeout) |
ANTHROPIC_API_KEY | LLM for run (Anthropic) |
ANTHROPIC_AUTH_TOKEN | Bearer alternative to ANTHROPIC_API_KEY |
OPENAI_API_KEY | LLM for run (OpenAI) |
POSTSALE_LLM_PROVIDER | anthropic or openai |
POSTSALE_LLM_MODEL | Model override |
POSTSALE_SWARM_RPM_ANTHROPIC | Parallel batches Anthropic RPM (default 30) |
POSTSALE_SWARM_RPM_OPENAI | Parallel batches OpenAI RPM (default 30) |
POSTSALE_SWARM_AUTOAUTH | 1 bypass batch money auth non-TTY (pre-authorized only) |
POSTSALE_CLI_V0_GUARD | off disables allowlist; testing only |
POSTSALE_AUTHORIZED_TOOLS | Comma-separated pre-authorized tools for run |
POSTSALE_TEST_LABEL_MODE | Any non-empty value: created shipments are stamped test_label: true; purchases refuse non-test shipments. See the safety model handbook |
POSTSALE_IDEMPOTENCY_KEY | Default idempotency key for writes |
POSTSALE_TRACE_ID | Correlation id |
POSTSALE_TRACE_DIR | Trace directory override |
POSTSALE_TRACE_DISABLED | 1 disables trace writing |
POSTSALE_TRACE_FULL | 1 full bodies + unredacted sensitive outputs |
POSTSALE_CONVERSATIONS_DIR | Conversations directory |
POSTSALE_SAVED_QUERIES_DIR | Saved queries directory |
POSTSALE_UPDATE_MANIFEST_URL | Upgrade manifest override (trust boundary) |
POSTSALE_INSTALL_FAST | 1 AVX x64 preference |
POSTSALE_NO_SPINNER | Non-empty disables spinner |
POSTSALE_BIN | Optional path for help inventory scripts |
See handbook/02-auth-and-environments.md and AGENTS.md.
Related