Skip to content

Environment Variables

Every POSTSALE_ variable, what it controls, and its default.

Updated September 3, 20261 min readPostsale CLI
VariablePurpose
POSTSALE_TOKENA login token or an API key (psk_…); the session file takes precedence if present (a shadowed key is warned about)
POSTSALE_ENVIRONMENTproduction (default). Other values are reserved for Postsale internal use
POSTSALE_DEBUG1 for verbose HTTP logging
POSTSALE_HTTP_MAX_CONCURRENCYMax in-flight HTTP attempts (default 5)
POSTSALE_HTTP_RPMSustained per-minute budget (default 120)
POSTSALE_HTTP_TIMEOUT_MSPer-request timeout ms (default 30000; label purchase overrides with a longer fixed timeout)
ANTHROPIC_API_KEYLLM for run (Anthropic)
ANTHROPIC_AUTH_TOKENBearer alternative to ANTHROPIC_API_KEY
OPENAI_API_KEYLLM for run (OpenAI)
POSTSALE_LLM_PROVIDERanthropic or openai
POSTSALE_LLM_MODELModel override
POSTSALE_SWARM_RPM_ANTHROPICParallel batches Anthropic RPM (default 30)
POSTSALE_SWARM_RPM_OPENAIParallel batches OpenAI RPM (default 30)
POSTSALE_SWARM_AUTOAUTH1 bypass batch money auth non-TTY (pre-authorized only)
POSTSALE_CLI_V0_GUARDoff disables allowlist; testing only
POSTSALE_AUTHORIZED_TOOLSComma-separated pre-authorized tools for run
POSTSALE_TEST_LABEL_MODEAny non-empty value: created shipments are stamped test_label: true; purchases refuse non-test shipments. See the safety model handbook
POSTSALE_IDEMPOTENCY_KEYDefault idempotency key for writes
POSTSALE_TRACE_IDCorrelation id
POSTSALE_TRACE_DIRTrace directory override
POSTSALE_TRACE_DISABLED1 disables trace writing
POSTSALE_TRACE_FULL1 full bodies + unredacted sensitive outputs
POSTSALE_CONVERSATIONS_DIRConversations directory
POSTSALE_SAVED_QUERIES_DIRSaved queries directory
POSTSALE_UPDATE_MANIFEST_URLUpgrade manifest override (trust boundary)
POSTSALE_INSTALL_FAST1 AVX x64 preference
POSTSALE_NO_SPINNERNon-empty disables spinner
POSTSALE_BINOptional path for help inventory scripts

See handbook/02-auth-and-environments.md and AGENTS.md.