CGMiner 4.13.5. GekkoScience branch

New Release of the cgminer-gekko v4.13.5 Mining Software

TL;DR: To support the launch of the new GekkoScience Compac A2, Kano released cgminer-gekko v4.13.5 in late October 2025. The release introduces support for the Compac A2 with Bitmain BM1370 ASIC (7 nm, up to 1 TH/s), keeps full backward compatibility with the R909 and Compac F, and adds three major new features: a per-API adjustable core voltage, automatic safety shutdown on chip overtemperature, and a live display of temperature and per-chip voltage right inside the CGMiner terminal. This article walks you through installation, configuration and tuning of cgminer-gekko v4.13.5 for the Compac A2.

What’s new in cgminer-gekko v4.13.5?

cgminer-gekko v4.13.5 is the official mining software for all GekkoScience USB-stick and pod miners. It is maintained by Kano in the repository https://github.com/kanoi/cgminer. Version v4.13.5 was built specifically for the launch of the Compac A2 and supersedes v4.13.1 (Compac A1).

Key new features at a glance:

  • Support for the GekkoScience Compac A2 with Bitmain BM1370 ASIC (single-chip, 7 nm).
  • Core voltage (CoreV) adjustable via the Java API using the new command ascset|0,corev,<mV>.
  • Real-time temperature protection: the miner stops automatically if the chip temperature gets too high and restarts as soon as it cools down.
  • Live display of the ASIC temperature and per-chip voltage right in the CGMiner terminal (example: 47C 270mV).
  • New API command zeromaxt to reset the recorded maximum chip temperature.
  • --gekko-mine2 is now ignored – the optimized mine2 engine is the default for all Gekko miners.

Full backward compatibility: v4.13.5 still supports the Compac A1, Compac F and Terminus R909 out of the box.

Installation and Update of cgminer-gekko v4.13.5

Detailed step-by-step installation guides for each operating system are available in our support section:

CGMiner Gekkoscience Branch – Git Repository

The official Git master is maintained by Kano at: https://github.com/kanoi/cgminer. It is a maintained fork of the original CGMiner by Con Kolivas. Always download from the official repository – third-party forks (e.g. wareck/cgminer-gekko) have known security issues and must be avoided.

Build on Linux / Ubuntu / Raspberry Pi (Update)

sudo apt-get update
sudo apt-get upgrade -y
cd ~/cgminer
git pull
CFLAGS="-O2 -march=native -fcommon" ./autogen.sh --enable-gekko --enable-icarus
make clean
make
sudo apt-get install -y openjdk-8-jre-headless

Fresh install on Linux / Ubuntu / Raspberry Pi

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential autoconf automake libtool pkg-config \
  libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev zlib1g-dev git
cd ~
git clone https://github.com/kanoi/cgminer.git
cd cgminer
CFLAGS="-O2 -march=native -fcommon" ./autogen.sh --enable-gekko --enable-icarus
make
sudo apt-get install -y openjdk-8-jre-headless

Windows 10/11 (32-bit binary)

The precompiled Windows binary (v4.13.5) is available directly from Kano: https://kano.is/cgminer.php.On Windows, install the USB driver via Zadig (details in the README in the CGMiner repository).

macOS (Intel & Apple Silicon)

The macOS build guide (tested on Big Sur and later, both Intel and M1/M2/M3) is at https://github.com/kanoi/cgminer/blob/master/mac-build.txt.

Running CGMiner

Linux

./cgminer -o stratum+tcp://stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442

or

./cgminer -c gekko.conf

Windows

cgminer.exe -o stratum+tcp://stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442

or

cgminer.exe -c gekko.conf

macOS

cgminer -o stratum+tcp://stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442

or

cgminer -c gekko.conf

In all examples, replace 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr with your own benutzername.worker on the pool. If you want to donate hashrate (or Bitcoin) to Sidehack (GekkoScience), feel free to keep the address 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr .

Sample gekko.conf for the Compac A2

