spotify

Control Spotify playback from the terminal via CLI and Web API.

30|5|Updated Jul 25, 2025
One-click install
npx skills add https://github.com/phuetz/code-buddy --skill spotify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spotify
Source: https://github.com/phuetz/code-buddy/tree/main/.codebuddy/skills/bundled/spotify
Command: npx skills add https://github.com/phuetz/code-buddy --skill spotify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables terminal-based Spotify playback control, allowing developers and power users to manage music without leaving the command line.

Core Features & Use Cases

  • CLI control: Use spotify_player for a responsive TUI and quick playback commands.
  • Daemon + UI option: Combine spotifyd with spotify-tui for headless playback management.
  • Web API integration: Interact programmatically with the Spotify Web API to fetch current track, play/pause, and search tracks.

Quick Start

Launch spotify_player to open the TUI and control playback, or run spotifyd in the background with spotify-tui to manage playback from a terminal session. If using the Web API, obtain a valid OAuth token and make authenticated requests like curl -H "Authorization: Bearer $SPOTIFY_TOKEN" "https://api.spotify.com/v1/me/player/currently-playing".

Frequently Asked Questions about spotify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Spotify playback from the terminal?

You can control Spotify playback from the terminal by launching spotify_player for a TUI interface, or running spotifyd in the background with spotify-tui for headless playback management.

Can I use the Spotify Web API to fetch my currently playing track?

Yes, you can fetch your currently playing track via the Spotify Web API by obtaining a valid OAuth token and making authenticated requests to the /v1/me/player/currently-playing endpoint.

Do I need Spotify Premium to manage music via the command line?

Yes, you need a Spotify Premium subscription to manage playback control via the command line. A valid authentication method for the Web API is also required for programmatic interactions.

What is the best way to run terminal-based Spotify control on a headless server?

For headless server environments, the best approach is running spotifyd as a background daemon paired with spotify-tui to manage playback directly from your terminal session.

Does spotify_player support search and play/pause functions?

Yes, spotify_player supports common tasks including search, play, and pause. It provides a responsive TUI for quick playback commands and local workflow integration.