XMRig is a free, open-source command-line miner for CPUs and GPUs, and the reference tool for RandomX (Monero) mining on desktops, servers and home rigs. If you searched for an XMRig download, this page covers what the official builds include, how to configure them and the tuning steps that matter most for hashrate.
XMRig has no graphical interface. You run it from a terminal or a batch file, point it at a pool with your wallet address, and it prints hashrate, accepted shares and hardware status. A JSON config file and an optional HTTP API make it easy to manage on several machines.
XMRig at a glance
| Item | Details |
| Latest version | 6.26.0, released 28 March 2026 (added RandomX v2 support) |
| Licence / fees | Free and open source, GPL-3.0; default 1% donation (dev fee), adjustable upward with donate-level |
| Platforms | Windows x64 and ARM64, Linux x64 (static and Ubuntu builds), macOS x64 and Apple Silicon, FreeBSD x64 |
| Supported hardware | CPUs (x86/x64, ARMv7/ARMv8, RISC-V); AMD GPUs via OpenCL; NVIDIA GPUs via the separate CUDA plugin |
| Main algorithms | RandomX family (rx/0 for Monero and variants), KawPow, CryptoNight family, GhostRider, Argon2 variants |
| Developer | XMRig project (xmrig on GitHub) |
| Official website | xmrig.com |
| Best for | Monero and other RandomX coins on CPUs, from a single desktop to racks of servers |
What it does
- Mines RandomX, CryptoNight, GhostRider and Argon2 algorithms on the CPU, and KawPow and CryptoNight variants on GPUs.
- Negotiates the algorithm with pools that support it, so in most cases you only set the pool, the wallet and optionally the coin.
- Auto-configures CPU threads based on cache size and lets you cap them with a percentage hint.
- Uses huge pages, 1 GB pages (Linux) and the MSR mod to raise RandomX hashrate when the system allows it.
- Reads all settings from a single config.json, and many of them can be changed at runtime without a restart.
- Exposes an HTTP API (bound to 127.0.0.1 by default, with an optional access token) for monitoring tools and dashboards.
- Can pause on battery or while the user is active, which is useful on a workstation you also use for work.
- Doubles as a RandomX benchmark for comparing CPUs.
How miners use it
Mine Monero on a CPU from the command line
- Unpack the release archive for your OS into its own folder.
- Run the miner with your pool, wallet and coin:
xmrig -o pool.example.com:3333 -u YOUR_WALLET_ADDRESS -p x -k --coin monero
- Watch the first minutes of output: it reports whether huge pages were allocated, the thread count and the first accepted shares.
Keep settings in config.json
- Create or edit config.json in the miner folder (XMRig also looks in the home directory, or uses the path given with -c).
- Set the pool section:
{
"pools": [
{
"url": "pool.example.com:3333",
"user": "YOUR_WALLET_ADDRESS",
"pass": "x",
"keepalive": true,
"tls": false,
"coin": "monero"
}
]
}
- Start xmrig with no arguments; it picks up the file automatically. The configuration wizard on xmrig.com can generate this file for you.
Add an NVIDIA or AMD GPU
- For AMD, enable the OpenCL backend with –opencl (a working AMD driver with OpenCL is required).
- For NVIDIA, download the xmrig-cuda plugin that matches your CUDA version (latest plugin 6.22.1, June 2025), place it next to the miner and add –cuda, or point to it with –cuda-loader.
- Use a GPU-friendly algorithm such as KawPow on the GPU; RandomX is designed for CPUs and is where XMRig is strongest.
Monitor several rigs
- Enable the API with –http-port and set –http-access-token.
- Keep –http-host at 127.0.0.1 unless the rig is on a trusted network, then query it from your monitoring tool.
Install and first run
Windows: unzip the x64 (MSVC or GCC build) or ARM64 archive. For huge pages, run XMRig once as Administrator and reboot; after that, Windows 10 and 11 usually allocate huge pages without admin rights. The MSR mod also needs administrator rights.
Linux: use the static x64 build or the one for your Ubuntu release. Running as root lets XMRig configure huge pages itself (since version 5.2.0). Otherwise reserve them manually, for example sudo sysctl -w vm.nr_hugepages=1280, and add the same line to /etc/sysctl.conf to keep it after reboot. 1 GB pages are Linux-only and the docs quote a 1–3% hashrate gain; they need about 3 GB of RAM per NUMA node.
macOS and FreeBSD: official builds exist for Intel and Apple Silicon Macs and for FreeBSD x64.
Requirements: RandomX needs about 2 GB of RAM per NUMA node for its dataset, plus roughly 2 MB of L3 cache and 256 KB of L2 per mining thread. Fewer threads than cores is normal on CPUs with small caches.
Antivirus: XMRig is very often flagged as a potentially unwanted program or trojan. The reason is that criminals bundle it into malware to mine on infected machines, so security tools treat any copy with suspicion. Download only from the official release page and compare the archive against the published SHA256SUMS file, which is GPG-signed. Do not switch off your antivirus globally.
Mine only on hardware you own or are authorised to use.
Limitations
- Command line only; there is no built-in GUI or remote dashboard beyond the HTTP API.
- The prebuilt binaries always include the donation of at least 1%; removing it requires changing the source and building it yourself.
- GPU mining is a secondary feature with a narrow set of algorithms. Dedicated GPU miners cover far more coins.
- NVIDIA support depends on the separate CUDA plugin, which is released less often than the miner itself.
- Results depend heavily on CPU cache, memory channels and huge-page setup; a laptop CPU will not match a desktop with the same core count.
- Profitability depends on electricity price, hardware and coin prices; XMRig does not switch coins for you.
XMRig vs alternatives
XMRig is the right tool when you want full control over RandomX mining and are comfortable with a config file. Kryptex and unMineable wrap third-party miners in a Windows app and pay out through their own service, which suits beginners but adds a platform fee on top. NiceHash QuickMiner is the simple option if you sell hashpower on NiceHash. For GPU-heavy rigs, a dedicated GPU miner such as Rigel supports many more GPU algorithms.
FAQ
Where do I get the XMRig download?
From the official GitHub releases of the xmrig project, linked from xmrig.com. Each release lists archives for every platform together with a signed SHA256SUMS file you should check.
Is XMRig safe?
The official, open-source build is safe to run on your own machine; antivirus warnings come from its frequent misuse in malware. Third-party repacks are a real risk, so verify every archive against the official checksums.
How do I remove XMRig if I did not install it?
An XMRig process you never started usually means malware. Run a full scan with your security software, check startup entries and scheduled tasks, and change passwords used on that computer.
Is XMRig profitable?
That depends on your electricity price, your CPU and the coin price at the time. Check the numbers for your own hardware with a current calculator before running it around the clock.
How do I enable CUDA in XMRig?
Download the xmrig-cuda plugin for your CUDA version, put it in the miner folder and start XMRig with –cuda (or –cuda-loader with the plugin path).
XMRig vs SRBMiner: which should I use?
XMRig is open source and focused on RandomX and CPU mining. SRBMiner-MULTI is closed source and covers many more CPU and GPU algorithms; many miners use XMRig for Monero and another miner for GPU coins.
Is there an official XMRig for Android?
No. The official releases cover Windows, Linux, macOS and FreeBSD only, so treat any XMRig Android app with suspicion.
Last checked against official sources: 1 October 2026 (developer website: xmrig.com). Versions and licence terms change — confirm on the developer's site before deploying in production.