A fast, standalone terminal music player in Rust: native Spotify streaming plus local, Subsonic, radio, and YouTube sources.
A fast, standalone terminal music player in Rust: native Spotify streaming plus local, Subsonic, radio, and YouTube sources.
spotatui
A terminal music player written in Rust, powered by Ratatui
Native Spotify streaming, synced lyrics, a real-time audio visualizer, local file, Subsonic/Navidrome, Internet Radio, YouTube, and Qobuz sources. Spotify is optional.
A community-maintained, actively developed fork of spotify-tui that has since diverged on multiple fronts.
| Key differences | spotify-tui | spotatui |
|---|---|---|
| Spotify backend | external Connect device (spotifyd, official client, ...) | built-in native client |
| Source(s) | Spotify | Spotify, YouTube, local, Subsonic, Navidrome, Internet Radio, Qobuz |
d to switch between them at any time.v) that reacts to whatever is playing.z on any track to queue it — the queue plays across every source before your current context resumes.spotatui history recap).spotatui --help.Spotify is optional. On first launch spotatui asks which source you want to use. YouTube, Subsonic/Navidrome, Internet Radio, Local Files, and Qobuz all work with no Spotify account. Spotify Premium is only needed for the Spotify source; you can add it anytime from the
dmenu.
…# One-line installer — Windows PowerShell
irm https://spotatui.com/install.ps1 | iex
# …or via Winget
winget install spotatui# NixOS (Flake, recommended for NixOS)
# Add spotatui to your flake inputs:
inputs = {
spotatui = {
url = "github:LargeModGames/spotatui";
inputs.nixpkgs.follows = "nixpkgs";
};
}
# Add the spotatui package from your inputs to your config:
{ inputs, ...}:{
# Your other configurations
environment.systemPackages = with pkgs; [
inputs.spotatui.packages.${pkgs.stdenv.hostPlatform.system}.default
];
}The flake will take care of all the dependencies for you, except for setting the audio backend. If you use alsa:
hardware.alsa.enable = true;Or if you use pipewire:
services.pipewire = {
enable = true;
alsa.enable = true;
#your other settings
};The flake provides x86_64-linux, aarch64-linux, and aarch64-darwin. nixpkgs 26.11 dropped Intel Macs (x86_64-darwin), so on those use the Homebrew formula, the one-line installer, or the release tarball below.
Or download pre-built binaries from GitHub Releases.
Which build has which sources? The prebuilt Linux, macOS, and Windows binaries (the one-line installer, GitHub Releases, and
cargo binstall) include the extra music sources — Local Files, Subsonic, Internet Radio, YouTube, and Qobuz. A plaincargo install --locked spotatuidoes not; enable them with--features local-files,subsonic,internet-radio,youtube,qobuz.
See the Installation Wiki for platform-specific requirements and building from source.
Run spotatui. On the first launch it asks which source to set up:
Welcome to spotatui! Choose your music source:
1) Spotify (needs login)
2) YouTube (free, needs the yt-dlp binary)
3) Subsonic (free, needs a Subsonic/Navidrome server)
4) Internet Radio (free)
5) Local Files (free)
6) Qobuz (paid subscription, logs in through the browser)Pick a free source to skip Spotify entirely, or pick Spotify to run the auth wizard (you'll create a Spotify Developer app — see the Installation Wiki). Only sources compiled into your build are listed.
Once you're in:
? for the in-app help menu of all key events.d to open the Source & Device picker and switch sources.z on a track to queue it; open the queue with Shift+Q.spotatui --help for the CLI. See the Keybindings Wiki for every shortcut.A few CLI examples to get you started:
spotatui --completions zsh # Shell completions (bash, powershell, and more supported)
spotatui play --name "Your Playlist" --playlist --random # Play a random song from a playlist
spotatui playback --toggle # Play/pause current playback
spotatui list --liked --limit 50 # List your liked songs
spotatui history recap --period 30d --output ./recap.html # Generate a shareable listening recapStarted with a free source and want Spotify too? Press d, select Spotify, and spotatui opens your browser to log in without restarting — enabling browsing, playlists, and controlling external devices right away. Native (librespot) streaming still requires a restart, since it initializes at startup.
spotatui is a general music player, not just a Spotify client. Press d to open the Source & Device picker; the sidebar and search re-scope to the active source. Playback for these sources runs through spotatui's own audio engine, so volume control and the visualizer work exactly as they do for Spotify — and none of them need Spotify Premium.
| Source | What it does | Needs |
|---|---|---|
| Local Files | Browse and play a folder of audio files (FLAC, MP3, OGG, WAV, …) | Nothing; set local_music_path or use the OS music dir |
| Subsonic | Browse, search, and stream from any Subsonic-compatible server (Navidrome, Gonic, Airsonic, Funkwhale, …) | A server account |
| Internet Radio | Play icecast/shoutcast streams with live now-playing metadata; search the radio-browser.info directory (30k+ stations) | Nothing |
| YouTube | Search YouTube and play audio; build local playlists stored in a plain file | yt-dlp on your PATH (ffmpeg recommended) |
| Qobuz | Stream your Qobuz library (favorites, playlists, albums, search) at the configured quality, MP3 320 up to FLAC 24/192, through spotatui's own engine | A paid Qobuz account |
Resuming your last session: quit while playing from a non-Spotify source and spotatui restores that track and its position on the next launch, following the startup_behavior setting (continue, play, or pause).
Availability: included in the Linux, macOS, and Windows release binaries. When building from source, enable them with cargo features:
cargo install --locked spotatui --features local-files,subsonic,internet-radio,youtube,qobuzEach source has a few config keys; the essentials are below, and the full reference lives in the Configuration Wiki.
Set a folder (defaults to the OS music directory), then pick Local Files in the d picker:
behavior:
local_music_path: "/home/you/Music"behavior:
subsonic_url: "https://music.example.com"
subsonic_username: "you"Prefer setting the password via the SPOTATUI_SUBSONIC_PASSWORD environment variable so it never sits in the config file in plaintext.
Search the radio-browser.info directory in-app (Enter plays a station directly), and press the save key (F by default) to keep a station in your sidebar. Stations can also be preconfigured in config.yml; stations saved in-app live in state.yml. The playbar shows a LIVE badge with the stream's now-playing title.
Requires the yt-dlp binary (ffmpeg recommended). No Google account, API key, or cookies — search and playback are anonymous. If playback breaks after a YouTube change, updating yt-dlp (yt-dlp -U) is the fix; no spotatui update needed.
Local YouTube playlists live in the spotatui config directory as youtube_playlists.yml, a plain human-editable file you can back up or share. Create one from the sidebar, add tracks with w, and play a playlist as a queue with Enter.
Pick Qobuz in the first-run picker or the d menu: spotatui opens the Qobuz login page in your browser and saves the token to qobuz_credentials.yml in the config directory (owner-only on Unix; on Windows the file keeps the config folder's permissions). No app registration is needed. The sidebar lists your favorite tracks, playlists, and favorite albums; search finds tracks. Each track plays while it downloads: the encrypted stream is decrypted and rebuilt as a FLAC temporary file, playback starts after the first segments arrive, and a seek past the downloaded part continues the download from there. When a track plays from a Qobuz listing, the playbar shows the format that Qobuz delivered, for example FLAC 16/44.1. This can be lower than the configured quality.
behavior:
qobuz_quality: 6 # 5 = MP3 320, 6 = FLAC 16/44.1, 7 = FLAC 24/96, 27 = FLAC 24/192Environment variables: SPOTATUI_QOBUZ_TOKEN overrides the saved token. spotatui reads the three constants it needs from the Qobuz web player at runtime; when Qobuz changes its web player and the login stops working, set SPOTATUI_QOBUZ_APP_ID, SPOTATUI_QOBUZ_APP_SECRET, and SPOTATUI_QOBUZ_OAUTH_KEY from the bundle instead of waiting for a release.
spotatui can pick music for you, from your own listening history. Two ways in:
Drive it from your coding agent (--features mcp-server) — spotatui exposes the player and your listening history as [MCP](https://modelconte
No open issues yet, or sync has not completed.