Skip to content
Back to skills

Apple Music

ASecurity

Search Apple Music, add songs to library, manage playlists, control playback and AirPlay.

  • 651 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 10, 2026
toolsbashnodeapi

Works with

  • terminal
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add sundial-org/awesome-openclaw-skills --skill apple-music --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Apple Music?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Apple Music
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/sundial-org-apple-music/badge)](https://www.skillsdirectory.com/skills/sundial-org-apple-music)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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:**
```bash
./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)

Files in this skill

  • SKILL.md1.7 KB
  • apple-music.sh34.9 KB
  • auth.html9.7 KB
  • launch-setup.sh259 B
  • lib/generate-token.js3.4 KB
  • setup.sh4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.