# Brew for Raycast

URL: https://www.raycast.com/nhojb/brew

> Search, install, upgrade and uninstall Homebrew formulae and casks on your Mac, manage services and taps, run brew doctor and check vulnerabilities.

- Install: raycast://extensions/nhojb/brew
- Author: [John Buckley](https://www.raycast.com/nhojb)
- Installs: 312,942
- Platforms: macOS
- Categories: Developer Tools, System
- Updated: 2026-11-21
- Source: https://github.com/raycast/extensions/tree/16aeb5910871593e6d464465029794382a74e429/extensions/brew/

## Commands

- **Show Installed**: List installed brew formulae & casks
- **Search**: Search brew formulae & casks
- **Show Upgrades**: Review available upgrades, choose which to apply, and run it
- **Show Vulnerabilities**: Check installed formulae for known vulnerabilities (Homebrew 7)
- **Run Doctor**: Check your Homebrew installation for problems and fix them
- **Adopt Apps**: Find applications already on your Mac that Homebrew can manage, and adopt them into a cask.
- **Upgrade All**: Upgrade brew formulae & casks
- **Manage Services**: Start, stop & restart Homebrew services
- **Manage Taps**: Add, trust & remove third-party Homebrew taps, and explore what they provide
- **Services Menu Bar**: Control Homebrew services from the menu bar
- **Clean up**: Clean files and packages from the cache that are older than 120 days

## README

### Brew Extension for Raycast

Search and manage your brew casks and formulae from [Raycast](https://raycast.com).

#### Commands

- **Search** — search brew formulae & casks and install them
- **Show Installed** — list installed formulae & casks, with pinned formulae and pinned casks each in their own section
- **Show Upgrades** (previously Show Outdated) — review outdated packages, choose which upgrade, and run it. The review opens with everything not pinned selected (exactly what a plain `brew upgrade` would do), so running immediately upgrades everything. A pin is a lock, matching brew's own behavior: a pinned package cannot be selected, and including one means unpinning it first — the primary action on a pinned row does both in one step. Formulae and casks behave identically. **Preview Upgrades** (⌘⇧I) runs `brew upgrade --dry-run` on demand and lists every package with its version transition, download size, running total, and brew's warnings; **Preview Upgrade** (⌘⌥I) does the same for the one package on the row, and is offered on outdated packages in Show Installed and Search too.
- **Upgrade All** — upgrade everything outdated in one shot, no review step, with progress reported per package via the toast
- **Show Vulnerabilities** — list installed formulae with known OSV advisories from `brew vulns`, with per-advisory detail and an Upgrade action where the formula is also outdated (needs Homebrew 7)
- **Run Doctor** — show the `brew doctor` report with every recommended fix, and run them all with one confirmation (Fix All) (needs Homebrew 7)
- **Adopt Apps** — find apps already in your Applications folder that Homebrew has a cask for, and hand them to Homebrew with `brew install --adopt` so they upgrade with everything else. Matches are grouped by what vouches for them: **Ready to Adopt** (the cask's bundle identifier matches, or Homebrew will compare the app itself), **Likely Adoptable** (name and version agree, nothing else checks), and **Unlikely Adoptions**; an app Homebrew would refuse to adopt as it stands is listed under **Can't Adopt**. Anything not ready goes through **Preview Adoption** (⌘⇧I) first. Ignore a wrong match with ⌘⇧H; the filter above the list shows ignored apps and restores them
- **Manage Taps** — add, check, trust and remove third-party taps, and browse the formulae and casks each one provides. See [Third-Party Taps](#third-party-taps)
- **Manage Services** — start, stop & restart Homebrew services
- **Services Menu Bar** — control Homebrew services from the menu bar
- **Clean up** — clean files and packages from the cache that are older than 120 days
- **Clear Cache** — clear the cached formulae, casks, and installed packages files

#### Third-Party Taps

A tap is a git repository of formulae and casks maintained by someone other than Homebrew.

**Adding a tap.** Type or paste `user/repo` or a GitHub repository URL into Manage Taps. For a tap on
another host, type `user/repo` followed by its `https://` URL. Before
anything is added, the extension reads the repository with git and shows what it holds. It doesn't
clone the whole repository. If the repository isn't a tap (an app's own repository, say), it says so
and offers what was probably meant: the install line from its README, or a tap from the same owner,
such as `user/homebrew-tap`. Private repositories are read with your saved git credentials. If one
reads as not found, sign in to git and press Refresh. You can always add a tap without waiting for
the check.

**Installing from a tap.** Paste `user/repo/name` into Search or Manage Taps. The extension adds the
tap if needed, then installs that one package after a single confirmation.

**Trust (Homebrew 7).** Homebrew won't load a formula or cask from a third-party tap until you trust
it, because loading one runs the tap's code. The extension always asks before Homebrew trusts
anything:

- Installing or upgrading a package from an untrusted tap trusts that one package, not the tap.
- Add Tap trusts the tap only when it holds packages. Trusting a tap with no packages asks first,
  since trust also covers whatever its owner adds later.
- A package from an untrusted tap is listed by name, marked Not Trusted, with Install and Trust Tap,
  unless you trusted that package on its own.
- Stop Trusting Tap lists the tap's installed formulae first. They stay installed, but won't
  appear in Show Installed or Show Upgrades until you trust them again.

**Removing a tap.** Homebrew won't remove a tap while packages from it are installed, so Remove Tap
lists them and uninstalls them first. It also clears the tap's trust, so adding it again later asks
again.

#### Homebrew Compatibility

**This extension requires Homebrew 6.0 or later.**

- **Internal API**: the faster internal JSON API is the default. The extension's "Use internal API"
  preference is gone — Homebrew 6 deprecates `HOMEBREW_USE_INTERNAL_API`, and setting it makes brew
  abort outright for anyone running with `HOMEBREW_DEVELOPER`.
- **Concurrent Downloads**: parallel downloads are on by default. If you hit trouble, turn them off
  in the extension preferences.
- **Removed Flags**: `--no-quarantine` and `--quarantine`, deprecated in 5.x, are gone in 6.
- **Pinning**: formulae and casks can both be pinned. A pin is a lock — brew refuses to upgrade or
  uninstall a pinned package until you unpin it.

For more details, see the [Homebrew 6.0 release notes](https://brew.sh/2026/06/11/homebrew-6.0.0/).

#### Homebrew Options

The extension runs `brew` without your shell's environment, so `HOMEBREW_*` variables set in
`~/.zshrc` don't reach it. Set them in `~/.homebrew/brew.env` instead. For example, to install casks
into `~/Applications`:

```sh
mkdir -p ~/.homebrew
echo 'HOMEBREW_CASK_OPTS=--appdir=~/Applications' >> ~/.homebrew/brew.env
```

If your shell sets `XDG_CONFIG_HOME`, Terminal's `brew` reads `$XDG_CONFIG_HOME/homebrew/brew.env`
instead. Raycast doesn't get `XDG_CONFIG_HOME` from your shell, so the extension's `brew` still reads
`~/.homebrew/brew.env`. To use one file for both, move your options to
`$(brew --prefix)/etc/homebrew/brew.env`, after creating its folder with
`mkdir -p "$(brew --prefix)/etc/homebrew"`.

Adopt Apps looks for apps in your cask install folder, `/Applications` and `~/Applications`.

#### Performance

This extension uses several optimizations to provide a fast experience:

- **Lazy Loading**: Package details are fetched on-demand when viewing, not upfront.

#### Install Statistics

Selecting a package shows its install counts (30 / 90 / 365 days) and build errors, taken from the
[formulae.brew.sh](https://formulae.brew.sh) analytics API. Only the selected package is fetched —
about 5 KB per row you land on, and nothing at all for the rest of the list.

**Sort by Popularity** (⇧⌘P in Search) is different: ranking every result requires Homebrew's bulk
30-day rankings, about 2.6 MB for formulae and casks combined. That download happens the first time
you enable the sort, is cached on disk, and is never fetched if you don't use the sort. While it is
on, each row also shows its 30-day install count.

Homebrew's analytics are anonymous and aggregate, and cover macOS installs; a package with no
reported installs simply shows no statistics.

#### Issue Tracker

[Report issues here](https://github.com/raycast/extensions/issues/new?body=%3C!--%0APlease%20update%20the%20title%20above%20to%20consisely%20describe%20the%20issue%0A--%3E%0A%0A%23%23%23%20Extension%0A%0Ahttps://www.raycast.com/nhojb/brew%0A%0A%23%23%23%20Description%0A%0A%3C!--%0APlease%20provide%20a%20clear%20and%20concise%20description%20of%20what%20the%20bug%20is.%20Include%0Ascreenshots%20if%20needed.%20Please%20test%20using%20the%20latest%20version%20of%20the%20extension,%20Raycast%20and%20API.%0A--%3E%0A%23%23%23%20Steps%20To%20Reproduce%0A%0A%3C!--%0AYour%20bug%20will%20get%20fixed%20much%20faster%20if%20the%20extension%20author%20can%20easily%20reproduce%20it.%20Issues%20without%20reproduction%20steps%20may%20be%20immediately%20closed%20as%20not%20actionable.%0A--%3E%0A%0A1.%20In%20this%20environment...%0A2.%20With%20this%20config...%0A3.%20Run%20%27...%27%0A4.%20See%20error...%0A%0A%23%23%23%20Current%20Behavior%0A%0A%0A%23%23%23%20Expected%20Behavior%0A%0A%23%23%23%20Raycast%20version%0AVersion:%201.103.9%0A&title=%5BBrew%5D%20...&template=extension_bug_report.yml&labels=extension,bug&extension-url=https://www.raycast.com/nhojb/brew&description).
