Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

spotatui

> 开发工具
Open source

A fast, standalone terminal music player in Rust: native Spotify streaming plus local, Subsonic, radio, and YouTube sources.

1.1K stars0 likes2 views
WebsiteGitHub

About

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.

Table of Contents

  • About
  • Features
  • Installation
  • Quickstart
    • Adding Spotify later
  • Music Sources
    • Local Files
    • Subsonic / Navidrome
    • Internet Radio
    • YouTube
    • Qobuz
  • AI DJ
  • Native Streaming
  • Configuration
    • Discord Rich Presence
    • Anonymous Song Counter
    • GitHub Profile Widget
  • Plugins
  • Performance
  • Playback Requirements
    • Deprecated Spotify API Features
  • Using with spotifyd
  • Migrating from spotify-tui
  • Song History
  • Star History
  • Libraries used
  • Development
    • Windows Subsystem for Linux
  • Help Wanted
  • Maintainer
  • spotatui Contributors
  • Upstream Contributors (spotify-tui)
  • Roadmap

About

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

Features

  • Multiple sources — Spotify optional. Play from Spotify, Local Files, a Subsonic/Navidrome server, Internet Radio, YouTube, or Qobuz. The free sources need no Spotify account; press d to switch between them at any time.
  • Native streaming. Play Spotify audio directly, no official app or spotifyd required — spotatui appears as its own Spotify Connect device (Premium required).
  • Synced lyrics. Line-by-line lyrics that follow playback.
  • Real-time audio visualizer. A system-wide FFT visualizer (press v) that reacts to whatever is playing.
  • Cross-source play queue. Press z on any track to queue it — the queue plays across every source before your current context resumes.
  • Lua plugins. Extend spotatui with event hooks, commands, keybindings, popups, and theming.
  • Listening history & recap. spotatui keeps a local play history and can generate a shareable HTML recap (spotatui history recap).
  • Full CLI. Most of what the UI does is scriptable — playback, search, playlists, shell completions. Run spotatui --help.
  • Lightweight. ~78 MB RAM while streaming, versus a full Electron client. See Performance.

Installation

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 d menu.

…
powershell
# One-line installer — Windows PowerShell
irm https://spotatui.com/install.ps1 | iex

# …or via Winget
winget install spotatui
nix
# 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:

nix
 hardware.alsa.enable = true;

Or if you use pipewire:

nix
 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 plain cargo install --locked spotatui does not; enable them with --features local-files,subsonic,internet-radio,youtube,qobuz.

See the Installation Wiki for platform-specific requirements and building from source.

Quickstart

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:

  • Press ? for the in-app help menu of all key events.
  • Press d to open the Source & Device picker and switch sources.
  • Press z on a track to queue it; open the queue with Shift+Q.
  • Run spotatui --help for the CLI. See the Keybindings Wiki for every shortcut.

A few CLI examples to get you started:

bash
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 recap

Adding Spotify later

Started 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.

Music Sources

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:

bash
cargo install --locked spotatui --features local-files,subsonic,internet-radio,youtube,qobuz

Each source has a few config keys; the essentials are below, and the full reference lives in the Configuration Wiki.

Local Files

Set a folder (defaults to the OS music directory), then pick Local Files in the d picker:

yaml
behavior:
  local_music_path: "/home/you/Music"

Subsonic / Navidrome

yaml
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.

Internet Radio

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.

YouTube

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.

Qobuz

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.

yaml
behavior:
  qobuz_quality: 6   # 5 = MP3 320, 6 = FLAC 16/44.1, 7 = FLAC 24/96, 27 = FLAC 24/192

Environment 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.

AI DJ

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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustaudio-visualizationclimultimediamusic

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具