Sign in as a Carbon or Silicon

For Carbons and Silicons on macOS

Spotify from the command line, with a cue for every moment.

Play, search, read the lyrics of any song, queue and manage playlists and podcasts from a terminal or a Silicon, while Spotify stays in the background. Set checkpoints like 30 seconds left, halfway or song over, and get a Ting when they arrive.

curl -fsSL https://spotify.unlikefraction.com/install.sh | sh

Installs spotify, spotify-daemon and spotify_player, and starts what needs to run. It never logs you in. Then: spotify doctor.

Every control

Play anything by link, URI or search. Pause, skip, seek, volume, shuffle, repeat, likes, devices, playlists, podcasts, and a real queue you can reorder and trim.

Terminalsh
spotify play --search 'arctic monkeys 505'
spotify seek 50%
spotify queue add spotify:track:… --next
spotify playlist create 'Deep focus'

Lyrics of any song

The song playing now, or any track by URI, link or id. Nothing has to play, and Spotify does not need to be open. Only know its name? Search for the track, then pass its URI.

Terminalsh
spotify lyrics
spotify lyrics \
  spotify:track:0BxE4FqsDD1Ot4YuBXwAPp
spotify search 'bohemian rhapsody' \
  --type track

Find anything

Ask in plain words, offline. spotify alone shows what is set up and what to try, --help groups every command by goal with an example, and each result suggests what comes next. Tab completion for zsh, bash, fish and PowerShell, with install lines that work as they are.

Terminalsh
spotify how "play my liked songs shuffled"
spotify --help
spotify completions --help

Out of your way, and verified

Every start goes through the Spotify Web API first, so Spotify.app stays in the background, a song's album plays on after it, and a speaker you picked keeps playing. Every effect is checked against Spotify.app; if AppleScript has to step in, your app gets the focus back. The result says which path worked and why.

JSONjson
{"action": "play", "via": "web_api",
 "playback": {"state": "playing", …}}

Triggers through Ting

Checkpoints by time left, time played, percentage, song end or song change. Firings are durable, retried, never duplicated, and carry your note and ISI.

Terminalsh
spotify trigger add --remaining 30s \
  --note 'wrap up the call'
spotify trigger add --end --scope every

Describes itself

One JSON manifest holds every command: arguments with types, allowed values and defaults, examples, output fields, error codes with exit codes, what each needs (daemon, Spotify.app, login, Premium) and whether it changes anything.

Terminalsh
spotify commands --json | jq \
  '.commands[] | select(.path == "lyrics")'

For Silicons

  1. spotify accounts --json → {"app_id": "spotify", …}
  2. silicon-apps install silicon-accounts — silicon-accounts, the Silicon Accounts CLI, if you do not have it
  3. silicon-accounts login --app spotify — prints a short-lived token (SLT)
  4. spotify login '<SLT>' — signs in to your Carbon or Silicon account
  5. spotify ting register — enable Ting delivery for your account
  6. spotify trigger add --elapsed 50% — you receive spotify.trigger.fired

New to Silicon Accounts, Silicons, SLTs or Ting? Concepts explains each in a sentence or two.

Every command documents itself with runnable examples (spotify <command> --help). spotify how "<task>" --json finds the command for a task, spotify commands --json describes every command, argument, output field, error and requirement (the manifest), guides are bundled offline (spotify docs <topic> --section '<heading>'), and every error says what failed, why, and the exact fix.

Quick start

spotify docs usage

Triggers

spotify docs triggers

Playback control

spotify docs playback

The queue

spotify docs queue

Authentication

spotify docs auth

Configuration

spotify docs config

Errors

spotify docs errors

The daemon

spotify docs daemon

Ting integration

spotify docs ting

Building on it

spotify docs development

Backend API

spotify docs api

Versioning

spotify docs versioning