Configuration

Environment Variables

This page documents all environment variables that configure RivetKit behavior.

Connection

Environment VariableDescription
RIVET_ENDPOINTEndpoint URL to connect to Rivet Engine. Supports URL auth syntax.
RIVET_ENGINEAlternative to RIVET_ENDPOINT for engine connection
RIVET_TOKENAuthentication token for Rivet Engine
RIVET_NAMESPACENamespace to use (default: “default”)

Public Endpoint

These variables configure how clients connect to your actors.

Environment VariableDescription
RIVET_PUBLIC_ENDPOINTPublic endpoint for client connections. Supports URL auth syntax.
RIVET_PUBLIC_TOKENPublic token for client authentication

Runner Configuration

Environment VariableDescription
RIVET_RUNNERRunner name (default: “default”)
RIVET_RUNNER_KEYAuthentication key for the runner
RIVET_RUNNER_VERSIONVersion number for the runner. See Versions & Upgrades.
RIVET_RUNNER_KINDType of runner
RIVET_TOTAL_SLOTSTotal actor slots available (default: 100000)

Engine

Environment VariableDescription
RIVET_RUN_ENGINESet to 1 to spawn the engine process
RIVET_RUN_ENGINE_VERSIONVersion of engine to download

Inspector

Environment VariableDescription
RIVET_INSPECTOR_TOKENToken for accessing the Rivet Inspector
RIVET_INSPECTOR_DISABLESet to 1 to disable the inspector

Logging

Environment VariableDescription
RIVET_LOG_LEVELLog level: trace, debug, info, warn, error, fatal, silent
RIVET_LOG_TARGETSet to 1 to include log target
RIVET_LOG_TIMESTAMPSet to 1 to include timestamps
RIVET_LOG_MESSAGESet to 1 to include message formatting
RIVET_LOG_ERROR_STACKSet to 1 to include error stack traces
RIVET_LOG_HEADERSSet to 1 to log request headers