ai-agent

yt-dlp: Download Audio/Video

Get a feature-rich downloader, for easy media access
180,135 stars15,361 forksPythonGuide quality 8/10Updated 7/23/2026100% free · open source
What it does

yt-dlp is a command-line tool that allows you to download videos and audio from YouTube and other video sites in various formats

When to use it
  • When you need to download a video or audio file from a website for offline use
  • When you want to extract audio from a video file
  • When you need to download multiple videos or playlists at once
Ready-to-paste prompt
yt-dlp -f 'best[height<=1080]' --merge-output-format mp4 https://www.youtube.com/playlist?list=PLzMQgpTdhX0LpL4rjN3ib8-kQ6lHBEa8f
Heads up: Some video sites may require you to specify a User-Agent header with `-H` option to bypass their bot protection, e.g. `yt-dlp -H 'User-Agent: Mozilla/5.0' https://www.example.com/video`
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup✓ Install verified 9/2/2026

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/yt-dlp && curl -fsSL https://workflowstacks.com/api/skills/yt-dlp/claude-skill -o ~/.claude/skills/yt-dlp/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How yt-dlp: Download Audio/Video works
Codeflow
Free to inspect

Yt-dlp: Download Audio/Video is a very large Python project (~267k lines across 1129 code files). It is a full software project: use it through its install path rather than reading it end to end. Last commit this month, Unlicense license, has a test suite.

Size
Very large codebase
~267k lines · 1129 code files · days to read — use, don't read
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Python · Docker
No API keys detected
Python 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    yt_dlp/__main__.py
    Where the program starts running
  3. 3
    pyproject.toml
    Dependencies and the commands it exposes
  4. 4
    yt_dlp/__init__.py
    Inside yt_dlp/ — the main logic begins here
What's in each folder
yt_dlp/Core code — the actual logic1045 files
test/Tests — proof it works84 files
.github/CI / automation (GitHub Actions)31 files
devscripts/Folder31 files
bundle/Folder23 files
.NO_AI/Folder1 files
READMEHas testsDocumentedCI checksDocker readyUnlicense licenseUpdated this month
Quick Actions
Details
Creator
yt-dlp
Language
Python
Category
ai-agent
Published
10/26/2020

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.