// terminal youtube music client

yt-tracks

A fast, keyboard-driven terminal user interface client for YouTube Music.

yt-tracks — player
yt-tracks demo screenshot
01

Installation

Download pre-built binaries for Linux x86-64, macOS Apple Silicon, and Windows x86-64 from the GitHub Releases page, or run an installer script:

// Linux x86-64 / macOS Apple Silicon
curl -fsSL https://raw.githubusercontent.com/Kumneger0/yt-tracks/main/install.sh | bash
// Windows x86-64 (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 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

// Install yt-dlp:

Follow the yt-dlp GitHub Installation Guide. Standard yt-dlp configuration files are loaded natively; on failure, yt-tracks retries with --ignore-config (set HTTP_PROXY / HTTPS_PROXY if a proxy must also apply to fallback).

02

Quick Start

Initialize the embedded local backend (or let it initialize automatically on first run — one-time network access required to cache CPython and dependencies), authenticate with your browser cookies, and launch the client:

# 1. (Optional) Pre-download CPython & backend dependencies with live progress
yt-tracks setup

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

# 3. Launch the client
yt-tracks
03

CLI Commands & Subcommands

CommandDescription
yt-tracks
Launch the interactive terminal user interface.
yt-tracks setup
Download CPython and initialize the local backend runtime in advance with live progress (also available via --setup).
yt-tracks extract-cookies
Extract YouTube Music cookies from supported browsers (chrome, firefox, safari), verify via API, and store locally.
yt-tracks version
Print the installed application version.
yt-tracks log
Print yt-tracks.log for error reporting (inspect yt-dlp-error.log and ffstderr.log directly for subprocess diagnostics).

// Flags & Environment Variables

OptionDescription
--setupDownload and initialize the local backend runtime without starting the TUI.
-d, --debug-dir <path>Override the directory used for yt-tracks.log, yt-dlp-error.log, and ffstderr.log.
YT_TRACKS_YTDLP_VERBOSE=1Pass -v to yt-dlp when logging stream extraction failures.
04

Authentication & Local Files

Automatic Cookie Extraction

yt-tracks extract-cookies

Supported browsers: chrome, firefox, safari.

Credentials (browser.json, plus Netscape cookie.txt) and optional config.json ({ "debug-dir": "..." }) are saved in your config path:

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

Logs default to your state directory (overrideable via --debug-dir or config.json debug-dir; yt-tracks log prints yt-tracks.log only, while yt-dlp-error.log and ffstderr.log can be inspected directly), and the embedded uv + CPython runtime is cached in your user cache directory:

  • Logs (Linux / macOS / Windows):~/.local/state/yt-tracks/logs/ · ~/Library/State/yt-tracks/logs/ · %APPDATA%\yt-tracks\logs\
  • Cache (Linux / macOS / Windows):~/.cache/yt-tracks/ · ~/Library/Caches/yt-tracks/ · %LOCALAPPDATA%\yt-tracks\
05

TUI Keybindings

KeyAction
Tab / Shift + TabCycle focus forward / backward (Sidebar → Main → Queue → Player)
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, return to main Home sections, or close active modal

// Playback, Queue & Playlist Controls

KeyAction
SpacePlay / Pause current track (when player focused)
nSkip to next track (Queue → Context → History) (when player focused)
bSkip to previous track from history (when player focused)
aAdd selected track to queue (works in Playlists, Albums, Search, Home sections, and Related list)
rRemove highlighted track from the queue (when queue list focused)
Ctrl + tOpen Create New Playlist modal (Tab/↑↓ focus, Space privacy, Enter submit)
Ctrl + pOpen Manage Playlist modal for selected/current track (Enter/a add, r remove)
lToggle Like (♥) / Unlike (♡) for current track
Ctrl + lToggle synced lyrics overlay (supports mouse wheel & j/k scroll)
Ctrl + qToggle right column view mode (Queue List vs Related Tracks) (when queue column focused)
q / Ctrl + cQuit application