Control Spotify playback from your terminal without opening the desktop app.
Write shell scripts to automate music playback, like playing a random song from a playlist.
Search for tracks and format the output for use in other command-line tools.
Integrate music control into a terminal-based workflow or development environment.
Requires Spotify API credentials (OAuth setup) and Rust toolchain installation.
Spotify TUI is a Spotify client for your terminal, written in Rust. Instead of opening the Spotify desktop app or web player, you control your music entirely through a keyboard-driven text interface in the command line. It connects to Spotify's official API, so you need a Spotify account (free or premium) and a brief one-time setup to register an API key. Once configured, you can browse your playlists, search for songs, play and pause tracks, like songs, toggle shuffle, and more, all without leaving the terminal. There is also a command-line interface for scripting: you can write a shell command to play a random song from a specific playlist, search for tracks with custom output formatting, or toggle playback from a script. The app is available on macOS, Linux (including Arch, Fedora, NixOS, and Void Linux), and Windows 10. You would use Spotify TUI if you prefer living in the terminal and want to control Spotify without the overhead of a graphical app, or if you want to script music playback as part of a workflow. It pairs well with spotifyd, a lightweight background Spotify daemon also mentioned in the README.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.