Control Apple Music from Your AI Agent with the Clawtunes Skill
Ever wished you could ask your AI assistant to play a song, skip tracks, or queue up a playlist without touching your keyboard? The clawtunes skill brings voice-friendly music control to Clawdbot, letting you manage Apple Music entirely through natural conversation.
What Problem Does This Solve?
Controlling Apple Music typically means switching apps, navigating menus, or at minimum hitting keyboard shortcuts. For hands-free workflows โ whether you're cooking, coding in deep focus, or just lounging โ this friction adds up. The clawtunes skill eliminates it by exposing every Apple Music function through a simple CLI that your AI agent can call.
Perfect for:
- Developers in flow state who don't want to break concentration
- Smart home enthusiasts who want voice-controlled music
- Anyone who'd rather say "play some jazz" than hunt through menus
Installation
First, install the skill:
npx clawhub@latest install clawtunesThen install the clawtunes binary via Homebrew:
brew tap forketyfork/tap && brew install clawtunesAlternatively, install via pip:
pip install clawtunesNote: This is macOS-only โ clawtunes uses AppleScript to communicate with the Apple Music app.
Configuration
No API keys or authentication needed. On first run, macOS will prompt for Automation permissions. Grant access in System Settings > Privacy & Security > Automation to allow Clawdbot to control Apple Music.
Usage Examples
Example 1: Play Music by Name
Tell your agent: "Play Bohemian Rhapsody"
Under the hood, the agent runs:
clawtunes -N play song "Bohemian Rhapsody"The -N (non-interactive) flag prevents prompts when there are multiple matches. If you get multiple results, the agent can use -1 to auto-select the first match.
Example 2: Control Playback and Volume
Natural commands like "pause the music", "skip this track", or "turn it up" map to:
clawtunes pause
clawtunes next
clawtunes volume +20Check what's currently playing with:
clawtunes statusExample 3: Playlist Management
Create themed playlists through conversation:
# Create a new playlist
clawtunes playlist create "Focus Mode"
# Add songs to it
clawtunes playlist add "Focus Mode" "Weightless"
clawtunes playlist add "Focus Mode" "Clair de Lune"
# Start playing
clawtunes play playlist "Focus Mode"Example 4: AirPlay Control
Switch output to your HomePod or other AirPlay devices:
# List available devices
clawtunes airplay
# Select a device
clawtunes airplay "Living Room HomePod"
# Switch back
clawtunes airplay "Living Room HomePod" --offPro Tips
-
Use specific names: If "play Yesterday" returns multiple matches, try "play Yesterday by The Beatles" for better accuracy.
-
Catalog vs Library: The
clawtunes catalog searchcommand browses Apple Music's streaming catalog, but you can only add songs to playlists if they're in your library. Add catalog items via the Apple Music app first. -
Shuffle and Repeat: Control playback modes with
clawtunes shuffle on/offandclawtunes repeat off/all/one. -
Love/Dislike: Train Apple Music's recommendations by having your agent run
clawtunes loveorclawtunes dislikeon the current track. -
Combine with other skills: Pair clawtunes with the Weather skill for context-aware playlists ("play something upbeat, it's sunny outside") or with Apple Reminders for music-based routines.
Conclusion
The clawtunes skill transforms Apple Music into a conversational interface. No more app-switching, no more hunting through playlists โ just tell your agent what you want to hear. It's one of those small quality-of-life improvements that makes AI assistance feel genuinely seamless.
Links:
Comments (0)
No comments yet. Be the first to comment!