# Quai Windows Mining Tutorial

**1.  Acquire sub-account**

In order to earn quai, one must mine to a sub-account. Head over to <https://www.apool.top> to finish email registration.&#x20;

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FBnj74si96n6ye7oaR6KH%2F%E5%9B%BE%E7%89%871.png?alt=media&#x26;token=5490f99a-ff5b-42b4-a9a4-8aebf35963bf" alt=""><figcaption></figcaption></figure>

Apool will allocate a sub-account automatically under your name.  Check out your sub-account name in 'My miners' page.

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2Ftk3AfFa7h6Hdg7MwNRta%2Fimage.png?alt=media&#x26;token=fd120869-4cc0-4856-91be-92706461e440" alt=""><figcaption></figcaption></figure>

&#x20;**2. Download the mining software**

* download link：<https://github.com/apool-io/quaiminer/releases>

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FS4EGdMg8owNX1dkUOPx6%2Fimage.png?alt=media&#x26;token=82299e66-a024-49ed-99f8-c75eb32cbe8b" alt=""><figcaption></figcaption></figure>

3. **Open the file folder and get the following files**
4. **Right click on the "start" and edit the startup script.**

there are three mining mode to choose from: cpu, gpu, all（cpu+gpu）![](https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FPGFDV5I9WFXYwO1J27Oy%2Fimage.png?alt=media\&token=003da9af-0a1a-45d8-b091-6606dc9779b7)

**Configuration file example**

* Configuration files for mining with GPU (Recommended mining configuration for all resources)
* Configuration files for mining with GPU only

  ```
  algo=quai
  account=CP_XXX
  pool=quai.hk.apool.io:3335

  worker = my_worker
  #cpu-off = true
  #thread = 4
  #gpu-off = true
  #gpu = 0,1,2
  ```

\
&#x20; 5\.  **Save the scripts after change，Double-click the mouse to start the script.**

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FiGGfTe6VsdXc2t2VPHDf%2Fimage.png?alt=media&#x26;token=af0c2a6f-9a02-4686-9138-cadc9110cac7" alt=""><figcaption></figcaption></figure>

6. **The mining starts.**

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FNwJSzBcccNKhZYsL1r6P%2F45bedd10a0ba3ccdbcfc9aa478e1889.png?alt=media&#x26;token=937580a8-d7b5-4efa-a4fb-a5f8e8d20fcc" alt=""><figcaption></figcaption></figure>
