Legion is a native RandomX cpu miner. As a single miner it works like xmrig: it mines to any stratum pool, to p2pool, or solo to a Salvium node. On top of that it runs the Legion, where miners on a network find each other and divide the nonce search space among themselves, so no two boxes ever grind the same nonces, with no pool, proxy, or central coordinator.
Point a group of boxes at the same network and they self-organize into a farm over a small udp gossip. Each box independently works out the same split, sized to its own hashrate, and claims its slice of the search. Boxes can join or leave at any time and the farm re-divides on its own. There is nothing to configure and nothing in the middle to run.
It is honest about what that buys you. It does not make any single box hash faster. It stops boxes from wasting effort on nonces another box already tried, so more of the farm's work goes into distinct search. The gain depends on how much overlap your setup had; a farm that was already spread out sees little, a farm that was piling into the same range sees more.
peer to peer over udp, no pool or proxy needs to know or cooperate.
each box's slice is sized to its measured hashrate, not an equal cut.
boxes join and leave freely, the partition re-derives with no restart.
coordinates the farm even mining straight to your own node, where a pool-side scheme cannot.
Legion reads the pool's job feed on a dedicated thread and drops a stale template the instant a new one lands, so it almost never submits a share for a job that has already rolled. Swapped onto the same hardware, xmrig ran about 3% rejected shares where Legion runs effectively zero. A rejected share is work the pool throws away, so cutting them is the same watts with more of the result counting. The gain is largest on slow or high latency boxes, where a laptop or phone that was losing 10% or more of its shares to staleness gets nearly all of it back.
Mine to a pool. The Legion is on by default, so a group of boxes on the same network find each other with no extra flags:
legion-miner -p pool.example.com:4444 -u <wallet>
Write a live dashboard a browser can open:
legion-miner -p pool:4444 -u <wallet> --stats-html /var/www/legion.html
Reach a farm on another subnet with a seed peer:
legion-miner -p pool:4444 -u <wallet> --legion-peer other-box:48711
Mine alone, opting out of the Legion, with condensed xmrig style output:
legion-miner -p pool:4444 -u <wallet> --standalone --clean
Update in place to the latest published build:
legion-miner --check-upgrade # report if a newer build exists legion-miner --upgrade # download, verify, and swap it in
Run legion-miner --help for the full option set.
Prebuilt binaries for Linux, Windows, macOS, arm64, and Android:
GitHub releases GitLab releases
Legion Miner is closed source. The binaries are free to use.