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/
- What's new in 1.1 (beta)
- First launch
- Connecting your services
- Sonos speakers
- Apple Music and Spotify on this Mac
- Full screen
- Scrobbling
- Haiku and translation
- Sharing on Mastodon or Bluesky
- A hub and displays
- Useful settings
- Troubleshooting
- Privacy
- Contact
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.
- Play again an album, a track or a work, on Sonos at home or in Apple Music on the go; in a list, tapping a track plays it. The list of speakers makes it easy to pick yours (Settings → Sonos).
- Choose the source shown: tap the label above the title (automatic, the hub, Sonos, this iPhone, Last.fm). A choice made by hand stays chosen.
- Identify the music with Shazam when nothing plays on your sources: the microphone turns on only when you tap the button, for a few seconds.
- Discogs and Plex, optional: your records and the albums on your server join the library.
- Plex followed by the hub: what the Plex app plays on the Apple TV or iPhone, or Plexamp, is followed, enriched and scrobbled like a Sonos play, each play for the person of its Plex account, even away from home. Connect Plex on the hub's Mac and on your iPhone.
- Your own scrobble server (Maloja, Koito), on top of Last.fm, ListenBrainz and Libre.fm.
- Your radios: a radio station playing on Sonos joins the library (the “Radios” section) with the first song recognised; one tap opens its card, where it starts again (Sonos, the device or AirPlay), and it gets a pin on the map, where it broadcasts from.
- The “Play” tab (iPhone, iPad): your Sonos radios, your radios, then the Apple Music catalog.
- On the Apple TV, “Play on this Apple TV” plays on the Apple TV itself (TV, soundbar, HomePod), with an Apple Music subscription.
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:
- 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.
- Speakers: finds the Sonos speakers on your network.
- Accounts: Last.fm and ListenBrainz, both optional.
- Scrobbling: optional, off by default.
- On this Mac: Apple Intelligence for the haiku, translation languages.
- 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:
- Open the Last.fm form. Signed in to Last.fm, enter
staygroovas the application name, leave the other fields empty and submit. - Copy the API key and the Shared secret shown by Last.fm into the two fields.
- 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
- Click Connect: your ListenBrainz settings page opens.
- Copy your User token.
- 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:
- Your Mac and your speakers are on the same network. A guest network, a separate VLAN or Wi-Fi client isolation hide them.
- 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.
- If your Sonos app has a UPnP setting, keep it on.
- 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.
| Message | What to do |
|---|---|
| No speaker found | Check points 1 and 2 above. Otherwise, enter one speaker's IP address as Fallback address (Settings → Sources). |
| No speaker answers | A firewall, a VLAN or a guest network is in the way: put the Mac on the speakers' network. |
| Groups could not be read | Check the UPnP setting in the Sonos app. |
| Radio needs Last.fm | A 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
- Shown: streaming started from the Sonos app (Apple Music, Spotify, Tidal, Deezer, Qobuz…), your library, and radio. On the radio, the station's logo shows, then the Apple Music cover as soon as a song is recognised, which leaves out jingles and talk; Sonos Radio ads show as “Advertisement”, never recorded nor scrobbled.
- Shown without being scrobbled: AirPlay and Spotify Connect, which the app that started the music already scrobbles.
- Ignored: line-in (a turntable, say) and the TV: there's nothing to read.
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…
- macOS asks once whether staygroov may control Apple Music and Spotify. With that permission, it sees what's already playing at launch, and the menu's play, pause and next buttons work. Without it, a track only shows up at the first change (play, pause, next).
- When Apple Music sends sound to an AirPlay speaker through its own AirPlay button, that choice isn't visible to other apps.
- Tidal, Deezer, Qobuz, YouTube Music: their apps can't be read from the Mac. Link them to Last.fm in their own settings, and staygroov will see those listens through your account.
- A Spotify track's artwork comes from Spotify.
- With a free Spotify account, ads are recognised (staygroov asks Spotify every 4 s while it plays): during an ad, the previous track stays on screen, marked “Spotify ad”, and nothing is recorded or scrobbled.
staygroov --fullscreen
Full screen
- ⌥⌘N, or “Full screen” in the menu. Esc or a click closes it. It only opens when you ask, never on its own: you can keep working normally.
- Big artwork, artist and album, the animated haiku and, along the bottom, the backstage: cards picked at random from Wikipedia, Wikidata, Wikimedia Commons, Last.fm, MusicBrainz and the Cover Art Archive.
- On a large display (iMac, Studio Display), your history appears in a column on the right.
In Settings → Full screen:
- all displays, or the main one only;
- Keep the display awake and Keep the screen saver away: on by default, they only apply while in full screen. macOS counts idle time once for both, so keeping only the screen saver away also delays display sleep;
- the backstage cards and the haiku can be turned off.
staygroov --scrobble
Scrobbling
Optional and off by default (Settings → Scrobbling).
- What: the Sonos speakers, Apple Music, and Spotify (off by default: Spotify scrobbles by itself when it's linked to Last.fm).
- Where: Last.fm, ListenBrainz, Libre.fm or your own server (Maloja, Koito), connected in Settings → Accounts.
- When: the track is announced as “now playing” when it starts, then kept at half its length, or after 4 minutes if it's long (tracks over 30 seconds only), dated from its start and sent when it ends. On the radio, it is marked as not chosen by you.
- No duplicates: right before writing, staygroov reads your latest listens. If another app has already scrobbled the same track, it sends nothing. It also never sends the same title twice within 10 minutes.
- Offline: scrobbles wait on your Mac's disk and go out in order when the connection is back.
- Several Macs: turn scrobbling on for one of them only, or use a hub.
staygroov --haiku
Haiku and translation
- The haiku is written on your Mac by Apple Intelligence, in your language or, if you choose so in Settings, in the track's. You need a Mac that supports Apple Intelligence, with it turned on (System Settings → Apple Intelligence & Siri). Otherwise, there's simply no haiku.
- Texts (Wikipedia, bios) appear in your language when they exist. Otherwise they are translated on your Mac by Apple's Translation framework and marked “Translated on device”. Download the languages you need in Settings → Language (English first: most bios are in English).
- Artist, album and track names are never translated.
staygroov --share
Sharing on Mastodon or Bluesky
Connect once, in Settings → Accounts:
- Mastodon: enter your server (for example
mastodon.social) and click Connect. Your server's page opens in the browser: authorize staygroov, and you're done. - Bluesky: enter your handle (for example
you.bsky.social) and click Connect. The Bluesky page opens: click Accept. No password goes through staygroov.
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.
- On the Mac mini: Settings → Role → Hub (always on). Turn on Open at login, and note the six-digit pairing code.
- On the iMac or the MacBook: Settings → Role → Display. The hub shows up; type the code once.
- 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
| Setting | Where |
|---|---|
| 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 address | Settings → Sources |
| Refresh now | Menu, ⌘R |
| App and content language, translation languages | Settings → 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.