- Bun >= 1.0.0
- Spotify Premium account
- Linux x64 only (uses D-Bus/MPRIS for media control, not available on macOS/Windows)
# 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"git clone https://github.com/iiviie/openspot-tui.git
cd openspot-tui
bun install
bun startThe install script automatically downloads spotifyd on first run.
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.
| 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 |
| 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 |
| 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.
Press ? to view all keyboard shortcuts.
Press q to quit.
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 |
Make sure both authentications are complete:
Ctrl+P-> Login to SpotifyCtrl+P-> Authenticate Spotifyd
bun logout
bun startThen authenticate again via the command palette.
If the automatic download failed, install manually:
# Arch Linux
pacman -S spotifyd
# macOS
brew install spotifydOr download from spotifyd releases.
bun dev # Run in watch mode
bun tsc --noEmit # Type check- 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
MIT