{
  "pools" : [
    {
      "url"  : "stratum+tcp://stratum.kano.is:3333",
      "user" : "benutzername.worker",
      "pass" : "x"
    }
  ],
  "gekko-compaca2-start-freq" : "300",
  "gekko-compaca2-freq"       : "300",
  "gekko-compaca2-corev"      : "270",
  "gekko-compaca2-detect"     : true,
  "gekko-r909-freq"           : "450",
  "gekko-r909-detect"         : true,
  "gekko-compacf-freq"        : "400",
  "gekko-compacf-detect"      : true,
  "gekko-tune2"               : "60",
  "suggest-diff"              : "442",
  "failover-only"             : true,
  "api-listen"                : true,
  "api-port"                  : "4028",
  "api-allow"                 : "W:192.168.1.0/24,W:127.0.0.1"
}

Replace benutzername.worker with your own pool account and adjust 192.168.1.0/24 to match your local network. If you run multiple CGMiner instances on the same host, give each instance its own API port (4028, 4029, …).

Frequency and Voltage Settings for the Compac A2

Default settings for each Gekko miner in v4.13.5:

MinerStart frequencyFrequencyCore-Voltage
Compac A2 (NEW)300 MHz300 MHz270 mV
Compac F200 MHz200 MHz
Terminus R909400 MHz450 MHz(pot, ~4,6 V)

If you run multiple different Gekko miners on the same CGMiner instance, you can combine the frequency arguments:

--gekko-compaca2-freq 300 --gekko-compacf-freq 400 --gekko-r909-freq 450

Use --gekko-compaca2-detect, --gekko-compacf-detect and --gekko-r909-detect to select which miners CGMiner should pick up. If you pass no *-detect option, all available Gekko miners are used.

You can also restrict CGMiner to specific miners by serial number:

--gekko-serial GS-10000001,GS-10000002

The --gekko-tune2 60 option re-enables periodic frequency recalibration when environmental conditions improve (e.g. better cooling). The value 60 means “check once per 60 minutes”; valid range: 30–9999 minutes. Default: off.

First Tuning Steps for the Compac A2

Out of the box, the Compac A2 runs stable at 300 MHz / 270 mV ≈ 600 GH/s @ ~10 W (eco mode). To dial in higher hashrates, follow this sequence:

  1. Step frequency up by 25 MHz at a time as long as hashrate scales cleanly.
  2. If hashrate plateaus or drops: raise the core voltage by 5 mV at a time (max approx. 270 mV).
  3. Step frequency up by 25 MHz again.
  4. Keep an eye on chip temperature – it should not stay above approximately 70 °C.
  5. If the next CoreV step delivers no improvement or temperatures climb too high, step back one notch. That is your sweet spot.

Typical operating points for the Compac A2:

Target hashrateFrequencyCore-VoltagePowerUse case
~600 GH/s~300 MHz250 mV~10 WQuiet, low-power 24/7 solo-lottery mining
~800 GH/s400 MHz270 mV13–14 WFactory setting, safe and stable
~1 TH/s500 MHz300 mV16–17 WMaximum hashrate for solo mining

Rule of thumb: Hashrate (GH/s) ≈ 2 × frequency (MHz).

Tuning Options via the API (Java)

All tuning options for the Compac A2 are controlled via the CGMiner Java API. This lets you build complex, sensor- or event-driven setups – for example coupling the miner to a PV system or home automation that does not need to run on the same controller as CGMiner itself.

Enable the API

--api-listen --api-allow "W:192.168.1.0/24,W:127.0.0.1"

127.0.0.1 is the loopback address of the controller itself on which CGMiner is running. Adjust 192.168.1.0/24 to match your local network. When the API starts successfully you will see:

API running in IP access mode on port 4028 (10)

Default port is 4028. With multiple CGMiner instances on one host, every instance needs its own port:

--api-listen --api-allow "W:192.168.1.0/24,W:127.0.0.1" --api-port 4029

A Java installation is required on whichever machine queries the API. The Linux build steps above already install Java.

Read statistics

java API estats minerIP

Sample output from a live miner:

[STATS]       => 0
[Serial]      => GS-10008000
[WaitFactor0] => 0.500000
[WaitFactor]  => 2.000000
[Jobs]        => 10081/12972/12980/12972/12980
[JobsAvgms]   => 4.62/4.63/4.62/4.63/4.62

If you query from localhost, you can omit the IP:

java API estats

NEW in v4.13.5: set core voltage via AP

java API "ascset|0,corev,250" minerIP

Valid range: 0 mV to 500 mV. Kano’s recommendation: do not go above 270 mV. Useful values are 250–270 mV depending on your tuning goal and temperature.

