# Mining on macOS

.. So you've got a Mac? Well, good news, the new Apple Silicon chips are very efficient to mine XKR on! You can expect at least 1kh/s on some of the newer Apple laptops, at a very low wattage.

Below you can follow a concise step-by-step guide on how to start mining!

### 1. Install brew

Homebrew is a terminal app that let's you install terminal applications with ease. They call it "The Missing Package Manager for macOS", which is an apt description. If you haven't installed it yet, do so by opening Terminal.app (command + space, and write terminal to open it) and write the following command:

```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

*Source:* [*https://brew.sh/*](https://brew.sh/)

### 2. Install xmrig

Then we will use your new brew installation to install the mining software, called xmrig. Simply type the following in the terminal to install it:

```
brew install xmrig
```

When it's finished (usually takes a few minutes), the software is installed and ready to go, but you will need a config so that you're mining the right coin to the right wallet.

### 3. Generate a config-file

You can generate a config on our website: <https://kryptokrona.org/mining>

To do so, you will need a wallet first. We recommend using [Aesir wallet](https://docs.kryptokrona.org/guides/wallets/using-kryptokrona-wallet) to handle your XKR coins. If you want to get started without having to download any additional software, you can also generate a paper wallet at <https://explorer.kryptokrona.se/tools.html> and use that address, and then import it to the wallet in the app later. ***Dont forget to save the mnemonic seed, otherwise you won't be able to access the coins!***

When you've pasted your wallet address into the generator, it should start a download of a ***config.json*** file that will end up in your downloads folder.

### 4. Start the miner

Now you can simply start mining by typing the following into the terminal:

```
xmrig -c ~/Downloads/config.json
```

<figure><img src="https://2858262040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7WCorBnqCP2oVt16bNf%2Fuploads%2FmeQEcE8UcEI3nFgF4HpX%2FScreenshot%202024-12-05%20at%2016.03.11.png?alt=media&#x26;token=9464967a-03da-4a03-91af-f7595a2e7c3e" alt=""><figcaption><p>If everything went right, it should look something like this!</p></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://docs.kryptokrona.org/mining/mining-on-macos.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.
