# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apool.gitbook.io/help/quai-pool-tutorial/quai-windows-mining-tutorial.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
