YoinkTUI
TUI download manager for YouTube (and 1000+ sites) via yt-dlp + ffmpeg.
Yoink it. Keep it.
Features
- Paste URL → See formats → Download — clean three-screen flow
- Clip downloads — pick a start/end range to grab just the useful part of a long podcast or tutorial
- Steam-style download manager — per-stream queue, live speed/ETA/peak/disk tiles, overall progress, pause/resume, cancel, and a timestamped activity log
- Persistent queue — add several items, review/retry/remove them, clear the whole queue at once, resume interrupted or failed downloads after a restart, and multi-select rows for bulk remove/start actions
- Playlist support — preview a playlist, choose Video+Audio, Video Only, or Audio Only, pick a quality cap, and queue every entry sequentially; queue a selected subset with multi-select
- History & library — SQLite-backed history with search, details, open file/folder, copy URL, re-download, and delete
- Presets — built-in Music, Archive, and Mobile profiles plus your own
[presets.<name>]bundles, selectable from the format screen - Config file — quality cap, container, audio format, fragment concurrency, rate limit, metadata/thumbnail embedding, output directory, and defaults
- Trustworthy failures — typed errors with hints, startup dependency checks,
and a
yoinktui --doctorpre-flight report - Live thumbnail — renders via kitty graphics / sixel / Unicode fallback (
textual-image) - Format picker — resolution, codec, size, and bitrate at a glance; one format maps to one download, so the format table itself stays single-select
- Video + Audio / Video Only / Audio Only modes
- Real pause & resume — suspends the whole yt-dlp process group (POSIX)
Live Demo
Screenshots
Install
Requires Python 3.12+, yt-dlp, and ffmpeg on your PATH.
# Via uv tool (recommended)
uv tool install yoinktui
# Via pipx
pipx install yoinktui
Or install from source:
git clone https://github.com/Zakariya-Zahid/YoinkTUI.git
cd YoinkTUI
uv sync
uv tool install -e .
yoinktui --doctor
Run
uv run yoinktui
Check the environment before the first download:
uv run yoinktui --doctor
--doctor verifies yt-dlp and ffmpeg, prints their versions, and checks that
the download directory is writable. Missing dependencies open a friendly
startup screen instead of a traceback.
Usage
- Paste a URL — YouTube, Twitter/X, Vimeo, Twitch, TikTok, etc.
- Pick a format — Table shows video & audio streams; arrow keys navigate, Enter selects
- Choose mode —
Video+Audio(default),Video Only,Audio Only - Optional preset — open the preset modal to apply Music, Archive, Mobile, or a user-defined bundle
- Optional clip — press
C, enter a start/end range, then Apply. Leave end blank to go to the end of the video. - Download or queue — start immediately, or add the item to the persistent queue. Playlist URLs can queue every entry as video+audio, video only, or audio only, with a quality cap such as 1080p or Best available. Playlist entries can also be queued as a multi-select subset.
- Resume / browse — pending, interrupted, and failed queue items are offered on startup; the Library screen searches and acts on history.
Multi-select actions
Queue and playlist tables support row selection:
Space/Entertoggles the highlighted row.Ctrl+Aselects all rows.Ctrl+Shift+Aclears the selection.
Actions then operate on the selection:
- Queue screen: remove selected rows, start selected rows, or clear the selection.
- Playlist screen: queue selected entries, or clear the selection.
The format picker remains intentionally single-select because one chosen format maps to one download; bulk format selection is not a queue action.
Configuration
YoinkTUI reads $XDG_CONFIG_HOME/yoinktui/config.toml (usually
~/.config/yoinktui/config.toml). Precedence, highest first:
- CLI flags
YOINKTUI_*environment variables- the config file
- built-in defaults
Create a default file with the current defaults:
yoinktui --write-default-config
Or write one by hand:
[general]
theme = "dark" # dark, light, or a Textual theme name
default_mode = "video" # video | vonly | audio
[download]
dir = "~/Videos/yoinktui"
quality_cap = 1080 # 0 = best available
container = "mkv" # mkv (preferred) | mp4 | auto
audio_format = "mp3" # mp3 | m4a | opus | flac | best
audio_quality = "0"
concurrent_fragments = 0 # 0 = yt-dlp default
rate_limit = "" # e.g. "5M"
write_subtitles = false
embed_metadata = true
embed_thumbnail = false
keep_original = false
[network]
proxy = ""
cookies_from_browser = "" # browser name, e.g. "firefox" or "chrome:PROFILE"
cookies_file = "" # exported Netscape cookies.txt, e.g. "~/cookies.txt"
impersonate = "" # client to impersonate, e.g. "chrome"
[ui]
show_preview = true
ascii = false
no_color = false
# Built-ins are music, archive, and mobile. Override only the keys you want,
# or add a new preset name.
[presets.phone]
mode = "video"
quality_cap = 480
container = "mp4"
audio_format = "m4a"
description = "Small MP4 for an older phone"
Presets bundle mode, quality cap, container, audio format, and post-processing
switches. Apply one from the format screen; the action bar shows the active
profile. Built-ins can be overridden with [presets.music],
[presets.archive], or [presets.mobile].
Environment overrides use the same names with a YOINKTUI_ prefix:
YOINKTUI_DOWNLOAD_DIR, YOINKTUI_QUALITY_CAP, YOINKTUI_CONTAINER,
YOINKTUI_AUDIO_FORMAT, YOINKTUI_PROXY, and so on.
Useful commands:
yoinktui --print-config # show the merged result
yoinktui --config ./test.toml # use a different file
yoinktui --doctor # check dependencies + paths
Download policy can also be set per run:
yoinktui --quality-cap 720 --container mp4 --audio-format m4a
yoinktui --concurrent-fragments 4 --rate-limit 5M
Defaults: 1080p cap, mkv, mp3, ~/Videos/yoinktui.
Data and resume
Runtime data lives under $XDG_DATA_HOME/yoinktui/ (usually
~/.local/share/yoinktui/):
queue.json— persistent download queue; pending, interrupted, and failed items are offered for resume on startup.library.db— SQLite download history used by the Library screen.
Downloads use yt-dlp --continue, so a partially written .part file resumes
where it left off. Quitting mid-download records the active item as
interrupted in history; queued downloads are offered for resume on the next
launch.
Headless CLI & Automation
YoinkTUI can run headlessly for scripts, cron jobs, and terminal automation without launching the TUI:
# Direct download using your config defaults
yoinktui "https://www.youtube.com/watch?v=..."
# Custom output directory, format selector, or mode
yoinktui URL -o ~/Downloads -f bestvideo+bestaudio
yoinktui URL -m audio --preset music
# Automation: stream progress as NDJSON or run quietly
yoinktui URL --json
yoinktui URL --quiet
# Inspection and command preview
yoinktui URL --dry-run
yoinktui URL --dry-run --print-command
# Batch downloads from a file or stdin
yoinktui --batch-file urls.txt
cat urls.txt | yoinktui -
# Playlists
yoinktui "https://www.youtube.com/playlist?list=..." --yes-playlist --playlist-items 1-5
# Force launching the TUI with a prefilled URL
yoinktui URL --tui
Structured exit codes are returned for scripting (0: success, 10: network, 11: auth/cookies, 12: geo, 13: not found, 14: disk, 15: dependency missing, 16: unsupported URL, 17: no streams, 130: cancelled).
Cookies and proxy
Some sites need a logged-in browser session or a different network:
# Read cookies directly from a logged-in browser profile
yoinktui --cookies-from-browser firefox
yoinktui --cookies-from-browser "firefox:/path/to/profile" \
--proxy socks5://127.0.0.1:1080
# Or use a Netscape cookies.txt exported by a browser extension
yoinktui --cookies ~/cookies.txt
The same values can live in [network]. cookies_from_browser accepts
yt-dlp browser names: chrome, firefox, edge, brave, or
browser:profile. A cookies.txt file must go in cookies_file (or
--cookies), not in cookies_from_browser; pointing the browser option at
a file makes yt-dlp reject every URL. Extra yt-dlp flags can be passed with
--yt-dlp-arg=... (repeatable).
yt-dlp is updated frequently to keep up with site changes. If downloads start
failing across many sites, update it first (yt-dlp -U, or
uv tool install --upgrade yt-dlp).
Udemy courses and lectures
Udemy needs a logged-in session and usually browser impersonation. The course is the playlist, while individual lectures are the videos. See docs/guides/udemy.md for cookie export, URL forms, whole-course queueing, audio-only mode, and DRM limitations.
TikTok / HTTP 403
TikTok's anti-bot layer sometimes rejects yt-dlp with
HTTP Error 403: Forbidden before it can read the video. That is a
TikTok-side block, not a YoinkTUI site limit. Log into TikTok in your
browser and use --cookies-from-browser, or try a VPN/proxy. The same URL
may work later without changes.
Keyboard Shortcuts
| Key | Action |
|---|---|
Enter |
Submit URL / Select format |
↑/↓ |
Navigate format table |
D |
Download the selected format |
Q |
Add the selected format to the queue |
C |
Set a clip start/end range |
V / O / A |
Video+Audio / Video Only / Audio Only |
Esc |
Back, cancel download, or quit from the URL screen |
P / Space |
Pause / resume download |
Ctrl+Q |
Quit app |
Ctrl+D |
Toggle dark/light theme |
In the queue and playlist tables, Space / Enter toggle row selection, Ctrl+A
selects all rows, and Ctrl+Shift+A clears the selection. The download screen keeps
its own Space pause/resume behavior.
Architecture
assets/ # README screenshots + demo video
src/yoinktui/
├── app.py # App shell, per-instance config/state, dependency gate
├── __main__.py # CLI flags, config precedence, --doctor
├── assets/ # App logo (light & dark variants)
├── backend/
│ ├── config.py # TOML schema, loader, XDG paths, last-URL state
│ ├── presets.py # built-in Music/Archive/Mobile bundles
│ ├── queue.py # DownloadQueue, QueueItem, atomic JSON persistence
│ ├── library.py # SQLite history, search, stats, interrupted recovery
│ ├── errors.py # DownloadError + ErrorReason taxonomy
│ ├── models.py # MediaInfo, FormatInfo, numeric coercions
│ └── ytdlp.py # probe/playlist probe/download, process control
└── tui/
├── app.tcss # All styles (Textual 8 compatible)
├── widgets.py # FormatTable, InfoPanel, DownloadDashboard, queue rows
└── screens.py # URL/format/download/queue/playlist/library + modals
tests/
├── backend/ # parser, models, config, queue, history, presets
└── tui/ # smoke, flow, URL validation, power-user flows, snapshots
docs/adr/ # architecture decisions (history store)
docs/contracts/ # frozen progress, selection, and navigation contracts
- Backend runs yt-dlp in a thread (
@work(thread=True)) so the UI stays responsive - Progress is parsed from yt-dlp's
--progress-templatestdout stream; the field order is frozen indocs/contracts/progress.md - Control uses POSIX
SIGSTOP/SIGCONTfor real pause/resume and terminates the whole process group on cancel - Failures are classified into network/geo/auth/not-found/disk/ffmpeg/ unsupported buckets, each with a hint and suggested next step
- Thumbnails are fetched via
httpxand rendered bytextual-image.AutoImage
Development
uv sync --dev
uv run pytest # unit + parser + TUI + snapshots
uv run pytest --snapshot-update # accept intentional UI changes
uv run ruff check .
uv run ruff format --check .
uv run mypy src
CI runs the same checks on Linux and macOS for Python 3.12 and 3.13
(.github/workflows/ci.yml). The release
checklist lives in docs/RELEASING.md.
Roadmap
See ROADMAP.md and the per-module plans in docs/plans/.
License
MIT — see LICENSE.
Metadata
Release files for yoinktui 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yoinktui-1.0.0.tar.gz | 127.5 kB | With provenance | Details for yoinktui-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yoinktui-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for yoinktui-1.0.0-py3-none-any.whl |
Total release size: 264.3 kB
Release files / yoinktui-1.0.0.tar.gz
| Download URL | yoinktui-1.0.0.tar.gz |
|---|---|
| Size | 127.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d64ee16f8e6c00604785251fdec304ef2d2a0b1c6ef7f5f779694db3d031892
|
|
BLAKE2b-256 checksum How to use checksums |
6b1dd4968fa7df82caba68813a7f38586072d97889fb03e425459bd28422a069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / yoinktui-1.0.0-py3-none-any.whl
| Download URL | yoinktui-1.0.0-py3-none-any.whl |
|---|---|
| Size | 136.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
100fb77644b438f84202fd775970d2ce117c255938ded7dced96745c03338743
|
|
BLAKE2b-256 checksum How to use checksums |
dc1c07a7382910025e9d51e47dc5e157b26b54803dbc880bc55c22b51b6dfa6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for yoinktui 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for yoinktui-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.