Control Spotify playback, browse your music library, and manage playlists β all from OpenClaw.
- Create a Spotify app at developer.spotify.com/dashboard
- Set redirect URI to
http://127.0.0.1:8989/login - Enable Web API
- Set redirect URI to
- Configure your client ID:
python3 scripts/spotify.py config --client-id YOUR_CLIENT_ID
- Authenticate (opens browser):
python3 scripts/spotify.py auth
| Command | Description |
|---|---|
now |
What's currently playing |
top-tracks |
Your top tracks (short/medium/long term) |
top-artists |
Your top artists |
recent |
Recently played |
playlists |
List your playlists |
search <query> |
Search tracks & artists |
play <query> |
Search and play |
pause / next / prev |
Playback control |
create-playlist <name> |
Create a new playlist |
devices |
List available devices |
raw <METHOD> <endpoint> |
Direct Spotify API access |
- Python 3.8+
- A Spotify account (free or premium)
- OpenClaw (optional β works standalone too)
MIT