Environment variables

Since version 5.5.0 you can use environment variables in config file, for example "log-file": "${USERPROFILE}/xmrig.log", A complete list of environment variables can be obtained by using command set on Windows and printenv on Linux.

Supported options
  • "worker-id" in "api" object.
  • "log-file".
  • "user", "pass" and "rig-id" for each pool.
  • "loader" in "opencl" and "cuda" object.
Additional variables
  • XMRIG_VERSION version, for example 5.4.0.
  • XMRIG_EXE_DIR directory where executable located including trailing separator.
  • XMRIG_CWD current working directory including trailing separator.