Command Line Options - XMRig
Command Line Options - XMRig
Network
Short option Long option Description Version
-k --keepalive send keepalive packet for prevent timeout (needs pool support) All
--tls-fingerprint=HEX pool TLS certificate fingerprint for strict certificate pinning 2.8.0+
--daemon use daemon RPC instead of pool for solo mining 3.0.0+
-r --retries=N number of times to retry before switch to backup server (default: 5) All
-R --retry-pause=N time to pause between retries (default: 5) All
--user-agent set custom user-agent string for pool 2.3.0+
CPU backend
Short option Long option Description Version
-t --threads=N number of CPU threads. Proper CPU affinity required for some optimizations. All
--cpu-affinity set process affinity to CPU core(s), mask 0x3 for cores 0 and 1 All
-v --av=N algorithm variation, 0 auto select All
--cpu-priority set process priority (0 idle, 2 normal to 5 highest) 2.3.0+
--cpu-max-threads-hint=N maximum CPU threads count (in percentage) hint for autoconfig 4.2.0+
--cpu-memory-pool=N number of 2 MB pages for persistent memory pool, -1 (auto), 0 (disable) 4.3.0+
--cpu-no-yield prefer maximum hashrate rather than system response/stability 5.1.1+
--argon2-impl=IMPL argon2 implementation: x86_64, SSE2, SSSE3, XOP, AVX2, AVX-512F 6.3.1+
--randomx-init=N thread count to initialize RandomX dataset 3.0.0+
--randomx-1gb-pages use 1GB hugepages for RandomX dataset (Linux only) 5.2.0+
--randomx-wrmsr=N write custom value(s) to MSR registers or disable MSR mod (-1) 5.2.0+
--randomx-no-rdmsr disable reverting initial MSR values on exit 5.5.0+
OpenCL backend
Short option Long option Description Version
CUDA backend
Short option Long option Description Version
API
Short option Long option Description Version
--http-no-restricted enable full remote access to HTTP API (only if access token set) 5.0.0+
Logging
Short option Long option Description Version
Misc
Short option Long option Description Version
Short option Long option Description Version