patrick.ostertag

patrick@fribourg:~$ staygroov --help

staygroov help

staygroov is a small daemon for your Mac's menu bar. It shows what's playing and what you've listened to, the backstage of the artist and album, and writes a haiku on your Mac. Here is how to set it up, and what to do when something doesn't show up.

← about staygroov privacy policy version: 1.1 beta updated: 20 October 2026

ls help/

staygroov --version 1.1

What's new in 1.1 (beta)

Version 1.1 adds the Apple Watch to the Mac's displays (iPhone, iPad, Apple TV), and a library that builds itself from what you play, in your iCloud. No account is needed. Everything is explained in the user guide.

staygroov --init

First launch

You need macOS 26 or later. staygroov has no Dock icon: it lives in the menu bar, as a record. The record is full while music plays and empty when it stops.

On first launch, a setup assistant walks you through it, one screen at a time:

  1. Permissions: what macOS will ask, and why. The local network, to find your Sonos speakers; Apple Music and Spotify, to see what's playing and control playback from the menu.
  2. Speakers: finds the Sonos speakers on your network.
  3. Accounts: Last.fm and ListenBrainz, both optional.
  4. Scrobbling: optional, off by default.
  5. On this Mac: Apple Intelligence for the haiku, translation languages.
  6. Full screen: the shortcut; full screen only opens when you ask.

Run it again any time: Settings → About → Run the setup assistant again…

staygroov login

Connecting your services

In Settings → Accounts, or in the assistant. Every account is optional: with Sonos speakers or Apple Music alone, staygroov already works.

Last.fm

Last.fm gives each user a free, personal API key. You create yours once; the Last.fm tile walks you through it in three steps:

  1. Open the Last.fm form. Signed in to Last.fm, enter staygroov as the application name, leave the other fields empty and submit.
  2. Copy the API key and the Shared secret shown by Last.fm into the two fields.
  3. Save and authorize. The Last.fm authorization page opens in your browser: click Yes, allow access, then come back to staygroov. Your name shows up with a green check.

You never type your Last.fm password into staygroov. Your key, your secret and the session key stay in your Mac's keychain. Disconnect ends the session; Remove also deletes your API key. You can revoke access on last.fm too (Settings → Applications).

ListenBrainz

  1. Click Connect: your ListenBrainz settings page opens.
  2. Copy your User token.
  3. Come back to staygroov and click Paste. The app checks the token and shows your name.

The token stays in your keychain; My API key lets you change or remove it.

Mastodon and Bluesky

Only needed to share what you're listening to. See Sharing.

sonos --discover

Sonos speakers

staygroov reads your speakers directly on your local network: no Sonos account, no cloud, no need for the Sonos app to be open.

To make it work:

  1. Your Mac and your speakers are on the same network. A guest network, a separate VLAN or Wi-Fi client isolation hide them.
  2. When macOS asks whether staygroov may find devices on your local network, choose Allow. If you declined: System Settings → Privacy & Security → Local Network → turn staygroov on.
  3. If your Sonos app has a UPnP setting, keep it on.
  4. If the macOS firewall asks whether staygroov may accept incoming connections, choose Allow: your speakers use them to report every change instantly. If you deny, everything still works, a little slower (checked every 2 s).

To check: Settings → Sources → Test the speakers. A healthy result looks like this:

ok  Bonjour: 9 speakers in 5 rooms.
ok  Port 1400: all 9 speakers answer.
ok  Topology: 4 groups (Living Room, Kitchen, TV, Bedroom).
ok  Living Room: Massive Attack — Teardrop
--  TV: playing the TV, ignored.
MessageWhat to do
No speaker foundCheck points 1 and 2 above. Otherwise, enter one speaker's IP address as Fallback address (Settings → Sources).
No speaker answersA firewall, a VLAN or a guest network is in the way: put the Mac on the speakers' network.
Groups could not be readCheck the UPnP setting in the Sonos app.
Radio needs Last.fmA song on air is looked up in the Apple Music catalog first; Last.fm is the fallback. Connect it (see above) if a station isn't recognised without it.

You'll find a speaker's IP address in the Sonos app (Settings → System → About My System) or in your router.

What is shown, and what isn't

staygroov --sources

Apple Music and Spotify on this Mac