NEW in v4.13.5: reset maximum temperature

The Compac A2 internally records the highest chip temperature ever measured and the time it occurred. You can reset that value via the API:

java API "ascset|0,zeromaxt" minerIP

Set frequency for all chips (e.g. 400 MHz)

java API "ascset|0,freq,400" minerIP

If the frequency is not locked, the plateau code kicks in and tries to find the optimum automatically. Note for the Compac A2: Because the A2 has only one ASIC (BM1370), per-chip addressing (ascset|0,chip,0:410) ) does not apply to this miner – that option remains available for the R909 and Compac F.

Lock / unlock frequencies

java API "ascset|0,lockfreq"   minerIP
java API "ascset|0,unlockfreq" minerIP

CGMiner will no longer change the current frequencies automatically. If an ASIC stops responding (zombie), the lock is removed automatically and the miner is reset.

Reset on low hashrate

java API "ascset|0,require,0.65" minerIP

By default, the miner is reset when current hashrate stays below 65 % of the expected value. Valid range: 0.0 to 0.8. 0,0 disables automatic reset.

Wait factor (R909 / Compac F only)

java API "ascset|0,waitfactor,0.6" minerIP

Controls how often work is sent to the miner. Range: 0.01 to 2.0. Defaults: 0.5 (Linux), 0.4 (Windows), 0.3 (Mac). The Compac A2 does not need this adjustment.

USB propagation time (R909 / Compac F only)

java API "ascset|0,usbprop,800" minerIP

Range: 200–1000 µs. Default: 1000 µs. Lower values increase CPU usage.

Reset a miner

java API "ascset|0,reset" minerIP

When running multiple miners on one CGMiner instance, replace 0 with the [STATS] number of the target miner from the estats output (not the [ID] number – they are often, but not always, identical).

What’s Different in the Software for the Compac A2 vs. Compac A1?

Software featureCompac A1 (cgminer-gekko v4.13.1)Compac A2 (cgminer-gekko v4.13.5)
ASIC2× BM13621× BM1370 (7 nm, same as Bitaxe Gamma)
Default frequency300 MHz300 MHz
Default core voltage300 mV270 mV
Core-Voltage per API einstellbarnoyes (ascset corev)
Chip temperature protection (auto stop on overheat)limitedyes
Live temp + voltage display in terminallimitedyes (e.g. 47C 270mV)
zeromaxt (reset max temperature via API)noyes
PWM fan control (Icepac)noyes (via API)
--gekko-mine2OptionalIgnored (mine2 is the default)

Web Dashboard with miner.php

The CGMiner directory ships with a ready-made PHP file miner.php that lets you view your miner stats in a browser. On Ubuntu / Raspberry Pi:

sudo apt install apache2 php
sudo cp -v miner.php /var/www/html/

Configuration in /var/www/html/myminer.php:

<?php
$rigs = array('192.168.0.10:4028:CompacA2');
$readonly = true;
$allowgen = true;
$rigbuttons = false;
$rigipsecurity = false;
$customsummarypages = array('Gekko' => 1, 'GekkoChips' => 1);
?>

Open it at http://192.168.0.X/miner.php.

Warning About Unofficial CGMiner Forks

Kano explicitly warns against the following repositories – they contain known security issues, a solo-mining bug that can send coins to unknown addresses, and unknown patches:

  • DO NOT use: https://github.com/wareck/cgminer-gekko
  • DO NOT use: https://github.com/W1T3H4T/cgminer-Raspi/

Use only the official repository at https://github.com/kanoi/cgminer or the official Windows binaries at https://kano.is/cgminer.php.

Frequently Asked Questions (FAQ) about cgminer-gekko v4.13.5 and the Compac A2

Frequently Asked Questions

What is cgminer-gekko v4.13.5?

cgminer-gekko v4.13.5 is the official mining software for all GekkoScience miners, maintained by Kano at https://github.com/kanoi/cgminer. Version v4.13.5 was released in late May 2026 and adds first-time support for the new GekkoScience Compac A2 USB stick miner powered by the Bitmain BM1370 ASIC.

Which miners are supported by cgminer-gekko v4.13.5?

cgminer-gekko v4.13.5 supports all current GekkoScience miners: the new Compac A2, the Compac A1, the Compac F and the pod miner Terminus R909. Full backward compatibility with older Gekko generations is preserved.

