CGMiner: Download, Setup for Dogecoin (Windows/Linux)

9 minute read

CGMiner: Setting up for maximum profit, Commission, Comparison with t-rex

This guide describes how to start and how to use the CGMiner version 3.7.2 and higher.

Download for Windows / Linux

Download from site

Download releases

Download from BitcoinTalk

What is CGMiner?

CGMiner - is an open source miner for ASIC, GPU and FPGA. It works on Windows, Linux and macOS. CGMiner is extremely flexible in terms of platform and can work with a variety of hardware miners and GPUs including AMD, CUDA and NVIDIA platforms.

Supported algorithms

The program supports the following algorithms:

  • Scrypt
  • SHA-256
  • NeoScrypt
  • CryptoNight

While developing the program, programmers focused on the performance of their software. Therefore, it is not the most convenient to use. In fact, the console is used for management with the introduction of certain commands, but there is no graphical shell. As a result, it can be difficult for beginners to operate this software.

cgminer console

How to use CGMiner

Step 1 - Download the program

There are two options to download the program:

  1. Official website of the developer..
  2. On the GitHub site.

On the official website you will find a complete instruction with a description of all the commands of the program. The address of the official page on GitHub is here. This way you can be sure that the program is safe and free of malware. Do not use third-party sources - you can lose access to data and your tokens.

cgminer download

Шаг 2 - Set up the program

Settings are entered through the console. We recommend using a batch file (a text file with an extension .bat) for more convenience. In it, you can save all the necessary data so that you do not enter them when you restart the program again. Using the coinfoundry example, the batch file will look like this:

cgminer --scrypt -I 10 -o stratum+tcp:// -u DKs5E8nWJe2E5vYnVSoYqNjw2T17nGYUDo.my_worker_password -p my_worker_password -T


Enter instead DKs5E8nWJe2E5vYnVSoYqNjw2T17nGYUDo your Dogecoin wallet address.

Step 3 - Start the miner

The miner is launched by double-clicking on the file with the extension .bat.

You will see the following window:

cgminer hashrate

The bottom line displays the hash rate.

Video Guide

Configuration file

Here is a listing of the contents of the file cgminer.conf. It is also better to fill it in:

"pools" : [
		"url" : "stratum+tcp://",
		"user" : "DKs5E8nWJe2E5vYnVSoYqNjw2T17nGYUDo.1",
		"pass" : "password"
"intensity" : "13",
"vectors" : "1",
"worksize" : "256",
"kernel" : "scrypt",
"lookup-gap" : "2",
"thread-concurrency" : "8192",
"shaders" : "2048,",
"gpu-engine" : "0-0",
"gpu-fan" : "0",
"gpu-memclock" : "0",
"gpu-memdiff" : "0",
"gpu-powertune" : "0",
"gpu-vddc" : "0.000",
"temp-cutoff" : "75",
"temp-overheat" : "85",
"temp-target" : "65",
"api-port" : "4028",
"expiry" : "120",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"gpu-threads" : "2",
"hotplug" : "5",
"log" : "5",
"no-pool-disable" : true,
"queue" : "1",
"scan-time" : "60",
"scrypt" : true,
"temp-hysteresis" : "3",
"shares" : "0",
"kernel-path" : "/usr/local/bin"

Setting up a bat file

Setting up is relatively easy once you know all the basic commands.

The main .bat file setting has the following data:

Cgminer –scrypt –o stratum+tcp\\:pool_address:port –u wallet.1 – p x


  1. Cgminer –shows the file used to run the miner.
  2. -scrypt – an indication of the algorithm used to obtain the digital token that the miner should use.
  3. -o – after it you need to specify the address of the pool with the port. Take them in the pool where you are going to mine. You can find it in the “Getting Started” category.
  4. -u user – displaying the login that was used when registering on the pool, here enter the name of the worker, which was made there.
  5. -p x – enter the password that was used to create the worker.

This completes the configuration of the bat file.

Example for dogecoin

cgminer --scrypt -I 10 -o stratum+tcp:// -u my_worker_name.my_worker_password -p my_worker_password -T



To get a fine configuration, you need to use a number of special commands:

-auto-fan – adjusting the speed of the GPU cooler to maintain a certain temperature. Sets the metric automatically.

-auto–gpu – sets the GPU frequency to maintain a certain temperature. Works automatically.

-device (-d) – defines a specific video card. By default, the program launches everything it detects. The value of the card is placed next to it (for example, -device 1).

Disable GPU

-disable-gpu (-G) - disabling graphics processors.

cgminer hashrate

-gpu-threads (-g) - setting the amount of threads on the graphics processor. The indicator is set from 1 to 10. By default, the program sets 2. The value is placed next to the command - -gpu-thread.

-gpu-dyinterval - setting the refresh period in milliseconds for video adapters using dynamic intensity. Standard cost -gpu-dyinterval.

-gpu-engine- setting the frequency indicator for the video adapter. It is permissible to enter both one indicator and a whole range. It looks like this: -gpu-engine 700 or 700-900.

-gpu-fan - setting the fan speed in percentage, a certain value or range. It looks like this: -gpu-fan 50 or 50-65.

-gpu-map - matches OpenCl with ADL hardware number manually or paired CSV. For example, 1: 0.2: 1 shows OpenCl 1 over ADL 0.2 over 1.

-gpu-memlock - setting the memory frequency. In the case of bitcoin mining, we recommend lowering it, for litecoin - raising it. Looks like that: -gpu-memlock

-gpu-memdiff - sets the specific difference between kernel and memory. The indicator is entered in megahertz. It looks like this: -gpu-memdiff ???.

-gpu-powertune - GPU powertune installation. The value is selected in%.

-gpu-reorder - re-sorting video cards.

-Gpu-vddc - change the voltage on the core. The data is entered in this form: -gpu-vddc125.

-intensity (–I) - sets the intensity. The range of selectable indicators is from one to 14. Setting the value “d” - indicates that the indicator is dynamic. It looks like this: -intensity 10 or d.

-kernel (-k) - specifying the kernel for the hardware. It can be diablo, poclbm, phatk, diakgcn. It looks like this: -kernel diakgcn - help is needed in choosing kernels for GPUs.

-ndevs (-n`) - displays a list of graphics processors, number and outputs.

-temp-hysteresis - the temperature difference in ℃ from the expected indicator is indicated. The standard cost is 3. It looks like this:-temp-hysteresis

-temp-overheat - temperature, specified in ℃, when dropping core frequencies. This is where the coolers work faster (rpm increase). Fitted as standard 85. It looks for example like this: -temp-overheat 95.

-temp-target - the desired temperature is set. The value is in degrees. Standard costs 75. It looks like this: -temp-target 90.

-vectors (-v) - sets the width of vectors. By default, the indicator is selected automatically, but you can specify your own: 1, 2 or 4. Here it is indicated as follows: -vectors

-worksize(-w) - the size of the memory is set. However, it has virtually no effect on performance. Automatic selection of the indicator is standard. When self-introduction, select it in multiples of 64: 64, 128, etc. Recommended 256. Looks like this: -worksize

How to set up in windows 10?

setx GPU_MAX_ALLOC_PERCENT 100 setx GPU_USE_SYNC_OBJECTS 2 cgminr.exe –srypt –worsize 512 –intensity 10 –auto-fan –lookup-gap 4 –thread-concurrency 25614 – gpu-engine 1050 –gpu-memlock 1500 –gpu-powertune 15 –o stratum+tcp: u worker -p XXX

where XXX is the worker password.

Please note that the miner is also compatible with Linux and OSX. In the case of Linux, you can also enable remote access. However, it will not be possible to configure the operation of the video adapter as efficiently as on Windows.

How to Setup CGMiner to Mine Cryptocurrencys (Litecoin & Dogecoin)


The program is aimed exclusively at experienced users who are mining cryptocurrencies. Consequently, the functionality is versatile. The software was launched back in 2011. Since then, it has only improved and increased its positive qualities. The launch was made with open source code, which allows you to be confident in the reliability of the software.

The main developer was Kon Kolivas. He is also known for contributing to the development of Linux. At the same time, he is an anesthesiologist by profession, developing programs for him is a simple hobby.

The program is recognized as the most effective software for the extraction of electronic tokens using AMD and NVidia video adapters.

The software allows you to improve the performance of video adapters, making it possible to fine-tune graphics devices.

cgminer hashrate

Most of the known digital coins can be mined on these algorithms. It is used in the mining of Bitcoin, Dogecoin, Monero, Litecoin and other well-known digital tokens. Provides a number of benefits:

  • Allows you to overclock GPUs, providing excellent functionality.
  • You can adjust the rotational speed of the coolers used in cooling systems.
  • The algorithms used provide the most efficient cryptocurrency mining.
  • You can enable automatic switching between workers.
  • Work with the use of proxy servers is available.
  • There is no commission for using the program. Hence, it is 100% free.
  • There is a balancing of the algorithm.
  • If the workers are not working, the program will disable them.

Key features

The official site allows you to download the software for free. However, please note that the latest versions of the program focused exclusively on ASICs and FPGAs, since the developers decided not to continue to support mining on CPUs and video processors. It is worth using old software releases for them. These include versions prior to 3.7.8.

Basically, it is worth working on AMD, since the software does not work well with CUDA. For NVidia, it is better to choose another miner, for example, Claymore.

The program has several interesting points. One of them is the introduction of tools to overclock GPUs and set the desired fan speed in the cooling system. True, it is worth using this functionality carefully, since there is a high chance of spoiling the equipment and sending it to the scrap.

The program also provides configuration information, automatically turns off the worker, causing problems or simply not working. You can use proxy, balance loading strategy and Round Robin. Thanks to this, miners can independently enter the parameters of the width of the vectors, the waiting time for the connection restoration, create a specified delay for the router and configure a separate display of notifications. The work of the program is configured through a special configuration file.


There are a huge number of cryptocurrency programs that help set up equipment for mining digital tokens. They are called miners - this is special software that allows you to make the equipment work as efficiently as possible. However, not all of them are successful, some have poor functionality, others have a complex interface. Cgminer is one of the few programs that has proven its effectiveness empirically. It is used by a huge number of miners around the world.