Skip to content
RossNicholsonPublic

About

Mac menu bar app that keeps your Mac awake: timers, triggers (Claude Code, builds, apps, downloads), command line, Shortcuts and closed-lid mode

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Taurine icon: a can of energy drink with a smiling face

Taurine

Keeps your Mac awake, for as long as you need.
An open-source Mac menu bar app. Keep your Mac awake for a while, until a time or until you stop it, or let it stay awake by itself while something's going on: Claude Code working, a build running, a download, an app open or the charger plugged in. The can in the menu bar opens while your Mac is kept awake, and the drink goes down as a timer runs out.

Latest release macOS 14 or later Swift 6 Signed and notarized MIT licence

Taurine's menu bar panel: a timer with 1 hour 22 minutes left, buttons to add 30 minutes or an hour, length presets and the triggers below

Install · Features · Triggers · Closed-lid mode · Command line · Privacy · Build


Install

brew tap RossNicholson/tap
brew trust --cask rossnicholson/tap/taurine
brew install --cask taurine

Homebrew 7 asks you to trust casks from other taps before installing them. On older versions of Homebrew, skip the brew trust line. The cask also installs the taurine command line tool.

Or download the DMG from the latest release. Needs macOS 14 Sonoma or later. Taurine updates itself (Settings → Check for updates).

Features

  • One click. Click the can for the panel and keep your Mac awake for 15 minutes to 8 hours, until you stop it, for a length of your own, or until a time of day. Add 30 minutes or an hour while it runs.
  • Right-click to toggle. Right-click the can, or press your own keyboard shortcut, to turn it on or off straight away for your default length.
  • A can that drains. Sealed when your Mac can sleep, open while it's kept awake, with the drink going down as the timer runs out. The time left can show in the menu bar too.
  • Triggers. Keep your Mac awake by itself while a command runs, an app is open, you're downloading and more. See below.
  • Screen on, or just the Mac. Keep the display on too, or let it turn off while the Mac keeps working.
  • Battery sense. Stops when the battery gets low and pauses triggers until you plug in. Optionally stops the timer when you unplug.
  • Closed-lid mode. Shut a MacBook's lid and it keeps running, without the charger, display and keyboard Apple's clamshell mode needs. See below.
  • Look active in chat apps. Teams, Slack and the like mark you away when you haven't touched the Mac for a while. With this on, while Taurine keeps your Mac awake, it nudges the pointer after a minute idle without moving it. Needs the Accessibility permission.
  • A nudge when time's up. A notification with buttons for 30 more minutes or an hour.
  • Shortcuts and links. Shortcuts actions to keep the Mac awake, stop, toggle or ask whether it's awake, and taurine:// links for other apps and scripts.
  • Weekly stats. How long your Mac was kept awake each day this week.
  • Your way. Open at login, start keeping awake as soon as Taurine opens, and pick the default length.

Taurine's panel kept awake by triggers: make release running, Claude Code working, Xcode open and the network busy    The menu bar with Taurine's open can and 1:22 left

Triggers

Add a trigger from the panel and Taurine keeps your Mac awake while it's true:

Trigger Keeps it awake
While a command runs while claude, xcodebuild, brew, make… is running. "Only while working" ignores an idle Claude Code session sitting at its prompt
While an app is open while any of the apps you choose is running
While an app is in front only while you're using one of them
While downloading while data goes in or out faster than you choose
While the Mac is busy while the processor is working hard, for renders and exports
While plugged in whenever it's on the charger
On a Wi-Fi network at home, at the office…
With an external display while a monitor is plugged in
During set hours such as weekdays 9 to 5, or overnight

Commands, downloads and a busy Mac come in bursts, so those wait a couple of minutes before letting go: a short pause doesn't let the Mac sleep.

Closed-lid mode

macOS only lets a MacBook keep running with its lid shut through its "never sleep" setting (pmset disablesleep), which needs administrator rights. Taurine installs a tiny helper for this, which you approve in System Settings → General → Login Items. The helper does nothing but switch that one setting, and:

  • it's only on while Taurine is keeping your Mac awake;
  • it's switched off when Taurine stops, quits or crashes (the helper notices the connection go), when the Mac restarts, and when the battery gets low;
  • by default it only works while you're plugged in. A MacBook running shut in a bag can get hot.

Command line

taurine                     what Taurine is doing now
taurine 2h                  stay awake for a while: 90 (minutes), 45m, 2h, 1h30m
taurine forever             until you turn it off
taurine until 18:30         until a time: 18:30, 6pm, 6:30pm
taurine off                 stop (triggers keep working)
taurine toggle
taurine while make release  run a command and stay awake until it ends (keeps its exit code)
taurine wait 1234           stay awake until a process ends
taurine status --json

Triggers can be set up from the command line too:

taurine triggers                              list them, and what they're doing now
taurine trigger add command claude make       keep awake while these run
taurine trigger set command always            any session counts, not only while working
taurine trigger add app-open Xcode            apps by name or bundle ID
taurine trigger add network 2MB/s             while downloading faster than this
taurine trigger add schedule weekdays 9-17    days and hours, e.g. mon-fri 08:30-17:30
taurine trigger off schedule                  switch one off (on to switch it back)
taurine trigger remove command make           take some out, or the whole trigger
taurine trigger set wait 5                    minutes to wait before letting go

The kinds are command, app-open, app-front, network, cpu, power, wifi, display and schedule. taurine help lists them all.

Homebrew installs it for you. With the DMG, link it once:

sudo mkdir -p /usr/local/bin && sudo ln -sf /Applications/Taurine.app/Contents/Helpers/taurine /usr/local/bin/taurine

Other apps and scripts can open taurine://on, taurine://on?for=1h30m, taurine://forever, taurine://until?time=18:00, taurine://off and taurine://toggle.

Privacy

Taurine works on your Mac and sends nothing anywhere. It only goes online to check GitHub for updates. It has no analytics or tracking, and no account. Location permission is only asked for by the Wi-Fi trigger, because macOS won't tell apps the network's name without it; Taurine never looks at where you are. Your settings and stats stay on your Mac.

Build from source

You need Xcode 26 and XcodeGen.

git clone https://github.com/RossNicholson/taurine.git
cd taurine
make build   # or: make test

make run signs with the maintainer's Developer ID. To build your own copy, open the project with xcodegen generate && open Taurine.xcodeproj and pick your own team. Closed-lid mode needs a signed copy: the helper only talks to a Taurine signed by the same team.

Credits

The look comes from HouseStyle, shared with my other Mac apps: BrewDock, ClawdBar, Mop Up, KeyBar, Repo Radar and MacPing. It uses Barlow Condensed and Geist Mono, both under the SIL Open Font Licence.

Support

Taurine is made by Ross Nicholson. For help, see the support page or email support@rossnicholson.dev.

If Taurine kept your Mac going, you can buy me a coffee ☕

Buy Me a Coffee


Licence

MIT. See LICENSE.

About

Mac menu bar app that keeps your Mac awake: timers, triggers (Claude Code, builds, apps, downloads), command line, Shortcuts and closed-lid mode

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages