> For the complete documentation index, see [llms.txt](https://apool.gitbook.io/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apool.gitbook.io/help/quai-pool-tutorial/quai-windows-mining-tutorial.md).

# 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="/files/b5Mq5qh2jeuu1sMFDjlr" 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="/files/u2XswJ6lq4Y7RPDEqgDw" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/s0Sqp8pueICQ6AdISWQp" 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）![](/files/rPVxk4vRx5aPq1TlrmEa)

**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="/files/to1s8DGPprp0j1mKtJ1U" alt=""><figcaption></figcaption></figure>

6. **The mining starts.**

<figure><img src="/files/VZ4XZUFGRj0vbNtPZJ4n" alt=""><figcaption></figcaption></figure>
