XMRIG(1)
π NAME π
XMRig β a CPU/GPU cryptocurrency miner. yeah bestie, we're literally mining crypto with our own silicon, it's giving main character energy βοΈβ¨
π SYNOPSIS π
xmrig [OPTIONS]
that's it. that's the whole vibe. drop in some options and she goes π
π¦ DESCRIPTION π¦
okay so like, XMRig has so many options and they're all organized into little categories, so let's do a tour together bestie, no skimming, we do this properly π
π Network π
the "how do I actually talk to a pool" section, extremely important, lowkey the whole point π«Ά
-o,--url=URLβ the URL of the mining server. your pool's address, your destiny, your home π-a,--algo=ALGOβ which mining algorithm to use. full list lives athttps://xmrig.com/docs/algorithmsβ go peek, it's iconic--coin=COINβ specify a coin instead of an algorithm. like, just tell her the coin and she figures the rest out π-u,--user=USERNAMEβ your username on the mining server-p,--pass=PASSWORDβ your password on the mining server-O,--userpass=U:Pβ the username:password pair, both at once, efficiency queen π-x,--proxy=HOST:PORTβ connect through a SOCKS5 proxy-k,--keepaliveβ send a keepalived packet so you don't get timed out. heads up, this needs pool support to do anything--nicehashβ enablenicehash.comsupport--rig-id=IDβ rig identifier for pool-side statistics. also needs pool support--tlsβ enable SSL/TLS support. yup, needs pool support--tls-fingerprint=HEXβ pool TLS certificate fingerprint, for strict certificate pinning. paranoia but make it β¨secureβ¨-4,--ipv4β resolve names to IPv4 addresses-6,--ipv6β resolve names to IPv6 addresses--dns-ttl=Nβ TTL for the internal DNS cache, in seconds. default is30--daemonβ use daemon RPC instead of a pool, for solo mining. solo queen behavior π--daemon-zmq-port=Nβ the daemon's zmq-pub port number. only use this if the daemon actually has it enabled, otherwise she's just gonna sit there confused--daemon-poll-interval=Nβ daemon poll interval in milliseconds. default:1000--daemon-job-timeout=Nβ daemon job timeout in milliseconds. default:15000--self-select=URLβ self-select block templates from a URL--submit-to-originβ also submit the solution back to the self-select URL-r,--retries=Nβ how many times to retry before switching to the backup server. default:5-R,--retry-pause=Nβ how long to pause between retries. default:5--user-agentβ set a custom user-agent string for the pool--donate-level=Nβ the donate level, default1%(that's 1 minute out of 100 minutes, bestie, she's not greedy π₯Ί)--donate-over-proxy=Nβ control the donate over xmrig-proxy feature
π§ CPU backend π§
the part where your processor earns its keep. very demure, very mindful, very hot π₯
--no-cpuβ disable the CPU mining backend entirely-t,--threads=Nβ number of CPU threads. ngl, proper CPU affinity is required for some optimizations, so don't skip that--cpu-affinity=Nβ set process affinity to CPU core(s). mask0x3means cores 0 and 1 π―-v,--av=Nβ algorithm variation.0means auto select--cpu-priority=Nβ set process priority.0is idle,2is normal, up to5which is highest--cpu-max-threads-hint=Nβ hint for autoconfig telling it the maximum CPU threads count, as a percentage--cpu-memory-pool=Nβ number of 2 MB pages for the persistent memory pool.-1is auto,0disables it--cpu-no-yieldβ prefer maximum hashrate over system response/stability. yeah she's gonna hog the machine, that's the point π--no-huge-pagesβ disable huge pages support--hugepage-size=Nβ custom hugepage size in kB--huge-pages-jitβ enable huge pages support for RandomX JIT code--asm=ASMβ ASM optimizations. possible values:auto,none,intel,ryzen,bulldozer--argon2-impl=IMPLβ argon2 implementation. options:x86_64,SSE2,SSSE3,XOP,AVX2,AVX-512F--randomx-init=Nβ threads count to initialize the RandomX dataset--randomx-no-numaβ disable NUMA support for RandomX--randomx-mode=MODEβ RandomX mode:auto,fast,light--randomx-1gb-pagesβ use 1GB hugepages for the RandomX dataset. Linux only, bestie, sorry to the Windows girlies π§--randomx-wrmsr=Nβ write custom value(s) to MSR registers, or disable the MSR mod with-1--randomx-no-rdmsrβ disable reverting the initial MSR values on exit--randomx-cache-qosβ enable Cache QoS
πΈ OpenCL backend πΈ
for when you want your GPU in on the action, it's giving graphics card glow-up π
--openclβ enable the OpenCL mining backend--opencl-devices=Nβ comma separated list of OpenCL devices to use--opencl-platform=Nβ OpenCL platform index or name--opencl-loader=PATHβ path to the OpenCL-ICD-Loader (OpenCL.dllorlibOpenCL.so)--opencl-no-cacheβ disable the OpenCL cache--print-platformsβ print the available OpenCL platforms and exit. a little sneak peek, then she's gone π
π CUDA backend π
NVIDIA girlies this one's for you, the green team ate π
--cudaβ enable the CUDA mining backend--cuda-loader=PATHβ path to the CUDA plugin (xmrig-cuda.dllorlibxmrig-cuda.so)--cuda-devices=Nβ comma separated list of CUDA devices to use--cuda-bfactor-hint=Nβ bfactor hint for autoconfig, between0and12--cuda-bsleep-hint=Nβ bsleep hint for autoconfig--no-nvmlβ disable NVML (NVIDIA Management Library) support
π°οΈ API π°οΈ
so other things can talk to your miner. networking but make it gossip π«Ά
--api-worker-id=IDβ custom worker-id for the API--api-id=IDβ custom instance ID for the API--http-host=HOSTβ bind host for the HTTP API. default:127.0.0.1--http-port=Nβ bind port for the HTTP API--http-access-token=Tβ access token for the HTTP API--http-no-restrictedβ enable full remote access to the HTTP API. only if an access token is set, bestie, do not play with this one β οΈ
π TLS π
certificates and ciphers, very serious, very grown-up, very secure β¨
--tls-gen=HOSTNAMEβ generate a TLS certificate for a specific hostname--tls-cert=FILEβ load the TLS certificate chain from a file in the PEM format--tls-cert-key=FILEβ load the TLS certificate private key from a file in the PEM format--tls-dhparam=FILEβ load DH parameters for DHE ciphers from a file in the PEM format--tls-protocols=Nβ enable specified TLS protocols. example:"TLSv1 TLSv1.1 TLSv1.2 TLSv1.3"--tls-ciphers=Sβ set the list of available ciphers (TLSv1.2 and below)--tls-ciphersuites=Sβ set the list of available TLSv1.3 ciphersuites
π Logging π
the receipts, the lore, the documentation of what your rig has been up to π
-S,--syslogβ use the system log for output messages-l,--log-file=FILEβ log all output to a file--print-time=Nβ print a hashrate report every N seconds--health-print-time=Nβ print a health report every N seconds--no-colorβ disable colored output. (why would you, it's so pretty, but ok π₯²)--verboseβ verbose output
π Misc π
the grab bag, the everything-else drawer, the bits and bobs π
-c,--config=FILEβ load a JSON-format configuration file-B,--backgroundβ run the miner in the background-V,--versionβ output version information and exit-h,--helpβ display this help and exit--dry-runβ test the configuration and exit--export-topologyβ export the hwloc topology to a XML file and exit--pause-on-batteryβ pause mining on battery power--pause-on-active=Nβ pause mining when the user is active, and resume after N seconds of last activity--stressβ run a continuous stress test to check system stability. it's literally just stress, no cap π€--bench=Nβ run a benchmark. N can be between1Mand10M--submitβ perform an online benchmark and submit the result for sharing--verify=IDβ verify a submitted benchmark by ID--seed=SEEDβ custom RandomX seed for the benchmark--hash=HASHβ compare the benchmark result with a specified hash--no-dmiβ disable the DMI/SMBIOS reader
and then she hits you with the build receipts:
features: 64-bit AES
libuv/1.52.1 OpenSSL/4.0.1 hwloc/2.14.0
π«Ά 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. she has a whole manual, bestie, she's not just a one-page girlie ππ
that's the tea, the whole page, every single flag, nothing skipped because we don't do half-effort around here π
this was XMRig 6.26.0 built with GCC 15.3.0, from August 2026, living under the User Commands banner as XMRIG(1) β now go mine something gorgeous, mwah ππ
π¦ where this page comes from
- ubuntu stonking: xmrig 6.26.0+dfsg-1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms