Skip to content

CGMiner

Miner for AMD GPU, FPGA, and ASIC. Optimized solution for multi-threaded mining of DOGE, BTC, and other cryptocurrencies. Download the latest version now.

CGMiner

CGMineris the best miner in its class, available for Windows in .exe format. The miner supports ASIC, FPGA, and GPU (up to version 3.7.2), giving miners the ability to manage their hardware. CGMiner is highly flexible and allows for multi-threaded mining, supports multiple pools, as well as remote management and monitoring of hardware parameters. Thanks to its advanced settings, the miner easily enables control over device temperature, fan speed, and chip frequency.

CGMiner Algorithms and Fees

Algorithm Supported Devices Typical Pool Fee Example Cryptocurrencies
SHA-256 ASIC 1% - 2% Bitcoin (BTC), Bitcoin Cash (BCH)
Scrypt ASIC, FPGA 1% - 1.5% Litecoin (LTC), Dogecoin (DOGE)
X11 ASIC, FPGA 2% - 2.5% Dash (DASH)
Blake2b ASIC 1% - 1.5% Siacoin (SC)
Equihash ASIC 1% - 2% Zcash (ZEC), Horizen (ZEN)
Ethash ASIC, FPGA 0.5% - 1% Ethereum Classic (ETC), Ethereum (ETH)
Groestl ASIC 1% - 1.5% Groestlcoin (GRS)

Installation and Configuration of CGMiner

Step 1: Download CGMiner

  • Download CGMiner for Windows from the main page of our website.
  • Save the archive to your computer and extract it to a convenient location.

Step 2: Configure CGMiner

  • In the miner’s folder, create a text file with a .bat extension.

    • Open Notepad or another text editor.
    • Save the file with a .bat extension (e.g., start_mining.bat), selecting All Files as the file type.
  • Inside this file, enter the mining parameters. For example:

    cgminer.exe -o stratum+tcp://pool_address:port -u your_login.worker_name -p password
  • Example for a Dogecoin pool:

    cgminer.exe --scrypt -o stratum+tcp://dogepool.com:3333 -u DYourWalletAddress.WorkerName -p x
  • Save the file and close the editor.

Step 3: Set Environment Variables (for GPU users)

  • If you are using a GPU for mining, set the environment variables:

  • Add the following commands at the beginning of your .bat file:

    setx GPU_FORCE_64BIT_PTR 0
    setx GPU_MAX_HEAP_SIZE 100
    setx GPU_USE_SYNC_OBJECTS 1
    setx GPU_MAX_ALLOC_PERCENT 100
    setx GPU_SINGLE_ALLOC_PERCENT 100
  • These commands will help CGMiner allocate your GPU resources correctly.

Step 4: Set Wallet Address and Device Name

  • Replace the following parameters in the file:

    • WALLET_ADDRESS: Enter your cryptocurrency wallet address where the mined coins will be deposited.
    • RIG_NAME: Assign a name to your device (e.g., rig1), using only letters and numbers.
  • Make sure the wallet address is correct to avoid loss of earnings.

Step 5: Start CGMiner

  • Double-click the .bat file to start the miner.
  • CGMiner will begin the initialization process, set the environment variables, prepare the GPUs, and connect to the pool.

Step 6: Check Performance

  • Once everything is running, the command line will display information about the mining process:
    • Hash rate for each device.
    • Temperature and load of the GPUs.
    • Current pool work and expected earnings.

Step 7: Troubleshooting

  • If Windows blocks the execution of the .bat file, right-click on the file and select PropertiesUnblock.
  • Ensure that your GPU drivers and other system components are up to date.

Video Guid

Basic CGMiner Commands

Basic CGMiner Commands
Command Description Example
--url Set the URL of the mining pool. cgminer --url stratum+tcp://pool.com:3333
--userpass Set the username and password for the pool in the format `username:password`. cgminer --userpass username:password
--quota Assign a quota to a pool, distributing the load between pools. cgminer --quota "1;pool1.com" -u user1 --quota "2;pool2.com"
--api-listen Enable remote API monitoring and control. cgminer --api-listen
--gpu-engine Set the clock speed for GPUs in MHz. cgminer --gpu-engine 1000
--gpu-fan Manually control GPU fan speed as a percentage. cgminer --gpu-fan 75
--temp-target Set a target temperature for GPUs. cgminer --temp-target 70
--config Load settings from a configuration file. cgminer --config configfile.json
--failover-only Use failover pool strategy (use backup pool only when primary fails). cgminer --failover-only
--gpu-memclock Set GPU memory clock in MHz. cgminer --gpu-memclock 1500
--log Log mining activity to a file. cgminer --log log.txt
--scan-time Set the time in seconds to scan for work from the pool. cgminer --scan-time 60

How to Choose a Multi-Pool Strategy in CGMiner?

CGMiner offers several strategies for distributing load between pools, helping you maximize performance:

  • Failover: switches to a backup pool if the main one fails.
  • Round Robin: evenly distributes work between pools, switching when the current pool is idle.
  • Rotate: rotates between pools at set time intervals.
  • Load Balance: distributes load across pools based on assigned quotas.
  • Balance: evenly distributes work across all active pools.

Load Balance Command Example:

cgminer --quota "1;pool1.com:3333" -u user1 -p pass1 --quota "2;pool2.com:4444" -u user2 -p pass2

Try our quota calculator to optimize your mining strategy!

Калькулятор квот
Пул Квота (%)
Пул 1
Пул 2

API for Pool Management in CGMiner

CGMiner provides a powerful API that allows automatic management of mining pools and monitoring mining performance. This API is useful for remote control and automation of processes.

Key API Features:

  • Adding and Removing Pools: Easily add or remove pools through API commands.
  • Switching Between Pools: Automatically switch to the desired pools based on settings.
  • Quota Management: Set quotas to distribute the load between pools.
  • Pool Monitoring: Get real-time information about the status and performance of each pool.

Example Command to Add a Pool:

{"command": "addpool", "parameter": "stratum+tcp://pool.com:3333"}

The CGMiner API helps automate pool management, making mining more efficient and flexible.