npm · forge-agent-gate
$npx -y forge-agent-gate@0.1.5 FORGE_API_KEY · secret — Forge decision-API key (starts with fi_). Set this or FORGE_BEARER_TOKEN.
FORGE_BEARER_TOKEN · secret — Alternative to FORGE_API_KEY: a Forge bearer token for the decision API.
FORGE_API_BASE_URL — Base URL of the Forge decision API. Defaults to the hosted Forge cloud.
FORGE_TENANT_ID (required) — Tenant id stamped into every proof-trail record.
FORGE_RECORD_MODE — required = fail-closed (block if Forge cannot record); best_effort = execute anyway.
AGENT_GATE_MANDATE_PATH — Absolute path to the signed mandate (policy) JSON. Create it with `forge-agent-gate init`.
AGENT_GATE_KILL_FILE — If this file exists, every gated write is hard-blocked (master kill switch).
KALSHI_API_KEY_ID · secret — Kalshi API key id. Only for the live Kalshi venue adapter; stays on your machine.
KALSHI_PRIVATE_KEY_PATH — Path to your Kalshi RSA private key. Only for the Kalshi venue adapter.
KALSHI_ENV — Kalshi environment: demo or prod. Only for the Kalshi venue adapter.