apple-music | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / apple-music

apple-music

maintained by clawdbot

star 229 account_tree 71 verified_user MIT License
bolt View GitHub

name: apple-music description: Search Apple Music, add songs to library, manage playlists, control playback and AirPlay. metadata: {"clawdbot":{"emoji":"🎵","os":["darwin"],"requires":{"bins":["node","curl"]}}}

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

  • search "query" [--type songs|albums|artists] [--limit N]
  • library add <song-id>
  • playlists [list|create "Name"|add <playlist-id> <song-id>]

Config

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

Errors

  • 401: Token expired, re-run setup
  • 403: Check Apple Music subscription
  • 404: Invalid ID or region-locked

Setup Issues

  • 404 on auth page: Setup script auto-fixes with HTTP server verification
  • No token in browser: Restart setup.sh
  • Browser won't open: Manually open printed URL (Chrome recommended)

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 229
GitHub Forks 71
Created Jan 2026
Last Updated 5 months ago
tools tools productivity tools

Related Skills

planning-with-files
chevron_right
agent-browser
chevron_right
building-agents
chevron_right
notebooklm
chevron_right
grafana
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.