Skip to main content

YoinkTUI

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 --doctor pre-flight report
  • Live thumbnail — kitty graphics where supported, colored half-block fallback elsewhere (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

Watch it: https://poxhtgeqmslrvczb.public.blob.vercel-storage.com/yoinktui_v1.mp4

Screenshots

main


Screenshot from 2026-11-06 01-32-54

Download_Section
Screenshot from 2026-11-06 01-33-28
Screenshot from 2026-11-06 01-33-58

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

  1. Paste a URL — YouTube, Twitter/X, Vimeo, Twitch, TikTok, etc.
  2. Pick a format — Table shows video & audio streams; arrow keys navigate, Enter selects
  3. Choose mode — Video+Audio (default), Video Only, Audio Only
  4. Optional preset — open the preset modal to apply Music, Archive, Mobile, or a user-defined bundle
  5. Optional clip — press C, enter a start/end range, then Apply. Leave end blank to go to the end of the video.
  6. 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.
  7. 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 / Enter toggles the highlighted row.
  • Ctrl+A selects all rows.
  • Ctrl+Shift+A clears 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:

  1. CLI flags
  2. YOINKTUI_* environment variables
  3. the config file
  4. 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
image_mode = "auto"  # auto | kitty | sixel | halfcell
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).

Thumbnails and terminal images

Thumbnails render with the terminal's native graphics protocol when it is reliable, and fall back to colored half-block art otherwise. That means images work in Konsole, GNOME Terminal/VTE, xterm, and similar terminals without any extra setup.

The renderer can be forced in [ui] or with YOINKTUI_IMAGE_MODE:

[ui]
show_preview = true
image_mode = "auto"  # auto | kitty | sixel | halfcell
  • auto — kitty graphics in Kitty/WezTerm/Ghostty, half blocks elsewhere.
  • kitty — force the kitty graphics protocol.
  • sixel — force sixel (for terminals such as foot or WezTerm).
  • halfcell — always use colored half blocks; the safest option.

Set show_preview = false to hide thumbnails entirely.

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-template stdout stream; the field order is frozen in docs/contracts/progress.md
  • Control uses POSIX SIGSTOP/SIGCONT for 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 httpx and rendered by textual-image; the renderer is selected by [ui].image_mode, with a half-block fallback for terminals whose graphics-protocol detection is unreliable.

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yoinktui 1.0.1
File Size Uploaded Provenance Actions
yoinktui-1.0.1.tar.gz 128.9 kB With provenance Details for yoinktui-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yoinktui 1.0.1
File Interpreter ABI Platform Actions
yoinktui-1.0.1-py3-none-any.whl Python 3 none any Details for yoinktui-1.0.1-py3-none-any.whl

Total release size: 267.1 kB

Release files / yoinktui-1.0.1.tar.gz

Download URL yoinktui-1.0.1.tar.gz
Size 128.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1b9c63a19088918b673ecbe4391c45da9e1b92327efd9dcca971d26ae6442d81
BLAKE2b-256 checksum
How to use checksums
2e33792f57287bbb39a850ff310665e56d5de5bce31db37a88e67324b99704f2
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 9, 2026.

Transparency log

Release files / yoinktui-1.0.1-py3-none-any.whl

Download URL yoinktui-1.0.1-py3-none-any.whl
Size 138.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
251a8f1e3f593d52fc25a52ce04bd75eb6f911375a75267ce7afb142c06a5070
BLAKE2b-256 checksum
How to use checksums
1520fb9d0bc2b818de135e5c9f1376c516389af2673a2078999feec47d1cf0a9
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 9, 2026.

Transparency log

Security for yoinktui 1.0.1

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.

Select from 2 files

Attestation for yoinktui-1.0.1.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 9, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page