MacStats

Five menu bar items for a Mac, each with a panel that explains it.

MacStats Install
Buy me tokens
  • CPU usage
  • GPU utilization
  • RAM in use
  • Temp of the hottest part
  • Disk free as Finder counts it

Each item is a small label over a value, at one width whatever it shows, so nothing beside it shifts. All five update every second, together for well under 1% of one core. MacStats asks for no permissions on its own and causes no privacy prompts: the only one it ever causes is the one you ask for by clicking Grant on a private folder in the Disk panel. Until then it never opens the folders macOS guards (Desktop, Documents, Downloads, Photos, Mail, other apps' data), and it reads sensors and the GPU through public APIs plus the private ones the Stats app reads.

Built for Apple silicon (an M1 or later); an Intel Mac gets the same items from the sensors its chip reports, untested.

Install.

FreeOpen source

With the Xcode Command Line Tools (xcode-select --install), either

curl -fsSL https://raw.githubusercontent.com/csarkosh/app-macstats/main/install.sh | sh

which builds MacStats on your Mac, puts it in ~/Applications, and starts it now and at every login (a "Background Items Added" notice from macOS is information only), or

brew install --cask csarkosh/tap/macstats    # the signed and notarized app, in /Applications
open -a MacStats                             # add it in Login Items to start it at every login

or, built on your Mac by Homebrew and run as a service,

brew install csarkosh/tap/macstats
brew services start macstats

Homebrew 6 and later install from a tap like this only once you trust it. The full name, as above, trusts that one package. If you ran brew tap csarkosh/tap first and Homebrew answers Refusing to load formula csarkosh/tap/macstats from untrusted tap csarkosh/tap, run brew trust --formula csarkosh/tap/macstats (or --cask, as the error says) and try again.

Use one of these, or two copies run. To remove: install.sh --uninstall (the script again with that flag), brew uninstall --cask macstats, or brew services stop macstats && brew uninstall macstats. No Homebrew, Xcode or Developer ID is needed for the first route: the app is built on your Mac, so macOS runs it without a word.

Right-click any item for Quit. The items sit wherever macOS puts them; drag one with ⌘ held to move it.

The panels.

A panel opens at menu level, above every window whichever app is in front; opening one closes any other, and a click anywhere outside closes it. Every legend key (a row with a coloured square, or a chart's legend) has a tooltip saying what it is: it appears after 0.75 s, stays as long as the pointer stays on the item, and is at most two short lines.

The CPU panel

CPU

Two gauges: usage (normal under 60%, busy under 80%, heavy above) and the CPU's temperature on the chip's limits.

Usage: a three-minute chart with System (red) and User (blue) stacked and Idle the space above, then those three rows.

Load & frequency: two small three-minute charts. Core load is the 1-minute load average as a share of the cores, with a dashed line at 100%: above it, tasks were queuing. Core frequency is each core type's clock speed against its own top speed, so a line near the top means those cores ran flat out. Each has its legend under it: Load 31% of cores, P-cores 3.68 of 4.46 GHz.

Top processes: the eight busiest, as ps counts them, refreshed every two seconds. Beside a name that says little (eight rows of node), a fainter note says what it runs and where: the package or script and the folder it works in, vitest · game-dayhike. Resting on a row shows its command line and what started it (Started by npm run test, under claude and Arkos IDE, in ~/Projects/game-dayhike). A Claude Code session shows the title Claude Code gave it instead, Film handoff review · Projects, and says whether it is working. The header's icon opens Activity Monitor.

The GPU panel

GPU

The same two gauges for the GPU.

Usage: a three-minute chart of utilization with Renderer and Tiler as lines, then those three rows; then Framerate (62 Hz, the frames the displays showed), ML engine (how busy the machine-learning cores are) and Memory (the GPU's memory in use as a share of the most macOS lets it use, 0.49 / 11.84 GB), each with a small three-minute graph.

Top GPU apps: each app's share of GPU time over the last two seconds, as Activity Monitor's "% GPU" counts it, with the same note and tooltip as the CPU panel's.

The RAM panel

RAM

Usage: a three-minute chart with App, Wired and Compressed stacked and Free on top, in the same colours as the rows under it; then Used with a bar, a row per part, and Swap with a small graph of the last three minutes against the Mac's memory. The figures are the ones Activity Monitor and Stats show.

Top processes: the eight using the most memory, each with the same note and tooltip as the CPU panel's.

The Temp panel

Temp

Two gauges: the hottest part on that part's own limits, and the Mac's power draw in tiers sized to the Mac (for an M4 MacBook Air: normal under 10 W, moderate under 20 W, high above).

Temperature: one row per part of the Mac, hottest first, with the numbered sensors grouped ("CPU performance core 1" to "4" are one row, weighted toward the hottest). Each row's square turns yellow and red at limits set per part, because parts differ: chips from 85 °C and 100 °C, the battery from 35 °C and 40 °C, the SSD from 50 °C and 70 °C, anything else from 60 °C and 80 °C.

Power: Total, Battery, Charger (while connected), the internal supply, and Battery left (42.1/53.3 Wh (79%)). Fans, on a Mac with any.

The Disk panel

Disk

Spaces: Used with a bar split by colour, then a row for each part, biggest first and Free last: macOS system, update/boot, recovery, swap, my apps / files, other, Purgeable (space macOS frees on its own, counted as free in the menu bar as Finder does) and Free, from diskutil's APFS volumes.

My apps / files: that space broken down into folders three levels deep (100 MB and over, biggest first, an app as one row), measured by allocated blocks like du -x. That takes about a minute, so the panel keeps the last measurement for ten minutes and shows it (with "Remeasuring…") while it measures again. Private folders are listed by name but never opened until you click Grant, so they show no size and a folder holding one shows ≥. Double-click a folder to show it in Finder, where Get Info gives a private folder's size.

Grant: point at a private Desktop, Documents, Downloads, Music or Movies row and a Grant button replaces the word private. Click it and MacStats opens that folder once; macOS asks whether to allow it, and on Allow the folder's size appears at once, counted into the folders above it, and stays. macOS asks only once, so after Don't Allow the row's Grant button opens System Settings, where the permission can be given. A grant lasts for this build of MacStats: an install built on your Mac (make install, Homebrew) asks again after each rebuild, while the signed release keeps it. A folder made inside Music or Movies after your click (the Music and TV apps make theirs the first time they run) stays out of the size, shown as ≥, until you click the row's Grant button again. Mail, Messages, Safari, other apps' data, cloud folders and the Trash never get a button, and MacStats never asks for Full Disk Access. Those folders stay private; Finder's Get Info gives their size.

External disks: each disk plugged in gets its own section under the startup disk's, with its used and total space, which needs no permission. Click Grant on its Folders row and its folders appear three levels deep, like the startup disk's. Each disk is granted on its own: macOS asks once for all removable disks, so a second disk's click shows no dialog, but MacStats opens no disk you have not clicked. Unplug it and the section goes; plug it back in and its last measurement shows at once.

From a terminal.

MacStats (in ~/Applications/MacStats.app/Contents/MacOS/, or macstats from Homebrew) also prints what the panels show, for scripts and agents:

MacStats --cpu | --gpu | --memory | --sensors    # a panel's figures, tab-separated
MacStats --spaces | --legend | --report [folder]  # the Disk panel's spaces, rows, folders
MacStats --volumes                                 # each external disk: name, used, total, mount point, access
MacStats --grantable <path>                        # whether a Disk row gets Grant: dialog, none or not private
MacStats --render cpu|gpu|ram|temp|disk out.png   # draws that menu bar item
MacStats --tooltips                                # every panel's tooltips
MacStats --heat "<row>" <°C> | --weigh <°C …> | --power-level <W>
MacStats --show-panel cpu,disk                     # runs, opening those panels as clicks would
MacStats --version

Building.

A Swift package that needs only the Command Line Tools:

make app        # build/MacStats.app
make install    # the same as the curl script, from this checkout
make test       # builds a debug MacStats and runs Tests/MacStatsTests against it

The tests are a program rather than XCTest, which the Command Line Tools do not ship. Each feature is one file in Sources/MacStats/ (CPU.swift, GPU.swift, RAM.swift, Temp.swift, Disk.swift), with MenuKit.swift for what the items and panels share and HoverTip.swift for the tooltips; main.swift starts the items and holds the command line. The screenshots above come from scripts/previews.sh; the one at the top is a screenshot of the screen's top with the CPU panel open, cut and faded by scripts/compose-hero.swift --finish. See AGENTS.md for how the pieces fit and how a release is made.

The details.

Credits and licence

MIT; see LICENSE. SMC.swift and SensorCatalog.swift are adapted from Stats by Serhiy Mytrovtsiy (MIT, LICENSE-stats.txt), and the CPU, GPU and memory figures are read the way Stats reads them. The menu bar items are drawn like Stats' "mini" widgets, and the panels in its style, because Stats is the app this grew out of: it shows the pieces Stats could not show as wanted (free disk space over a label, temperatures grouped by part, memory and GPU charts with every part its own colour).