Open source · macOS 13+

Your workflow
deserves the right soundtrack

AppTune plays your music automatically when you open apps. Open Xcode, hear focus music. Open Spotify, done.

Install with Homebrew
# tap the repository
$ brew tap HitarthTrivedi/apptune
# install AppTune
$ brew install --cask apptune

Free forever · No account required · macOS Ventura+

Apple Music Spotify App-triggered playback Menu bar app Login item SwiftUI OAuth 2.0 Keychain storage NSWorkspace SMAppService Open source macOS native Apple Music Spotify App-triggered playback Menu bar app Login item SwiftUI OAuth 2.0 Keychain storage NSWorkspace SMAppService Open source macOS native

How it works

Three steps.
Then forget about it.

01
Install AppTune
One Homebrew command. AppTune lives in your menu bar and starts at login automatically.
30 seconds
02
Connect your music
Sign in to Spotify with OAuth or connect Apple Music. Your real playlists load instantly.
Apple Music + Spotify
03
Set your rules
Choose which app triggers which playlist. Open Xcode → Deep Focus. Open Figma → Lo-fi. Done.
Fully automatic
0
Background CPU usage
2
Music services supported
∞
Rules you can create

Features

Built for macOS.
Feels native.

App-triggered playback
AppTune watches every app launch and focus event system-wide using NSWorkspace. The moment you open an app that has a rule, your music starts — instantly, silently, automatically.
→App launched: Xcode
Matching rule found...
→Playing "Deep Focus" on Spotify
→App launched: Notion
Matching rule found...
→Playing "Lo-fi Beats" on Apple Music
Spotify OAuth
Sign in with your real Spotify account. AppTune fetches all your personal playlists via the Web API and stores your token securely in the macOS Keychain.
Apple Music ready
Your full Apple Music library is available instantly. No API keys, no setup — AppTune uses the native Music app via AppleScript bridge.
Lives in your menu bar
AppTune has zero Dock presence. It runs silently as a menu bar app, launching at login via SMAppService — the modern macOS Login Items API.
Two trigger modes
Trigger music on app launch, on app focus, or both. Each rule is independently configurable so you have complete control over when music plays.

Get started

One command.
That's it.

Free, open source, and built for macOS.

$ brew tap HitarthTrivedi/apptune
$ brew install --cask apptune

Requires Homebrew · macOS Ventura 13.0 or later · Apple Silicon + Intel

<<<<<<< HEAD ======= >>>>>>> 4025d5d (Add logo to nav and footer and is now made responsive)