Apple Music TUI and CLI for macOS
___ __ __ ___ _
/ _ | ___ ___ / /__ / |/ /_ _____ (_)___
/ __ |/ _ \/ _ \ / / -_) / /|_/ / // (_-</ / __/
/_/ |_/ .__/ .__/_/\__/ /_/ /_/\_,_/___/_/\__/
/_/ /_/
Terminal UI and CLI for Apple Music on macOS
Site: musictui.com. Demo video, feature tour, install guide.


Control Apple Music, AirPlay speakers, and AirPods from the terminal. Multi-room playback with verified routing, library browsing (artists, albums, songs), catalog and library search, playlists, radio stations, and a venue equalizer. Cover art renders as true pixels on Kitty, WezTerm, Ghostty, and iTerm2.
music # the TUI
music play --album "Kid A" # play an album (bounded; needs Autoplay off)
music speaker kitchen 60 # route to a speaker, set its volume
music search "deep house 2026" # search the full catalog
music eq Nightclub # venue EQ preset
Everything is scriptable and there is no daemon. An optional Claude Code plugin adds natural-language control on top of the same CLI.
Three Ways to Use It
| Layer | How | Setup | Token cost |
|---|
CLI + TUI (music, music now, music speaker) | Terminal commands, interactive shell, scriptable | Build from source | None |
CLI + API (music search, music discover) | Catalog and discovery (your own library needs no key) | + Apple Developer account | None |
Natural language (/music play Kid A in the kitchen and living room at 60%) | Everything in words: playback with routing, search, playlists, radio, discovery | Build CLI from source | Normal |
There are no per-action slash commands. /music (the skill) is the single entry point, and bare transport belongs to the keys your Mac already has.
Install
Homebrew
brew install anthonymaley/musictui/musictui
That installs the music binary: the TUI, playback, AirPlay routing, volume, and the equalizer. Homebrew pours a prebuilt binary on Macs running macOS 15 or newer, Apple Silicon and Intel, so no toolchain. On macOS 14 it builds from source, which needs Swift 5.9+ (the Command Line Tools are enough).
Claude Code plugin (optional)
Adds natural-language control on top of the same CLI. Everything below works without it.
# Add the marketplace
/plugin marketplace add anthonymaley/musictui
# Install the plugin
/plugin install music@musictui
Claude Desktop App (Cowork)
- Click + next to the prompt box
- Select Plugins
- Choose Add plugin
- Browse and select Apple Music
Build the CLI (one command, no account needed)
The plugin drives the music CLI, so build it once after installing (Swift 5.9+, ships with Xcode):
# The trailing version segment changes on each plugin update
cd ~/.claude/plugins/cache/musictui/music/*/
scripts/install.sh
That unlocks playback, multi-room AirPlay routing, volume, the TUI, and the status line. No Apple Developer account required.
Update
# CLI
claude plugin update music@musictui
# Desktop: Manage plugins → Update
After updating the plugin, rebuild the CLI: scripts/install.sh
Uninstall
# Remove the plugin
claude plugin uninstall music@musictui
# Remove the CLI binary and all config (auth keys + tokens)
rm -f ~/.local/bin/music
rm -rf ~/.config/music
Desktop: Manage plugins → remove Apple Music. The venue EQ presets the plugin created in Music (Nightclub, Dungeon, …) live in Music's own Equalizer; delete them there if you want them gone.
Advanced Features (optional, requires Apple Developer account)
For catalog search, library management, playlists via API, and music discovery, you also need:
- An Apple Developer account ($99/year at developer.apple.com)
- A MusicKit key configured via guided setup
# Guided auth setup: walks you through creating a MusicKit key
music auth setup
# Get your user token (opens browser, auto-saves)
music auth
# Verify
music auth status
Where credentials live
Auth lives in ~/.config/music/, as plain files (not the macOS Keychain, same convention as aws and gh):