Apple music

From sundial-org/awesome-openclaw-skills · View interactive version

Apple music is an AI agent skill from the GitHub repository sundial-org/awesome-openclaw-skills. Search Apple Music, add songs to library, manage playlists, control playback and AirPlay.

How to use this skill

Skill file

Apple Music

Control Apple Music via MusicKit API and AppleScript. Path: ~/.clawdbot/skills/apple-music/

Local (No Setup)

Playback: ./apple-music.sh player [now|play|pause|toggle|next|prev|shuffle|repeat|volume N|song "name"]

AirPlay: ./apple-music.sh airplay [list|select N|add N|remove N]

API (Setup Required)

Requires Apple Developer account ($99/yr) + MusicKit key.

Setup

Portal steps first:

  1. developer.apple.com → Keys → Create MusicKit key → Download .p8
  2. Note your Key ID and Team ID

Then run setup:

./launch-setup.sh  # Opens Terminal for interactive setup

The launcher opens Terminal.app and runs the setup script there. Enter your .p8 path, Key ID, Team ID, then authorize in browser and paste the token.

⚠️ Agents: Always use ./launch-setup.sh to open Terminal. Don't run setup.sh through chat (requires interactive input).

Commands

Config

config.json stores tokens (valid ~6 months). Re-run ./setup.sh if auth fails.

Errors

Setup Issues

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.