---
title: "Install Grafana Agent Flow on macOS | Grafana Agent documentation"
description: "Learn how to install Grafana AgentFlow on macOS"
---

# Install Grafana Agent Flow on macOS

You can install Grafana Agent Flow on macOS with Homebrew .

> Note
> 
> The default prefix for Homebrew on Intel is `/usr/local`. The default prefix for Homebrew on Apple Silicon is `/opt/Homebrew`. To verify the default prefix for Homebrew on your computer, open a terminal window and type `brew --prefix`.

## Before you begin

- Install [Homebrew](https://brew.sh) on your computer.

## Install

To install Grafana Agent Flow on macOS, run the following commands in a terminal window.

1. Add the Grafana Homebrew tap:
   
   shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```shell
   brew tap grafana/grafana
   ```
2. Install Grafana Agent Flow:
   
   shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```shell
   brew install grafana-agent-flow
   ```

## Upgrade

To upgrade Grafana Agent Flow on macOS, run the following commands in a terminal window.

1. Upgrade Grafana Agent Flow:
   
   shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```shell
   brew upgrade grafana-agent-flow
   ```
2. Restart Grafana Agent Flow:
   
   shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```shell
   brew services restart grafana-agent-flow
   ```

## Uninstall

To uninstall Grafana Agent Flow on macOS, run the following command in a terminal window:

shell ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```shell
brew uninstall grafana-agent-flow
```

## Next steps

- [Run Grafana Agent Flow](/docs/agent/v0.43/flow/get-started/run/macos/)
- [Configure Grafana Agent Flow](/docs/agent/v0.43/flow/tasks/configure/configure-macos/)
