lavoiesl/osx-cpu-temp
FreeOutputs current CPU temperature for OSX
FreeFree tier
About lavoiesl/osx-cpu-temp
A command-line utility for macOS that reads and displays CPU temperature using Apple's System Management Control (SMC). It also supports reporting GPU temperature, ambient temperature, and fan speeds. Output can be customized to display in Celsius or Fahrenheit, with or without unit labels. Written in C, licensed under GPL-2.0, and installable via make or clib.
Key Features
Displays CPU temperature (default)
Displays GPU temperature with -g option
Displays ambient temperature with -a option
Displays fan speeds with -f option
Output in degrees Celsius or Fahrenheit
Option to omit temperature units
Command-line interface
Open source under GPL-2.0 license
Installable via make or clib
Pros & Cons
Pros
- Lightweight and simple command-line tool
- Open source with permissive GPL-2.0 license
- Supports multiple sensor types (CPU, GPU, ambient, fans)
- Easy to compile and install
- Customizable output format (Celsius/Fahrenheit, units optional)
Cons
- Limited to macOS (OSX) only
- Command-line only, no graphical interface
- No logging or continuous monitoring features
- Last release in 2018, project may not be actively updated
Best For
Monitor CPU temperature on macOSCheck GPU and ambient temperaturesView fan speeds for hardware diagnosticsIntegrate temperature readings into scriptsQuick system temperature check from terminal
FAQ
How do I compile osx-cpu-temp?
Run `make` in the repository directory.
How do I install osx-cpu-temp?
Use `sudo make install` to install to /usr/local/bin, or use clib: `clib install lavoiesl/osx-cpu-temp`.
What temperatures can osx-cpu-temp display?
CPU temperature (default), GPU temperature (-g), ambient temperature (-a), and fan speeds (-f).
Can I change the output format?
Yes, use -C for Celsius (default), -F for Fahrenheit, and -T to omit the unit symbol.