I wanted to search and watch YouTube without leaving the terminal, but most TUI clients show only text. ytk uses kitty's graphics protocol to draw a 3×3 grid of thumbnails, then plays the video with mpv.
What it does
- Search videos, playlists, or both mixed in (like the website)
- Open a video's channel and switch between its videos and playlists
- Info panel: channel and subscribers, views, likes, date, resolution, description
- Play whole playlists and YouTube Mixes; jump to any song while one is playing
- Resume where you left off, plus a history
- Download audio or video in the background, and play the local file afterwards
- English and Spanish interface (follows your system language, space L toggles it)
- It also works inside zellij
How it works
It's a single small Python package with no dependencies besides what you probably already have: yt-dlp for search and metadata, mpv for playback, and kitty for the images. It's driven by a LazyVim-style leader key: press space and a menu shows the available actions, so you don't have to memorize anything.
git clone https://github.com/anton-arck/ytk.git ~/.local/share/ytk
ln -sf ~/.local/share/ytk/bin/ytk ~/.local/bin/ytk
ytk arch linux
Caveats
- You need kitty (or a terminal that supports its graphics protocol).
- It relies on yt-dlp, which reads YouTube without an official API. When YouTube changes something it can break until yt-dlp is updated, so update yt-dlp first if something fails.
- Linux only so far; I've only tested it on Arch (sway).
It's MIT licensed. Feedback, bug reports and ideas are very welcome, especially from people on other distros or terminals.
Repo: https://github.com/anton-arck/ytk