Minimal CLI for managing Apple Music playlists. Built for AI agents — clean output, no bloat.
- macOS
- Node.js 18+
- Apple Music subscription
npm install -g songwisesongwise auth login --manualThis fetches the developer token automatically, then prompts you to paste your Music User Token:
- Go to music.apple.com and sign in
- Open browser console (
Cmd+Option+J) - Run:
MusicKit.getInstance().musicUserToken - Copy the output and paste into the terminal
Check auth:
songwise auth status| Command | Description |
|---|---|
songwise auth login --manual |
Authenticate (recommended) |
songwise auth status |
Check auth status |
songwise auth logout |
Clear tokens |
| Command | Description |
|---|---|
songwise library songs |
List library songs |
songwise library search "query" |
Search library |
| Command | Description |
|---|---|
songwise playlist list |
List playlists |
songwise playlist create "Name" |
Create playlist |
songwise playlist delete <id> |
Delete playlist |
songwise playlist tracks <id> |
List tracks |
songwise playlist add <playlist-id> <song-id> |
Add track |
songwise playlist remove <playlist-id> <song-id> |
Remove track |
| Command | Description |
|---|---|
songwise song remove <song-id> |
Remove from library |
All commands support --json for scriptable output:
songwise playlist list --json
songwise library songs --json
songwise playlist tracks p.abc --jsonSee AGENTS.md for detailed agent workflows, ID formats, and patterns.
- No playlist rename
- No track reordering
- macOS only
MIT