# FanBar for Raycast

URL: https://www.raycast.com/JarinHe/fanbar

> Control Mac fan speed with FanBar: switch cooling presets, set a fixed RPM, view fan speeds and temperatures, and show CPU temperature in the menu bar.

- Install: raycast://extensions/JarinHe/fanbar
- Author: [JarinHe](https://www.raycast.com/JarinHe)
- Installs: 14
- Platforms: macOS
- Categories: System
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/18750b5bc7fe87eb76991e86f0cda47200daa48f/extensions/fanbar/

## Commands

- **Switch Preset**: Run a built-in or custom cooling preset's curve.
- **Fan Status**: Show FanBar's mode, fan speeds and temperatures.
- **Fixed RPM**: Hold every fan at a fixed speed.
- **Automatic**: Hand the fans back to macOS.
- **FanBar Menu Bar**: CPU temperature in the menu bar, with preset switching. Never starts a FanBar you quit.

## README

### FanBar for Raycast

Control [FanBar](https://github.com/helson-lin/FanBar) from Raycast: switch
cooling presets (custom ones included), set a fixed fan speed, hand the fans
back to macOS, and keep the CPU temperature in the menu bar.

| Command | What it does |
|---|---|
| Switch Preset | Lists built-in and custom presets and marks the selected one. ↵ runs the preset's curve until the **Restore automatic control** timer in FanBar Settings; ⌘↵ keeps it until changed (`--hold`). |
| Fan Status | Mode, each fan's speed and range, CPU/GPU/SSD temperatures, and when macOS control comes back. |
| Fixed RPM | Holds every fan at one speed, checked against the range all fans accept. Tick **Hold until changed** to skip the restore timer. |
| Automatic | Hands the fans back to macOS and shows the result as a HUD. |
| FanBar Menu Bar | CPU temperature in the menu bar, refreshed every minute, with fans, temperatures, preset switching (⌥ to hold) and Automatic in its menu. |

#### Requirements

The extension drives the `fanbar` command-line tool that ships inside
FanBar.app 0.7.0 and later. Install it on PATH from **FanBar Settings ›
General › Command Line & Automation › Command-line tool › Install…**, or by
hand:

```sh
sudo mkdir -p /usr/local/bin
sudo ln -sf /Applications/FanBar.app/Contents/Helpers/fanbar /usr/local/bin/fanbar
```

Raycast does not load your shell profile, so the extension looks for the tool
itself, in this order:

1. the **fanbar Path** preference, if set;
2. `/usr/local/bin/fanbar` (the Settings link);
3. `/opt/homebrew/bin/fanbar` (Homebrew on Apple Silicon);
4. `/Applications/FanBar.app/Contents/Helpers/fanbar`.

When none exists, every command says so and offers the install command.

#### Behaviour

- Exit codes become toasts: `1` "FanBar refused the command" with the app's
  message, `2` "fanbar did not understand the command", `3` "FanBar could not
  be reached".
- Presets are switched by their id (`builtin:2`, `custom:<uuid>`), so a custom
  preset that shares a name with a built-in still switches the right one.
- Like the CLI, the commands you run start FanBar when it is not running. The
  menu bar's background refresh passes `--no-launch`, so it never reopens a
  FanBar you quit; it shows "FanBar is not running" instead. Clicking a preset
  in its menu is an explicit request and may start FanBar.
