---
title: Install the infrastructure agent for macOS
source: https://docs.newrelic.com/docs/infrastructure/infrastructure-agent/macos-installation/install-infrastructure-monitoring-agent-macos
---

With New Relic's infrastructure agent for macOS, you can monitor key performance metrics on macOS hosts. The agent can run on your own hardware or in cloud systems such as Amazon EC2.

Our infrastructure agent [has compatiblity](https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/get-started/requirements-infrastructure-agent) with all generally available, Apple-supported macOS versions.

## Install for macOS [#install-macos]

Before installation, you should review the [requirements](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/getting-started/compatibility-requirements-new-relic-infrastructure). Then, to install the infrastructure agent for macOS, you can use our [Guided Install](https://docs.newrelic.com/docs/full-stack-observability/observe-everything/get-started/new-relic-guided-install-overview/), or follow the instructions in this document to complete a basic installation.

## Limitations [#limitations]

The following capabilities of the infrastructure agent are not yet available on macOS:

-   [Log forwarder](https://docs.newrelic.com/docs/logs/enable-log-management-new-relic/enable-log-monitoring-new-relic/forward-your-logs-using-infrastructure-agent/)
-   [On-host integrations](https://docs.newrelic.com/docs/integrations/host-integrations/get-started/introduction-host-integrations/) (including built-in integrations such as Docker and Flex)
-   Automated deployment via configuration management tools (Chef, Ansible, Puppet)

## Step-by-step instructions [#instructions]

To install the infrastructure agent, follow the step-by-step instructions:

1.  Review the [agent requirements and supported operating systems](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/getting-started/compatibility-requirements-new-relic-infrastructure).

2.  Make sure [Homebrew](https://brew.sh/) is installed in the system.
    You can check your Homebrew installation with:

    ```bash
    which brew
    ```

    If it's not installed, you can install it with this command (or check [Homebrew](https://brew.sh/) up-to-date instructions):

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

3.  Then, open the terminal and run the following command::

    ```bash
    brew install newrelic-infra-agent -q
    ```

4.  Start the infrastructure agent service:

    ```bash
    brew services start newrelic-infra-agent
    ```

5.  Create the configuration file and add your license key:

    Intel x86:

    ```bash
    sudo mkdir -p /usr/local/etc/newrelic-infra/
    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /usr/local/etc/newrelic-infra/newrelic-infra.yml
    ```

    Apple Silicon:

    ```bash
    sudo mkdir -p /opt/homebrew/etc/newrelic-infra/
    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /opt/homebrew/etc/newrelic-infra/newrelic-infra.yml
    ```

Wait a few minutes, then [view your server in the infrastructure UI](https://docs.newrelic.com/docs/infrastructure/infrastructure-ui-pages/infra-ui-overview). If no data appears after waiting a few minutes, follow the [troubleshooting steps](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/troubleshooting/no-data-appears-infrastructure).

## What's next? [#configure]

The only required [configuration option](https://docs.newrelic.com/docs/infrastructure/install-configure-infrastructure/configuration/configure-infrastructure-agent) is the [`license_key`](https://docs.newrelic.com/docs/infrastructure-configure-your-agent#conf-license_key) setting, which is created as part of the installation procedures. You may also want to:

-   [Add custom attributes](https://docs.newrelic.com/docs/infrastructure-configure-your-agent#conf-custom_attributes) to annotate your infrastructure data.
-   [Connect your AWS account](https://docs.newrelic.com/docs/infrastructure-amazon-aws-ec2-integration#connect) if your servers are hosted on Amazon EC2.
-   Add other [New Relic infrastructure integrations](https://docs.newrelic.com/docs/infrastructure/introduction-infra-monitoring) to collect data from external services.

## Update the agent [#update]

To upgrade to the latest version, follow standard procedures to [update the infrastructure agent](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/installation/update-infrastructure-agent).
