DECE2183/yamusic-tui
An unofficial Yandex Music terminal client.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#2 Repository of the week
yamusic-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
search:
artists: true
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-add-to-playlist: a
tracks-remove-from-playlist: ctrl+a
tracks-share: ctrl+s
tracks-shuffle: ctrl+x
tracks-search: ctrl+f
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 .
Similar Projects
Discover other similar projects and AI models.
Расширьте возможности Yandex Music Desktop. Проект добавляет множество новых функций, а также исправляет грехи ванильного клиента
Imagedl: Search and download images from specific websites. (轻量级美食/动植物昆虫真菌/建筑/自然/动漫二次元/高清摄影/宇宙天文/网络图片搜索下载器,支持谷歌,百度,必应,NASA,360,Pixabay,Yandex,搜狗,雅虎,DuckDuckGo,Unsplash,Safebooru,Gelbooru,Danbooru,次元小镇,花瓣网,Foodiesfeed,Everypixel,微博,iNaturalist等各大平台,轻松构建大模型训练测试集)
Проекты для входа в аккаунт Яндекс.Музыки с устройства пользователя
Google chrome browser extension for downloading tracks from Yandex Music
Web client for Yandex Music with support for themes, addons, Discord Rich Presence (RPC) and OBS widget