openspot-tui
v1.0.4
Published
A terminal user interface for Spotify
Maintainers
Readme
Screenshots
Requirements
- Bun >= 1.0.0
- Spotify Premium account
- Linux x64 only (uses D-Bus/MPRIS for media control, not available on macOS/Windows)
Installation
# Just run it (no install needed)
bunx openspot-tui@latestOr install globally:
bun add -g openspot-tui
openspot-tuiNote: If openspot-tui command is not found after global install, add Bun's bin folder to your PATH:
# For zsh (add to ~/.zshrc)
export PATH="$HOME/.cache/.bun/bin:$PATH"
# For bash (add to ~/.bashrc)
export PATH="$HOME/.cache/.bun/bin:$PATH"From Source
git clone https://github.com/iiviie/openspot-tui.git
cd openspot-tui
bun install
bun startThe install script automatically downloads spotifyd on first run.
Getting Started
openspot-tuiOn first run, spotifyd will be downloaded automatically if not found.
Then you need to authenticate:
- Press
Ctrl+Pto open the command palette - Select Login to Spotify - a browser opens for authorization
- After authorizing, press
Ctrl+Pagain - Select Authenticate Spotifyd - another browser authorization
Once both are complete, you are ready to listen to music.
Navigation
| Key | Action |
|-----|--------|
| h / l | Focus library / content panel |
| j / k | Move down / up in lists |
| Enter | Select / Play item |
| Escape | Go back |
| / | Open search |
| Ctrl+P | Open command palette |
Playback
| Key | Action |
|-----|--------|
| Space | Play / Pause |
| w | Next track |
| b | Previous track |
| Left / Right | Seek backward / forward (5s) |
| + / - | Volume up / down |
| s | Toggle shuffle |
| r | Cycle repeat mode |
Queue
| Key | Action |
|-----|--------|
| f | Add selected track to queue |
Select a track in the content panel and press f to add it to your queue. The queue appears in the left sidebar below the library menu.
Help
Press ? to view all keyboard shortcuts.
Press q to quit.
Command Palette
Press Ctrl+P to access commands:
| Command | Description | |---------|-------------| | Login to Spotify | Authenticate with Spotify | | Logout | Clear stored credentials | | Authenticate Spotifyd | Set up audio playback daemon | | Start Spotifyd | Start the daemon | | Stop Spotifyd | Stop the daemon | | Restart Spotifyd | Restart the daemon | | Activate Spotifyd | Make it the active playback device |
Troubleshooting
Playback not working
Make sure both authentications are complete:
Ctrl+P-> Login to SpotifyCtrl+P-> Authenticate Spotifyd
Re-authenticate
bun logout
bun startThen authenticate again via the command palette.
spotifyd issues
If the automatic download failed, install manually:
# Arch Linux
pacman -S spotifyd
# macOS
brew install spotifydOr download from spotifyd releases.
Development
bun dev # Run in watch mode
bun tsc --noEmit # Type checkDependencies
- Bun - JavaScript runtime
- @opentui/core - Terminal UI framework
- spotifyd - Spotify Connect daemon for audio playback
- dbus-next - D-Bus bindings for MPRIS control
- Zod - Schema validation
License
MIT
