// terminal youtube music client
yt-tracks
A fast, keyboard-driven terminal user interface client for YouTube Music.

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:
curl -fsSL https://raw.githubusercontent.com/Kumneger0/yt-tracks/main/install.sh | bashiwr -useb https://raw.githubusercontent.com/Kumneger0/yt-tracks/main/install.ps1 | iexRequired System Prerequisites:
- •
yt-dlp— Extracting and fetching YouTube Music audio stream URLs. - •
ffmpeg— Audio stream decoding and playback.
// Install ffmpeg using your package manager:
sudo apt install ffmpegsudo pacman -S ffmpegsudo dnf install ffmpegbrew install ffmpegwinget 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).
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-tracksCLI Commands & Subcommands
| Command | Description |
|---|---|
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
| Option | Description |
|---|---|
| --setup | Download 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=1 | Pass -v to yt-dlp when logging stream extraction failures. |
Authentication & Local Files
Automatic Cookie Extraction
yt-tracks extract-cookiesSupported 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\
TUI Keybindings
// Navigation & Focus
| Key | Action |
|---|---|
Tab / Shift + Tab | Cycle focus forward / backward (Sidebar → Main → Queue → Player) |
Ctrl + k | Focus search bar input |
j / Down | Navigate list item down / scroll lyrics down |
k / Up | Navigate list item up / scroll lyrics up |
Enter | Play selected track / open playlist, album, or section |
Esc | Unfocus search bar, return to main Home sections, or close active modal |
// Playback, Queue & Playlist Controls
| Key | Action |
|---|---|
Space | Play / Pause current track (when player focused) |
n | Skip to next track (Queue → Context → History) (when player focused) |
b | Skip to previous track from history (when player focused) |
a | Add selected track to queue (works in Playlists, Albums, Search, Home sections, and Related list) |
r | Remove highlighted track from the queue (when queue list focused) |
Ctrl + t | Open Create New Playlist modal (Tab/↑↓ focus, Space privacy, Enter submit) |
Ctrl + p | Open Manage Playlist modal for selected/current track (Enter/a add, r remove) |
l | Toggle Like (♥) / Unlike (♡) for current track |
Ctrl + l | Toggle synced lyrics overlay (supports mouse wheel & j/k scroll) |
Ctrl + q | Toggle right column view mode (Queue List vs Related Tracks) (when queue column focused) |
q / Ctrl + c | Quit application |