DECE2183/yamusic-tui
About
An unofficial Yandex Music terminal client.
Design & MediaWhat you can do
- Radio configuration
- Liked playlists
- Display user playlists
- Play from playlist
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +21
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalyamusic-tui
An unofficial Yandex Music terminal client.
Based on yandex-music-open-api.

Requirements
To use this client, you should have a valid Yandex Music account and an access token.
The easiest way to get a token is to use a browser extension (Chrome, Firefox).
Implemented features
- Player
- Play/pause
- Switch track
- Play progress
- Rewind
- Like/unlike
- Share
- Synced lyrics
- Radio
- My wave
- Radio configuration
- Likes
- Liked tracks
- Liked playlists
- Liked artists
- Liked albums
- Playlists
- Display user playlists
- Play from playlist
- Add/remove track to playlist
- Create/remove playlist
- Rename playlist
- Caching
- Search
- Landing
Installation
If you have Go installed on your PC:
go install github.com/dece2183/yamusic-tui@latest
Or just download the binary from the releases page.
Also available Gentoo Linux ebuild.
Configuration
The configuration file is located at ~/.config/yamusic-tui/config.yaml.
This is the default configuration which is automatically created after the first login:
token: <your yandex music token>
buffer-size-ms: 80
rewind-duration-s: 5
volume: 0.5
volume-step: 0.05
show-errors: false
show-lyrics: false
cache-tracks: likes # none/likes/all
cache-dir: ""
proxy: "" # proxy server URL; if not specified, uses the HTTP_PROXY and HTTPS_PROXY environment variables
ssl-certs: [] # path to certificate files in PEM format
search:
artists: true
popular: false
albums: false
playlists: false
controls:
quit: ctrl+q,ctrl+c
apply: enter
cancel: esc
cursor-up: up
cursor-down: down
show-all-keys: ?
playlists-up: ctrl+up
playlists-down: ctrl+down
playlists-rename: ctrl+r
playlists-hide: ctrl+b
tracks-next-page: pgup
tracks-previous-page: pgdown
tracks-like: l
tracks-artist: ctrl+j
tracks-add-to-playlist: a
tracks-remove-from-playlist: ctrl+a
tracks-share: ctrl+s
tracks-shuffle: ctrl+x
tracks-search: ctrl+f
tracks-back: backspace
tracks-hide: ctrl+t
player-pause: space
player-next: right
player-previous: left
player-rewind-forward: ctrl+right
player-rewind-backward: ctrl+left
player-like: L
player-cache: S
player-vol-up: +,=
player-vol-down: '-'
player-toggle-lyrics: t
player-hide: ctrl+p
style:
volume-indicator-width: 16
volume-indicator-autohide-at: 64
side-panel-width: 32
side-panel-autohide-at: 96
search-modal-width: 56
icons:
play: ▶
stop: ■
liked: 💛
not-liked: 🤍
cached: 💿
lyrics-dot: •
volume-off: 🔇
volume-low: 🔈
volume-mid: 🔉
volume-high: 🔊
colors:
accent: '#FC0'
error: '#F33'
border: '#444'
background: '#6b6b6b'
playlist-selection: '#4a3c00'
active-text: '#EEE'
normal-text: '#CCC'
inactive-text: '#888'
track-title-text: '#dcdcdc'
track-version-text: '#999'
track-artist-text: '#bbb'
lyrics-previous: '#444'
lyrics-current: '#EEE'
lyrics-next: '#777'
By default, all cached tracks are stored in the system cache directory. ~/.cache/yamusic-tui on Linux and ~/AppData/Local/yamusic-tui on Windows.
You can change this behavior by specifying a preferred cache directory in the cache-dir field.
You can list multiple keys for the same control, separated by commas.
Increase the buffer-size-ms if you have glitches or stutters.
System media controls

Yamusic-tui supports the system media control interfaces: MPRIS on Linux, SMTC on Windows, and MPRemoteCommandCenter on macOS.
This feature is enabled by default, however for compatibility reasons you can disable it by building the app with the nomedia tag or downloading a release with the -nomedia suffix.
go build -tags='nomedia'
macOS
On macOS, media key support uses MPRemoteCommandCenter and MPNowPlayingInfoCenter, which display the current track in the system Now Playing widget and respond to media keys / Touch Bar controls.
Due to a Go linker limitation, the binary must be built with an external linker to include the required LC_UUID load command (enforced by dyld on macOS 15+):
go build -ldflags="-linkmode=external" -o yamusic-tui .
Explore related projects
Loading…