Skip to Content
RabbitLock Docs

Environment variables

Variables RabbitLock reads, sets for the agent, and removes.

Read by RabbitLock

VariablePurpose
RABBITLOCK_HOMEDirectory for the identity and local CA. Default ~/.rabbitlock.
RABBITLOCK_SEED_HEXIdentity seed (64 hex characters) instead of the identity file. Intended for automation. When it's set, the sandbox also hides other processes.
RABBITLOCK_PASSPHRASEUnlocks a passphrase-protected identity without the terminal prompt. Intended for automation; it puts the passphrase in the environment. When it's set, the sandbox also hides other processes.
RABBITLOCK_APPROVERallow or deny answers approval prompts without a dialog

Set for the agent

VariableValue
each secret named in the policyits per-session placeholder
HTTPS_PROXY, https_proxy, HTTP_PROXY, http_proxyhttp://127.0.0.1:<port>
NODE_USE_ENV_PROXY1
NODE_EXTRA_CA_CERTSlocal CA certificate
SSL_CERT_FILE, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE, GIT_SSL_CAINFObundle of system roots plus the local CA
RABBITLOCK_ACTIVE1
RABBITLOCK_SESSIONsession id (also recorded in receipts)
RABBITLOCK_SANDBOXthe sandbox in use: seatbelt, bwrap, claude-settings, off or unavailable

Removed from the agent

  • every other RABBITLOCK_* variable
  • any variable whose value equals a real secret value, whatever its name

Test only

RABBITLOCK_TEST_UPSTREAM and RABBITLOCK_TEST_UPSTREAM_CA route intercepted hosts to a local test server. They exist for RabbitLock's own test suite. Don't set them in normal use.

On this page