Scroll to navigation

XMRIG(1) User Commands XMRIG(1)

NAME

XMRig - CPU/GPU cryptocurrency miner

SYNOPSIS

xmrig [OPTIONS]

DESCRIPTION

Network:

URL of mining server
mining algorithm https://xmrig.com/docs/algorithms
specify coin instead of algorithm
username for mining server
password for mining server
username:password pair for mining server
connect through a SOCKS5 proxy
send keepalived packet for prevent timeout (needs pool support)
enable nicehash.com support
rig identifier for pool-side statistics (needs pool support)
enable SSL/TLS support (needs pool support)
pool TLS certificate fingerprint for strict certificate pinning
prefer IPv6 records from DNS responses
N seconds (default: 30) TTL for internal DNS cache
use daemon RPC instead of pool for solo mining
daemon's zmq-pub port number (only use it if daemon has it enabled)
daemon poll interval in milliseconds (default: 1000)
daemon job timeout in milliseconds (default: 15000)
self-select block templates from URL
also submit solution back to self-select URL
number of times to retry before switch to backup server (default: 5)
time to pause between retries (default: 5)
set custom user-agent string for pool
donate level, default 1%% (1 minute in 100 minutes)
control donate over xmrig-proxy feature

CPU backend:

disable CPU mining backend
number of CPU threads, proper CPU affinity required for some optimizations.
set process affinity to CPU core(s), mask 0x3 for cores 0 and 1
algorithm variation, 0 auto select
set process priority (0 idle, 2 normal to 5 highest)
maximum CPU threads count (in percentage) hint for autoconfig
number of 2 MB pages for persistent memory pool, -1 (auto), 0 (disable)
prefer maximum hashrate rather than system response/stability
disable huge pages support
custom hugepage size in kB
enable huge pages support for RandomX JIT code
ASM optimizations, possible values: auto, none, intel, ryzen, bulldozer
argon2 implementation: x86_64, SSE2, SSSE3, XOP, AVX2, AVX-512F
threads count to initialize RandomX dataset
disable NUMA support for RandomX
RandomX mode: auto, fast, light
use 1GB hugepages for RandomX dataset (Linux only)
write custom value(s) to MSR registers or disable MSR mod (-1)
disable reverting initial MSR values on exit
enable Cache QoS

OpenCL backend:

enable OpenCL mining backend
comma separated list of OpenCL devices to use
OpenCL platform index or name
path to OpenCL-ICD-Loader (OpenCL.dll or libOpenCL.so)
disable OpenCL cache
print available OpenCL platforms and exit

CUDA backend:

enable CUDA mining backend
path to CUDA plugin (xmrig-cuda.dll or libxmrig-cuda.so)
comma separated list of CUDA devices to use
bfactor hint for autoconfig (0-12)
bsleep hint for autoconfig
disable NVML (NVIDIA Management Library) support

API:

custom worker-id for API
custom instance ID for API
bind host for HTTP API (default: 127.0.0.1)
bind port for HTTP API
access token for HTTP API
enable full remote access to HTTP API (only if access token set)

TLS:

generate TLS certificate for specific hostname
load TLS certificate chain from a file in the PEM format
load TLS certificate private key from a file in the PEM format
load DH parameters for DHE ciphers from a file in the PEM format
enable specified TLS protocols, example: "TLSv1 TLSv1.1 TLSv1.2 TLSv1.3"
set list of available ciphers (TLSv1.2 and below)
set list of available TLSv1.3 ciphersuites

Logging:

use system log for output messages
log all output to a file
print hashrate report every N seconds
print health report every N seconds
disable colored output
verbose output

Misc:

load a JSON-format configuration file
run the miner in the background
output version information and exit
display this help and exit
test configuration and exit
export hwloc topology to a XML file and exit
pause mine on battery power
pause mine when the user is active (resume after N seconds of last activity)
run continuous stress test to check system stability
run benchmark, N can be between 1M and 10M
perform an online benchmark and submit result for sharing
verify submitted benchmark by ID
custom RandomX seed for benchmark
compare benchmark result with specified hash
disable DMI/SMBIOS reader
features: 64-bit AES

libuv/1.48.0 OpenSSL/3.3.2 hwloc/2.11.2

SEE ALSO

The full documentation for XMRig is maintained as a Texinfo manual. If the info and XMRig programs are properly installed at your site, the command

info XMRig

should give you access to the complete manual.

January 2025 XMRig 6.22.2 with GCC 14.2.0