cue

Stable v1.0.0

Unified command-line Spotify controller with timed sessions

Control Spotify playback through intelligent queuing, contextual listening modes, and timed sessions. Features automatic background server and history tracking.

Quick Start

cue provides smart Spotify control from the command line with timed sessions, automatic background server, and pre-configured listening modes.

Basic Usage
$cue play "Bohemian Rhapsody"
Playing: Bohemian Rhapsody - Queen Duration: full track (5:55) Session ends: --
$cue play "jazz piano" 30m
Playing: Jazz Piano Trio - Various Duration: 30 minutes Session ends: 14:45
$cue focus
Starting focus mode (2h) Playing: Lo-Fi Beats - Instrumental Energy: low, Tempo: moderate

Installation

From PyPI

pip
$pip install cue
Successfully installed cue-1.0.0
$cue --version
cue 1.0.0

From Source

Source
$git clone https://github.com/tenseleyFlow/cue.git
$cd cue && pip install -e .

From RPM

DNF
$sudo dnf install cue

Spotify Setup

cue requires Spotify Premium and API credentials:

  1. Go to Spotify Developer Dashboard
  2. Create a new application
  3. Add http://localhost:8080/callback to Redirect URIs
  4. Copy your Client ID and Client Secret
  5. Set environment variables:
Environment
$export SPOTIFY_CLIENT_ID='your_client_id'
$export SPOTIFY_CLIENT_SECRET='your_client_secret'
$cue health
Server: running Spotify: authenticated Device: Desktop - active

First Run

On first use, cue opens a browser for Spotify authorization:

Authorization
$cue status
Opening browser for Spotify authorization... Waiting for callback... Authorization successful! No active playback
$cue play "your favorite song"
Playing: Your Favorite Song - Artist Duration: full track

Dependencies

Requirements

  • Python 3.8+
  • Spotify Premium - Required for playback control
  • click, requests, flask, spotipy