Install
openclaw skills install spotify-playlistBuild and manage Spotify playlists from natural language requests. Search tracks/artists/albums, create playlists, manage tracks, view listening history. Use...
openclaw skills install spotify-playlistBuild playlists from natural language using the Spotify Web API. Updated for the February 2026 API changes (Dev Mode).
requests libraryhttp://127.0.0.1:8765/callback (must be 127.0.0.1, not localhost - Spotify blocks localhost)python3 scripts/auth.py --client-id <ID> --client-secret <SECRET>
python3 scripts/auth.py --client-id <ID> --client-secret <SECRET> --code-url "<FULL_REDIRECT_URL>"
Tokens are saved to ~/.openclaw/workspace/config/.spotify-tokens.json and auto-refresh on 401.
All commands in scripts/spotify.py. All output JSON.
# Search (tracks, artists, or albums)
python3 scripts/spotify.py search "bohemian rhapsody" --limit 5
python3 scripts/spotify.py search "Bonobo" --type artist --limit 3
python3 scripts/spotify.py search "Moon Safari" --type album --limit 3
# Create playlist
python3 scripts/spotify.py create "Rainy Sunday" --description "Chill vibes" --private
# Add/remove tracks (by Spotify URI)
python3 scripts/spotify.py add <playlist_id> spotify:track:xxx spotify:track:yyy
python3 scripts/spotify.py remove <playlist_id> spotify:track:xxx
# List playlists
python3 scripts/spotify.py my-playlists --limit 10
# View playlist contents
python3 scripts/spotify.py playlist-tracks <playlist_id> --limit 50
# Listening history
python3 scripts/spotify.py top-tracks --time-range short --limit 20
python3 scripts/spotify.py recently-played --limit 20
# Profile
python3 scripts/spotify.py me
When a user asks for a playlist:
top-tracks and recently-played to personalize if relevanttop-tracks --time-range short shows what the user's been into recently (last 4 weeks)top-tracks --time-range long shows all-time favourites/tracks to /items (already handled in scripts)Combine with OpenClaw cron for automated playlists: