spotify
Installation
SKILL.md
Spotify Control
Overview
Control Spotify playback from the terminal. Requires Spotify Premium.
spotify_player (recommended TUI)
Install
# macOS
brew install spotify_player
# Linux (cargo)
cargo install spotify_player
# Or download binary from GitHub releases
Usage
# Launch TUI
spotify_player
# Commands (inside TUI)
# Space — play/pause
# n — next track
# p — previous track
# / — search
# q — quit
spotifyd + spotify-tui (alternative)
Install
# spotifyd (daemon)
brew install spotifyd # macOS
# spotify-tui (control)
brew install spotify-tui
Usage
spotifyd --no-daemon & # Start daemon
spt # Launch TUI
Spotify Web API (programmatic)
Get current track
curl -s -H "Authorization: Bearer $SPOTIFY_TOKEN" \
https://api.spotify.com/v1/me/player/currently-playing \
| jq -r '"\(.item.name) - \(.item.artists[0].name)"'
Play/Pause
# Pause
curl -s -X PUT -H "Authorization: Bearer $SPOTIFY_TOKEN" \
https://api.spotify.com/v1/me/player/pause
# Play
curl -s -X PUT -H "Authorization: Bearer $SPOTIFY_TOKEN" \
https://api.spotify.com/v1/me/player/play
Search
curl -s -H "Authorization: Bearer $SPOTIFY_TOKEN" \
"https://api.spotify.com/v1/search?q=bohemian+rhapsody&type=track&limit=5" \
| jq -r '.tracks.items[] | "\(.name) - \(.artists[0].name)"'
Tips
spotify_playerauto-handles auth via browser OAuth flow- Config:
~/.config/spotify-player/app.toml - For headless servers, use
spotifyddaemon - Spotify Premium required for playback control
Related skills
More from phuetz/code-buddy
blender
Blender 3D modeling, animation, and rendering automation via Python bpy scripting and CLI
19figma
Automate Figma design workflows via REST API, Plugin API, and MCP integration
3github
Interact with GitHub using the gh CLI for issues, PRs, CI runs, releases, and API queries
3gif-search
Search and download GIFs from Tenor and Giphy APIs
3ableton-live
Ableton Live music production automation via OSC protocol, MIDI, and Max for Live
3gitlab
GitLab DevOps platform with CI/CD pipelines, API automation, and glab CLI control
3