yt-tracks
GitHub Repository →

yt-tracks documentation

A fast, terminal user interface client for YouTube Music.

yt-tracks demo screenshot

1. Installation

Download pre-built binaries from the GitHub Releases page, or run an installer script:

Linux / macOS
curl -fsSL https://raw.githubusercontent.com/Kumneger0/yt-tracks/main/install.sh | bash
Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/Kumneger0/yt-tracks/main/install.ps1 | iex

Required System Prerequisites:

  • yt-dlp — Extracting and fetching YouTube Music audio stream URLs.
  • ffmpeg — Audio stream decoding and playback.

Install ffmpeg using your system package manager:

  • Ubuntu / Debian: sudo apt install ffmpeg
  • Arch Linux: sudo pacman -S ffmpeg
  • Fedora: sudo dnf install ffmpeg
  • macOS: brew install ffmpeg
  • Windows: winget install ffmpeg or scoop install ffmpeg

Install yt-dlp

Follow the yt-dlp GitHub Installation Guide

2. Quick Start

Authenticate with your local browser session and launch the client:

# 1. Extract session cookies automatically from installed browser (chrome, firefox, safari)
yt-tracks extract-cookies

# 2. Launch the client
yt-tracks

3. CLI Commands & Subcommands

CommandDescription
yt-tracksLaunch the interactive terminal user interface.
yt-tracks extract-cookiesExtract YouTube Music cookies from supported browsers (chrome, firefox, safari), verify via API, and store locally.

4. Authentication Details

Automatic Cookie Extraction

yt-tracks extract-cookies

Supported browsers: chrome, firefox, safari.

Credentials are saved locally as browser.json in your config path:

  • Linux: ~/.config/yt-tracks/browser.json
  • macOS: ~/Library/Application Support/yt-tracks/browser.json
  • Windows: %APPDATA%\yt-tracks\browser.json

5. TUI Keybindings

Navigation & Focus

KeyAction
Tab / Shift + TabCycle focus forward / backward (Sidebar → Main → Queue)
Ctrl + kFocus search bar input
j / DownNavigate list item down / scroll lyrics down
k / UpNavigate list item up / scroll lyrics up
EnterPlay selected track / open playlist, album, or section
EscUnfocus search bar or return to main Home sections

Playback & Queue Controls

KeyAction
SpacePlay / Pause current track (when player focused)
nNext track in queue or playback context
bPrevious track from history
aAdd selected track to queue (works in Playlists, Albums, Search, Home sections, and Related list)
rRemove highlighted track from queue or related list
lToggle Like (♥) / Unlike (♡) for current track
Ctrl + lOpen synced lyrics overlay
Ctrl + qToggle Queue List vs Related Tracks view mode
q / Ctrl + cQuit application