> For the complete documentation index, see [llms.txt](https://docs.sia.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sia.tech/provide-storage/setting-up-hostd/macos.md).

# macOS

This guide will walk you through setting up `hostd` on macOS. At the end of this guide, you should have the following:

* Installed Sia `hostd` software
* Created a `hostd` wallet

***

## Pre-requisites

The following requirements are recommended for running `hostd`:

* **System Updates:** Ensure that your macOS version is up to date with the latest system updates. These updates can contain important security fixes and improvements.
* **Hardware Requirements:** A stable setup that meets the following specifications is recommended. Not meeting these requirements may result in fewer contracts from renters or the loss of collateral.
  * A quad-core CPU
  * 8GB of RAM
  * 256 GB SSD for `hostd`
    * 10 GB per 1 TB hosted for database storage
  * At least 4TB of HDD storage for renter data
* **Network Access:** `hostd` requires a stable internet connection and open network access to store and retrieve data on the Sia network.
* **Software Requirements:** Before installing `hostd`, you will need to install the [Homebrew](https://brew.sh) package manager. This is used to install and upgrade `hostd`.

## Installing `hostd`

Press `CMD + Space` to open Spotlight search and open a `terminal`.

![](/files/W5DUY2ECywtleaEBocBh)

{% hint style="warning" %}
Before you install `hostd`, make sure you have the [Homebrew](https://brew.sh) package manager installed.
{% endhint %}

Once the Terminal loads, use `brew` to install `hostd`:

```console
brew install siafoundation/sia/hostd
```

![](/files/S4y1hdIYLHZu6NDPLUT3)

To confirm `hostd` has been installed, run the following:

```console
hostd version
```

![](/files/wMNNesfuqmVNEBDQ6KNU)

## Configuring `hostd`

Now that you have `hostd` installed, you will need to create a seed phrase and admin password. To launch the built-in configuration wizard, run the following:

```console
hostd config
```

When the configuration wizard loads, you will be asked to verify the location of your data directory. If you would like to change this, you can do so now. Otherwise, type `no` to keep the default.

![](/files/LDYmKKbHi1phrkKOmB4n)

Next, you will be asked to enter a seed phrase. If you already have one that you would like to use, you can enter it now. Otherwise, you can type `seed` to generate a new one. For the purpose of this guide, we will generate a new seed.

![](/files/CEgL9ncPBhgPGgajOHQL)

Next, you will be prompted to enter an admin password. This is used to unlock the `hostd` web UI.

![](/files/Waw1PnYpQPq7KIgNIZek)

Finally, you will be asked if you want to configure advanced settings for `hostd`. Type `no` and hit enter to exit the configuration wizard.

![](/files/tgWK3noR86T2LBwP1vkn)

## Running `hostd`

Now that you have `hostd` installed and configured, you can run it. Use the following command to start `hostd`:

```console
hostd
```

![](/files/TfXJ7Vjb7XxrXKAwN2S3)

Once `hostd` has successfully started, the web UI should automatically open in your web browser.

{% hint style="info" %}
If the `hostd` web UI does not open. You can access it by opening your browser and going to [http://localhost:9980](http://localhost:9980/).
{% endhint %}

![](/files/6zu1SHQqjYyf13oqrADC)

{% hint style="success" %}
`hostd` is now set up.
{% endhint %}

## Upgrading `hostd`

Keep your host up to date. New versions of `hostd` are released regularly and contain bug fixes and performance improvements.

To upgrade your `hostd` to the newest version, make sure you have shut down `hostd` and then run the following:

```console
brew upgrade siafoundation/sia/hostd
```

![](/files/3tlJ49oiS1zbh8Lj05Bd)

You can confirm you have upgraded to the latest version using the following command:

```console
hostd version
```

![](/files/vFFJdWXd1rw5Fe5e0p0V)

{% hint style="success" %}
`hostd` is now updated to the latest version.
{% endhint %}


---

# 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.sia.tech/provide-storage/setting-up-hostd/macos.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.
