Skip to content

Environment Variables

mujina-minerd can read some of its configuration from environment variables. The groups below mirror the daemon's own reference: mujina-minerd --help prints the same variables for exactly the build you are running, and is authoritative when this page lags.

This page is current as of July 2026.

Pool (job source)

VariableDescriptionDefault
MUJINA_POOL_URLStratum v1 pool URL, e.g. stratum+tcp://pool.example.com:3333. When unset, the daemon runs a built-in dummy job source instead.unset
MUJINA_POOL_USERWorker username sent to the pool, e.g. myworker.1.mujina-testing
MUJINA_POOL_PASSWorker password sent to the pool.x
MUJINA_POOL_FORCED_RATEOverride the share target so the source receives roughly this many shares per minute regardless of pool difficulty, for testing share submission at low hashrate. Requires MUJINA_POOL_URL.unset

CPU miner

VariableDescriptionDefault
MUJINA_CPUMINER_THREADSNumber of CPU mining threads. Setting this enables the CPU mining backend, which needs no ASIC hardware.unset (CPU mining disabled)
MUJINA_CPUMINER_DUTYCPU duty cycle percent (1-100). Each thread hashes this fraction of every second and sleeps the rest, capping sustained CPU load.50

API server

VariableDescriptionDefault
MUJINA_API_LISTENAddress the REST API listens on, e.g. 0.0.0.0:7785. A bare host or IP gets the default port :7785 appended.127.0.0.1:7785

Hardware

VariableDescriptionDefault
MUJINA_USB_DISABLESet to any value to skip USB board discovery, useful for CPU-only runs.unset (USB discovery enabled)

Logging

VariableDescriptionDefault
RUST_LOGLog filter in tracing-subscriber EnvFilter syntax, e.g. mujina_miner=trace, appended after the built-in defaults so its directives win.warn,mujina_miner=info

See also