Rule Cascade
Reference

Environment variables

Every variable Rule Cascade reads: the rcas command, its installers and npm package, the rule server, and the examples.

Every variable Rule Cascade reads: the rcas command, its installers and npm package, the rule server, and the examples. The libraries (TypeScript, Python, Java, Go) and the evaluation engines read no environment variables: what a rule sees comes only from the request.

VariableUsed byMeaning
RCAS_CONFIGrcasthe project file to use instead of looking for rcas.yaml upwards from the working directory (the same as --config)
RCAS_RULES_DIR, RCAS_OUT_DIRrcasoverride rules.dir and output.dir of rcas.yaml (defaults rules, build/rules)
RCAS_NO_NETWORKrcas doctorany value: skip the check for a newer release at rulescascade.com/download/latest/VERSION
RCAS_PROGRAM_NAMErcas, Windows installerrcas or rule-cascade: the name the command calls itself; the Windows rule-cascade.cmd shim sets it
CODEX_HOMErcas mcp install, rcas doctorwhere Codex keeps config.toml (default ~/.codex)
HTTPS_PROXY, HTTP_PROXY, NO_PROXYinstallers, rcas doctorproxy for downloads and the version check
RCAS_VERSIONinstallersversion to install (default: the latest release)
RCAS_INSTALL_DIRinstallerswhere to put rcas (default ~/.local/bin; %LOCALAPPDATA%\Programs\rcas on Windows)
RCAS_VERIFYinstallerscosign: also verify the Sigstore signatures
RCAS_DOWNLOAD_BASEinstallersa mirror of the download directory (default https://rulescascade.com/download)
RCAS_BINARY_PATHnpm package @rules-cascade/clirun this binary instead of the one from the platform package (development, air-gapped machines)
RULES_DIRrule serverdirectory of the rulesets to serve (default ./rules)
PORTrule server, backend exampleslisten port (default 8080)
RULE_SERVER_TOKENrule serverbearer token for evaluations, the server manifest and bundles; required
RULE_SERVER_ALLOW_OPENrule server1 or true: start without a token and serve every endpoint openly (private networks, development)
DRAIN_SECONDSrule servertime between "not ready" and shutdown on SIGTERM (default 5)
RULES_REFRESH, RULES_REFRESH_INTERVAL, RULES_REFRESH_CRON, RULES_REFRESH_TZrule serverreload rules manually (SIGHUP), every interval (30s, 5m), or on a cron schedule in a time zone (default UTC); see caching
RULE_SERVER_WORKERSrule serverevaluate on this many worker threads; 0 (default) on the event loop
RULE_EVALUATION_TIMEOUT_MSrule serverwith workers: answer 503 and replace the worker after this long (default 5000)
RULE_CASCADE_ENGINEengine-client examplesthe command the examples start for the engine protocol (default rule-cascade on PATH, which rcas installs)
RULE_CASCADE_WASMengine-client examplesthe WebAssembly module (default rcas.wasm)
RULES_BUNDLEbackend examplesthe compiled bundle to load