Where do I get the official binaries and source code?

Kano maintains the source at https://github.com/kanoi/cgminer. Precompiled Windows binaries (32-bit) are available at https://kano.is/cgminer.php. On Linux, Raspberry Pi and macOS, CGMiner is built directly from source – the steps are listed in this article and in the setup guides at bitshopper.de.

What's new in v4.13.5 compared to v4.13.1?

DrThree things: First, support for the Compac A2 with the BM1370 ASIC. Second, the ability to set the A2's core voltage via the Java API (ascset|0,corev,). Third, an automatic chip-temperature protection with live display of ASIC temperature and per-chip voltage directly in the CGMiner terminal. In addition, the mine2 engine is now the default and --gekko-mine2 is ignored.

How do I configure the Compac A2 in gekko.conf?

Add the default values to your gekko.conf, "gekko-compaca2-start-freq": "300", "gekko-compaca2-freq": "300", "gekko-compaca2-corev": "270" and "gekko-compaca2-detect": true. With these settings the A2 runs stable at around 600 GH/s and approximately 10 W. The full sample file is in the article above.

Which core voltage should I set for the Compac A2?

The factory setting of 270 mV is safe and stable. Kano explicitly recommends not exceeding 270 mV. In low-power eco mode, 250 mV at 300 MHz is enough for 600 GH/s. For overclocking up to 1 TH/s, 270–300 mV at 500 MHz is feasible – keep chip temperature below approximately 70 °C.

How do I set the Compac A2 core voltage via the API?

se the new API command: java API "ascset|0,corev,250" minerIP. Valid range is 0–500 mV; useful values are 250–270 mV. With multiple miners on the same CGMiner instance, replace 0 with the miner's [STATS] number from the estats output.

Does the Compac A2 shut down on overtemperature?

Yes. The Compac A2 monitors its ASIC temperature out of the box. If it exceeds a critical threshold, CGMiner stops the miner automatically and restarts it as soon as the chip cools down. The terminal continuously displays current temperature and per-chip voltage (e.g. 47C 270mV).

What is the hashrate rule of thumb for the Compac A2?

Hashrate (GH/s) ≈ 2 × frequency (MHz). So 300 MHz delivers about 600 GH/s, 400 MHz about 800 GH/s, and 500 MHz about 1,000 GH/s (= 1 TH/s).

Do I need an active USB hub for the Compac A2?

Yes, strongly recommended. At full power, the Compac A2 draws up to 17 W – this exceeds what any regular USB port can supply and may damage it. Use an active USB hub with its own power supply (5 V, 2–4 A per port), for example the GekkoScience 7-Port USB hub.

What is the difference between Compac A1 and Compac A2?

The Compac A2 uses a single Bitmain BM1370 ASIC (7 nm, the same chip as in the Bitaxe Gamma) instead of two BM1362. As a result it reaches up to 1 TH/s instead of 350–500 GH/s and is nearly twice as efficient at around 16–17 W/TH vs. ~30 W/TH for the A1. In addition, core voltage is software-adjustable (not soldered) and the included Icepac fan is PWM-controlled and directly addressable via the API.

Does cgminer-gekko v4.13.5 work on the Raspberry Pi?

Yes. CGMiner runs on both x86 Linux and ARM Linux, so any Raspberry Pi from model 3 onwards works fine. Important: do not connect the A2 directly to a Pi USB port – use an active USB hub with its own power supply.

How do I upgrade from v4.13.1 to v4.13.5?

On Linux / Raspberry Pi, run git pull in the CGMiner directory followed by make clean && make. On Windows, download the current binary from https://kano.is/cgminer.php. On macOS, follow the build guide at https://github.com/kanoi/cgminer/blob/master/mac-build.txt.

Is there English support available for the Compac A2?

Yes. bitshopper.de provides customer support in German and English by email (info@bitshopper.de) and phone (+49 179 9754353), llustrated setup guides for Windows, Linux/Raspberry Pi and macOS, and shipping from Germany.

Which CGMiner forks should I avoid?

Kano explicitly warns against https://github.com/wareck/cgminer-gekko and https://github.com/W1T3H4T/cgminer-Raspi/. Both contain unknown patches, security risks and a solo-mining bug that can send coins to unknown addresses. Use only https://github.com/kanoi/cgminer.

Sources: