spotatui README

项目的 README,来自 github.com/LargeModGames/spotatui。合并为一个 markdown 文件:README.md。

spotatui logo
spotatui

A fast music player for the terminal and the desktop, written in Rust.
Spotify through its own built-in client, plus local files, Subsonic/Navidrome, internet radio, YouTube and Qobuz, and Apple Music on macOS.

Download · Install · Docs · Contributing · Discord

English | 简体中文 | 繁體中文 | Français | Deutsch

Crates.io Discord GitHub downloads Songs played using spotatui spotatui Contributors

Desktop app

The spotatui desktop app: an album page, then the visualizer, the synced lyrics and the cover art in panes

Terminal app

spotatui in the terminal: an album, cover art, synced lyrics and five visualizer styles

Table of Contents

About

spotatui is a music player with two frontends: a desktop app and a terminal app. They share one login, one configuration and one listening history. Spotify is optional: it is one of seven sources.

Spotify needs Premium. spotatui logs in with its own built-in client, so you need no developer app and no client ID.

spotatui started as a fork of spotify-tui and has since grown its own player, sources and desktop app.

Installation

Spotify is optional: every other source works without an account.

Desktop app

System Download
Windows 10/11 Installer
macOS Apple Silicon · Intel
Linux .deb · .rpm · AppImage

The installers are not signed yet, so Windows and macOS warn on the first start. Desktop app shows how to open it, and lists the arm64 files for Linux.

Terminal app

System Command
macOS, Linux, WSL curl -fsSL https://spotatui.com/install.sh | bash
Windows irm https://spotatui.com/install.ps1 | iex or winget install spotatui
Arch Linux yay -S spotatui-bin
With Rust cargo install --locked spotatui

Homebrew, Nix, Void, .deb packages and building from source are in the installation guide.

Quickstart

Run spotatui. The first launch asks which sources you want. Pick Spotify to log in: spotatui shows a code and opens Spotify's pairing page, where you confirm it.

Then:

Sources

Source You need
Spotify A Premium account
Local Files A music folder
Subsonic / Navidrome A server account
Internet Radio Nothing (30k+ stations from radio-browser.info)
YouTube yt-dlp on your PATH
Qobuz A paid Qobuz account
Apple Music macOS and the Music app

Local Files, Subsonic, Internet Radio, YouTube and Qobuz play through spotatui's own audio engine. Apple Music plays in the Music app, and spotatui is its remote. The setup of each source is in Configuration.

Spotify plays in spotatui itself, on any Spotify Connect device, or on Cast and Connect speakers on your network. See Where Spotify plays. For lossless audio, or an account that native streaming cannot play, spotatui can run Spotify's own player: see Soloist.

Learn more

You want to Read
Install another way, or build from source Installation
Change settings, keys or the theme Configuration, Keybindings, Themes
Control spotatui from your shell CLI
Write or install a Lua plugin PLUGINS.md, Scripting API
Let an AI pick the music AI DJ, MCP setup
Report a bug New issue, with a spotatui --debug log
Everything else All docs

Contributing

spotatui is built by a small team and a growing group of contributors, and you do not need to write code to help. Start with CONTRIBUTING.md, or pick a good first issue.

Native playback and Spotify Connect run on our librespot fork, spotatui-librespot. It is part of the project: a merged PR there counts as a spotatui contribution. See Contributing to the librespot fork.

Song History

Song History

Star History

Star History Chart

Maintainers

Originally forked from spotify-tui by Alexander Keliris. The spotify-tui contributors and the libraries spotatui uses are in CREDITS.md.

Code signing policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

The Windows release files are built from this repository by the release workflow on GitHub-hosted runners. Each signing request is approved by hand.

Privacy: see the privacy policy for the data spotatui sends and how to turn each part off.

spotatui Contributors

Everyone who helped, with code or without. To get on this list, see Recognition.

LargeModGames
LargeModGames

💻 📖 🚧 🤔 🚇 ⚠️
shilicioo
shilicioo

💻 🚧
kapok-4o
kapok-4o

💻 🚧 🌍
Oud
Oud

💻 🚧
MysteriousWolf
MysteriousWolf

💻
rawcode1337
rawcode1337

💻 🐛
copeison
copeison

📦
jacklorusso
jacklorusso

📖
H41L33
H41L33

📖
LordMZTE
LordMZTE

💻 📦
Sebastian Sarco
Sebastian Sarco

💻
Sergio Tabernero Hernández
Sergio Tabernero Hernández

💻 📦
David Novakovic
David Novakovic

💻
Paul
Paul

🎨 💻
Arun Felix
Arun Felix

💻 🐛
MaySeikatsu
MaySeikatsu

💻 📖 📦
Lorenzo Bodini
Lorenzo Bodini

💻 🎨
Vi1i Petal
Vi1i Petal

💻 🐛
Will Sturgeon
Will Sturgeon

💻 🐛
wfinken
wfinken

💻 🐛
Jacob
Jacob

📦
Dominick Lee
Dominick Lee

💻
Higor Prado
Higor Prado

💻
Vitali Kaplich
Vitali Kaplich

📖
knth
knth

💻
Lorelei Noble
Lorelei Noble

💻
Ben Allen
Ben Allen

💻
Thomas Allan
Thomas Allan

💻
Pratyoosh Prakash
Pratyoosh Prakash

💻 🐛
Tahmid Ahmed
Tahmid Ahmed

💻
Ritze
Ritze

💻 🐛
Hansen
Hansen

📖
Yusuke Hayashi
Yusuke Hayashi

💻 📖
Felix
Felix

💻
Dino Leung
Dino Leung

📦
Szabó István
Szabó István

📖
Alessandro Zanni
Alessandro Zanni

💻
nohint404
nohint404

💻
TongTong0828
TongTong0828

💻
Hi-1mYara
Hi-1mYara

💻 📖
Yvoo
Yvoo

💻
Maurice Schmicking
Maurice Schmicking

💻
Tayfur Yıldız
Tayfur Yıldız

💻
Vladimir Babin
Vladimir Babin

💻
Kratos
Kratos

💻
niukanen1
niukanen1

💻
Trevor Satori
Trevor Satori

💻 🐛
Y.B.
Y.B.

💻
Ufuk Emre Yücetürk
Ufuk Emre Yücetürk

💻
WaterWhisperer
WaterWhisperer

📖
Marc Bauer
Marc Bauer

💻 💵
RohithPariki
RohithPariki

💻
Muaaz Bhyat
Muaaz Bhyat

💻
점[dot]
점[dot]

💻
Samuel
Samuel

📖
TastyHeadphones
TastyHeadphones

📖
Michael
Michael

💻
Battlelamb
Battlelamb

📖 💻
markus
markus

📖
Drying
Drying

📖
Gaurav Vijay Jadhav
Gaurav Vijay Jadhav

💻
Anand B
Anand B

💻
AAA
AAA

📖 💻
Arnar
Arnar

📦
OpenR00t
OpenR00t

💻 🎨
Matt Van Horn
Matt Van Horn

💻
Dev M
Dev M

💻
Pasit Nusso
Pasit Nusso

💻
PsyMariux
PsyMariux

💻
Konrad Baran
Konrad Baran

💻
zayd
zayd

💻
BartholomewJr
BartholomewJr

💵
Yiuseppe24
Yiuseppe24

💻 🎨
anurag verma
anurag verma

💻
Isaiah Linares
Isaiah Linares

💻
everyoneexe
everyoneexe

💻
Radhik
Radhik

💻
Matt Marsico
Matt Marsico

📖
Abdul karim mia
Abdul karim mia

📖 💻
Tejesh
Tejesh

💻
zgy
zgy

💻
João Pedro
João Pedro

💻
Vansh
Vansh

💻
小卡塔克
小卡塔克

💻
Pol Bermejo Gorrindo
Pol Bermejo Gorrindo

💻
Touhidul Alam Seyam
Touhidul Alam Seyam

💻
Akshit Bansal
Akshit Bansal

💻 📖
D0ktay
D0ktay

💻
Zuhair Khalid
Zuhair Khalid

💻
ViktorBystrov72
ViktorBystrov72

💻
Piyush Choudhary
Piyush Choudhary

💻
Nadir Ali
Nadir Ali

💻
stellar-pxl
stellar-pxl

💻
Rutger
Rutger

💻
Andre Devay
Andre Devay

💻
Daniel
Daniel

💻
Felix
Felix

💻
watson wang
watson wang

📖 🌍
alboumKW
alboumKW

💻
Aloneangel20
Aloneangel20

💻
Molly
Molly

📖
Alejandro Borrego
Alejandro Borrego

💻
Pranav Arya
Pranav Arya

⚠️
Ko
Ko

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

spotatui (LargeModGames/spotatui)

正在搜索数据库…

这是什么?spotatui 是一个用 Rust 编写的快速、独立的终端音乐播放器。它可以原生串流播放 Spotify,也支持本地文件、Subsonic/Navidrome 服务器、网络电台、YouTube、Qobuz,以及在 macOS 上的 Apple Music,Spotify 完全是可选的。
这是终端应用还是图形界面程序?它主要是一个用 ratatui 构建的 TUI(终端)应用,但也附带一个可选的桌面预览版应用,与终端版共用同一套登录、设置和收听历史。
我怎么安装和运行它?可以通过 Nix flake、Homebrew formula、一行安装脚本、GitHub Releases 上的预编译二进制文件,或者带 feature 标志的 'cargo install --locked spotatui' 来安装,然后直接运行 'spotatui';首次启动时它会询问你想设置哪个音乐来源。
使用它需要 Spotify 账号或任何 API 密钥吗?不需要——免费来源(本地文件、Subsonic/Navidrome、网络电台、YouTube、Qobuz)完全不需要 Spotify 账号就能使用;只有添加 Spotify 来源时才需要 Spotify Premium,另外 YouTube 来源需要你的 PATH 中装有 yt-dlp。
安装时有什么坑需要注意吗?桌面版应用的安装包还没有做代码签名,所以 Windows SmartScreen 和 macOS Gatekeeper 在首次启动时会发出警告,需要手动放行(例如点击“仍要运行”,或在 macOS 上用 xattr 清除隔离标记)。
它支持哪些操作系统?spotatui 可以在 Linux、macOS(Apple Silicon 和 Intel 芯片)和 Windows 上运行:包括覆盖 x86_64/aarch64 Linux 和 aarch64 Darwin 的 Nix flake、Homebrew、cargo、发布页的二进制文件,以及桌面版应用(提供 Windows 安装程序、macOS dmg,以及 Linux 的 .deb/.rpm/AppImage 包)。
怎么保证我的 Subsonic/Navidrome 密码安全?建议通过 SPOTATUISUBSONICPASSWORD 环境变量来设置密码,而不是写进配置文件,这样密码就不会以明文形式保存在磁盘上。
spotatui 和原来的 spotify-tui 有什么不同?spotify-tui 依赖 spotifyd 之类的外部 Spotify Connect 设备;spotatui 内置了原生 Spotify 客户端,还增加了其他来源:本地文件、Subsonic/Navidrome、网络电台、YouTube、Qobuz,以及 macOS 上的 Apple Music。
Lua 插件能做什么?它们可以挂钩事件、添加命令和快捷键、创建弹窗以及自定义主题,让你无需重新编译就能扩展 spotatui 的功能。
跨来源的播放队列是怎么工作的?在任何歌曲上按 z 就能把它加入队列,不管它来自哪个来源;队列会依次播放所有来源的歌曲,播完后再回到你当前正在收听的内容。
我能查看自己的收听历史吗?spotatui 会在本地保存播放历史,并且可以用 'spotatui history recap' 命令生成一份可分享的 HTML 年度回顾。
大小
40.7 MB
星标
1.8K
时长
1年
提交 · 90 天