π¦ ClawHub
Spotify Playlist Builder
by @codeaholicman
Build and manage Spotify playlists from natural language requests. Search tracks/artists/albums, create playlists, manage tracks, view listening history. Use...
βοΈ Configuration
1. Create an app at https://developer.spotify.com/dashboard
2. Set redirect URI to http://127.0.0.1:8765/callback (must be 127.0.0.1, not localhost - Spotify blocks localhost)
3. Run auth:
python3 scripts/auth.py --client-id --client-secret
4. Open the printed URL in a browser and authorize 5. If the callback page loads automatically, done. Otherwise copy the full redirect URL and run:
python3 scripts/auth.py --client-id --client-secret --code-url ""
Tokens are saved to ~/.openclaw/workspace/config/.spotify-tokens.json and auto-refresh on 401.
π Tips & Best Practices
top-tracks --time-range short shows what the user's been into recently (last 4 weeks)top-tracks --time-range long shows all-time favouritesTERMINAL
clawhub install spotify-playlist