XMR Stak (CLI)

XMR-Stak is a universal Stratum pool miner for Windows

XMR Stak comes in three flavours

Using XMR Stak

XMR Stak is a console miner with a lot of configurability, multiple GPU, and multiple architecture support. It is a very versatile and stable tool, but can be a bit intimidating to set up.

The procedure of mining with XMR Stak are almost exactly the same, no matter if you want to mine on CPU or GPU; the same principles apply. We assume here that we want to mine with an AMD GPU

  1. Download XMR Stak AMD, by clicking the link in the list above, and then click Releases. Make sure the downloaded file is put in a place on your computer, that you know.
  2. Unzip the contents of the file you just downloaded and keep track of the location.
  3. Open the file config.txt (it may not have a file extension) in Notepad.

The configuration file contains a lot of different settings, but for the sake of getting anything up and running, there are just a few sections that are most important; firstly

 * Number of GPUs that you have in your system. Each GPU will get its own CPU thread.
"gpu_thread_num" : 6,

This specifies the number of AMD GPU's you have. XMR Stak supports multiple GPU's in your rig, just put in the number you want to use for mining. And of course, if you don't have more than 2 GPU's, things obviously won't work if you put in the number 3 or above.

 * GPU configuration. You should play around with intensity and worksize as the fastest settings will vary.
 *      index    - GPU index number usually starts from 0
 *  intensity    - Number of parallel GPU threads (nothing to do with CPU threads)
 *   worksize    - Number of local GPU threads (nothing to do with CPU threads)
 * affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner.
"gpu_threads_conf" : [
	{ "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
	{ "index" : 1, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
	{ "index" : 2, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
	{ "index" : 3, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
	{ "index" : 4, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },
	{ "index" : 5, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false },

This section controls the utilization of the GPU's when you're mining. You will be able to configure the performance levels by adjusting the intensity, and worksize. One thing to keep in mind; if XMR Stak won't start and sublmit good hashes, severely lower the intensity and worksize and work your way up until it runs.



 * pool_address	  - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
 * wallet_address - Your wallet, or pool login.
 * pool_password  - Can be empty in most cases or "x".
"pool_address" : "pool.supportxmr.com:3333",
"wallet_address" : "",
"pool_password" : "",

The last section we'll bring up is the one that specifies what pool you want to connect to. Check the website of the pool you want to use, or contact an admin of the pool to get details about what addresses, ports and account details to use.

After having changed these settings, go through the following steps to start mining

  1. Start the command line by pressing Win + R, then type cmd and press Enter. A console window will appear.
  2. Navigate to the folder where you placed the contents in step 2. See the CLI-introduction for more info on navigating.
  3. Type xmr-stak-nvidia, and then press Enter.

If everything works out OK you'll see something similar to this:

Congratulations! You are now using XMR Stak AMD for mining crypto currency!

XMR Stak nVidia and XMR Stak CPU works almost exactly the same, but with those, you don't have to edit config.txt first, but just leave the settings as they are, run XMR Stak according to the instructions above, and it will output a suggestion to what settings you can have for the gpu section. You still should review and edit the pool section if you don't want to use the default settings.