> For the complete documentation index, see [llms.txt](https://docs.kryptokrona.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kryptokrona.org/mining/xmrig-guide.md).

# Mining with XMRig

XMRig uses separate miners for CPU and GPU, you need to download a CPU and GPU miner separately and run two separate instances on your computer.

### Downloading and Installing for Windows

XMRig has separate miners for CPU and GPU. You can download them from here:

* [XMRig CPU Miner](https://github.com/xmrig/xmrig/releases)
* [XMRig GPU NVIDIA Miner](https://github.com/xmrig/xmrig-nvidia/releases)
* [XMRig GPU AMD Miner](https://github.com/xmrig/xmrig-amd/releases)

**Note:** You will need to download and run two separate instances if you want to mine with your GPU and CPU at the same time.

### Downloading and Installing for Linux

You can directly use the pre-built binaries for XMRig CPU. Download the `xmrig-*-xenial-amd64.tar.gz` file [here](https://github.com/xmrig/xmrig/releases).\
Run the file using `./xmrig`.

XMRig needs to be compiled for NVIDIA and AMD. Instructions for compiling are linked below(Ubuntu):

* [XMRig GPU NVIDIA Miner](https://github.com/xmrig/xmrig-nvidia/wiki/Ubuntu-Build)
* [XMRig GPU AMD Miner](https://github.com/xmrig/xmrig-amd/wiki/Ubuntu-Build)
* [XMRig CPU Miner](https://github.com/xmrig/xmrig/wiki/Build) (instructions for multiple platforms)

### Downloading and Installing for Mac

Needs to be compiled. Instructions [here](https://github.com/xmrig/xmrig/wiki/OS-X-Build).

### XMRig Setup and Configuration

#### CPU XMRig Configuration

1. Unzip the file and extract the files into a new folder (Make sure your anti-virus doesn't delete the files)
2. Open the `config.json` file with Notepad
3. Find and change the following lines:

* `"algo: "cryptonight-pico/trtl"`
* `"url: "[pool address]"`
* `"user: "[wallet address]"`
* Instead of `[wallet address]`, simply paste your Kryptokrona wallet's address. Make sure to keep the `"`!
  * If you don't have one yet, you can find out how to create a wallet [here](https://github.com/kryptokrona/kryptokrona-docs/blob/master/docs/wallets/Making-a-Wallet/README.md)
* In place of `[pool address]`, you'll need to choose a pool to mine towards. You can learn more about them [here](https://github.com/kryptokrona/kryptokrona-docs/blob/master/docs/guides/Pools/README.md). Make sure to keep the `"`s!

1. Save the file and:

* start `xmrig.exe` if you're mining with your CPU,
* `xmrig-amd.exe`. if you're mining with an AMD GPU,
* or `xmrig-nvidia.exe` if you're mining with a NVIDIA GPU.

**Remember:** if you want to mine with both your CPU and your GPU you must have both programs open at the same time!

That's it! You should be mining away now! :)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.kryptokrona.org/mining/xmrig-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