On by default (Settings → Sources). staygroov shows what the Apple Music app and Spotify are playing on this Mac, with the audio output: AirPlay, Bluetooth, the Mac's own speakers…

staygroov --fullscreen

Full screen

In Settings → Full screen:

staygroov --scrobble

Scrobbling

Optional and off by default (Settings → Scrobbling).

staygroov --haiku

Haiku and translation

staygroov --share

Sharing on Mastodon or Bluesky

Connect once, in Settings → Accounts:

You can revoke access at any time, in Mastodon or Bluesky, or with Disconnect.

Then: Share on Mastodon or Bluesky… in the menu (⇧⌘M). You get an editable preview with the track, the album, the haiku, hashtags and the artwork with its alt text. Pick the network, review, and nothing goes out until you click Post. On Bluesky the text fits in 300 characters: with a very long title, the haiku goes first. If a network has ended the session, staygroov simply asks you to connect again.

staygroov --role

A hub and displays

An always-on Mac (a Mac mini, say) can act as the hub: it reads every source, writes the haiku and is the only one that scrobbles. Your other Macs become displays: they show what the hub publishes on the local network and read nothing by themselves. By default, each Mac is Standalone.

  1. On the Mac mini: Settings → Role → Hub (always on). Turn on Open at login, and note the six-digit pairing code.
  2. On the iMac or the MacBook: Settings → Role → Display. The hub shows up; type the code once.
  3. For the hub to come back by itself after a power cut: System Settings → Users & Groups → automatic login.

Play/pause, next and Love on a display act on the hub. If the hub goes quiet for more than two minutes, the display can show its own sources (without scrobbling) and says so in the menu. New code and Forget all displays, on the hub, cut off every display already paired.

Several people in the house. The hub keeps the household log: everything that plays in the house. Everyone sees only their own Memory, in their iCloud: what played while their app was open, what their iPhone plays away from home, their own imports. The hub's Last.fm account fills nobody's Memory. On iPhone and iPad the hub is optional: Skip under the code request, and pairing later in Settings → Hub.

defaults read staygroov

Useful settings

SettingWhere
Refresh rate: online services 15 s to 5 min (30 s by default), speakers 3 s to 1 min (10 s by default)Settings → Sources
A speaker's fallback addressSettings → Sources
Refresh nowMenu, ⌘R
App and content language, translation languagesSettings → Language, then restart

staygroov --doctor

Troubleshooting

Last.fm doesn't show up. Settings → Accounts → Last.fm: if the tile asks for a key, follow its three steps (see above), then Connect.

“Unknown user.” Check the spelling of your Last.fm or ListenBrainz username.

The song on the radio doesn't show up. The station must send “ARTIST - TITLE”, and the song must exist in the Apple Music catalog (or, as a fallback, on Last.fm, if it's connected). During a show, only the station's logo appears: that's on purpose.

A track stays “now playing” after it stopped. Last.fm sometimes keeps the announcement until the track's theoretical end. staygroov removes it as soon as another track is scrobbled, or as soon as Sonos stops.

No haiku. Apple Intelligence is unavailable or off, or the haiku is turned off in Settings → Full screen.

Start over on iPhone or iPad. Settings → Detailed history → Erase my Memory: your Memory leaves your iCloud, on all your devices (an export is offered first). The hub's household log isn't touched; nobody can empty it from a screen.

Start over. In Settings → Accounts, disconnect each account (and Remove your Last.fm key). Quit staygroov, then delete the folder ~/Library/Containers/ch.patrickostertag.nowplayingd. Details in the privacy policy.

cat PRIVACY.md

Privacy

staygroov collects no data. No server, no account with me, no tracking, no analytics. The app talks directly to your speakers and to the services you choose. Your credentials stay in your Mac's keychain; the haiku is written and texts are translated on your Mac. Your listening library lives in your iCloud, nowhere else, and each person in the household sees only their own; the microphone turns on only when you tap “Identify the music”. Bluetooth on the iPhone and iPad, only if you allow it, puts the speaker that's probably closest first; the rooms you teach it stay on the device.

Details, service by service: privacy policy.

staygroov --contact

A question, a bug, an idea? Reach me on Mastodon. To help with a diagnosis, include the result of Test the speakers (select the text and copy it) and your version (Settings → About).

staygroov is in beta. Want to test it? Here's how.