tubetui
YouTube — and your own videos and music — in the terminal, written in Rust with ratatui. Videos play through mpv: drawn inside the app in kitty, or in their own window elsewhere. Every video opens in its own tab.
Interface in English and Spanish (
Ctrl+y lswitches). Early but usable: feedback welcome.


What it does
YouTube
- Inicio (your home feed), Descubrir (the home feed without channels you already follow), Suscripciones (newest from your channels, live and upcoming first), Mis canales
- Search videos in all of YouTube (about a second, more results load as
you scroll), only in your channels, or inside a channel (
Tabswitches the scope); search channels - A preview of the selected video with its thumbnail (in kitty)
- Subscribe / unsubscribe (
s, unsubscribing asks first), watch later (l), download with subtitles (d), open the channel (c)
Playback
- Embedded video in kitty, or an mpv window; one tab per video, background audio when you go back to browsing
- Volume, mute, seek, subtitles on/off, switch original / subtitles / auto-dubbed audio and the language while watching (the video reloads at the same second)
- Fullscreen (
f): the video fills the terminal, and on X11 the terminal window goes fullscreen too
On your computer
- Mis videos and Mi música list the files in the folders you choose (several per kind); music plays from the chosen song to the end of the list
Account and settings
- Log in with any installed browser (Brave, Chrome, Chromium, Vivaldi, Edge,
Opera, Firefox — profiles are detected), or import a
cookies.txton machines without a browser (servers, SSH) - A settings screen for everything; changes go to
config.toml, keeping your comments.$EDITORcan open the file from the app - The bottom bar always shows the keys that work right now;
Ctrl+y ?lists them all - English or Spanish, following the system language until you pick one
- Short animations when pages and dialogs open, each one can be turned off
- An About page with links and how to support the project
Requirements
mpvandyt-dlpinPATH- For embedded video: the kitty terminal
- Optional:
wmctrl(X11) for window fullscreen
Install
Keys
Global commands use a Ctrl+y prefix (tmux style): press Ctrl+y, then:
| Key | Action |
|---|---|
b |
show / hide the menu |
m |
go to the menu |
f |
fullscreen |
n p 0-9 |
next / previous / numbered tab (0 = Inicio) |
x |
close the tab |
/ |
search videos |
l |
English / español |
? |
every shortcut, explained |
q |
quit |
In lists: ↑↓ / jk, Enter, Esc to go back, Tab menu ↔ list,
l watch later, s subscribe, d download, c channel.
While watching: space pause, ←→ seek, ↑↓ volume, m mute, j
subtitles, i original / subtitles / dubbed, o language, f fullscreen,
. , next / previous song.
Terminal multiplexers (tmux, zellij, herdr)
Inside a multiplexer, keys and images travel through it, which adds lag and
can break embedded video. When tubetui detects one (TMUX, ZELLIJ,
HERDR_ENV), automatic mode opens videos in an mpv window and fullscreen
does not resize the outer terminal window. You can still force embedded video
(mode = "embedded"), but for the smoothest experience run tubetui directly in
kitty.
Configuration
~/.config/tubetui/config.toml (or the platform equivalent). Every key is
optional; everything can also be changed from the app (⚙ Configuración).
[]
= "brave+GNOMEKEYRING:Default" # yt-dlp --cookies-from-browser syntax
= "" # imported cookies.txt, wins over browser
[]
= "auto" # auto | embedded | window
= 720
= "avc1" # H.264 decodes in hardware almost everywhere
= "subtitles" # subtitles | original | dubbed
= "es" # subtitles and dubbing language
= true # keep listening while browsing
[]
= ["~/Videos"]
= ["~/Música", "/mnt/discos"]
[]
= "emoji" # emoji | nerd | unicode
= "en" # en | es (unset: the system language)
= true # thumbnail in the preview panel (kitty)
[] # animations
= true
= true
= true
Performance
Idle it uses about 25 MB and no CPU. Videos in their own window play with hardware decoding (8 % CPU on a 2012 laptop); embedded video is scaled on the CPU, so 480p is the sweet spot there. See the benchmark against ytfzf and youtube-tui.
Troubleshooting
If the app closes unexpectedly (for example when launched from a window
manager shortcut, whose terminal closes with it), the error is kept in
~/.cache/tubetui/crash.log.
To diagnose lag, run with TUBETUI_DEBUG=/tmp/tubetui.log tubetui: every key,
redraw and action is logged with its timing.
Support
If tubetui is useful to you, the About page (Acerca de) lists donation
addresses. They live in donate.toml.
Disclaimer
tubetui talks to YouTube's unofficial internal API and uses your browser session. That may go against YouTube's Terms of Service; use it at your own risk. Cookies give access to your account: never share them.
License
Licensed under either of Apache License, Version 2.0 or MIT license, at your option.