
git clone https://github.com/yt-dlp/yt-dlp.git▶️ Usage summary
- Install:
curl -L https://github.com/yt-dlp/yt-dlp/raw/master/public.key | gpg --import - /etc/yt-dlp/config.txt:
# Lines starting with # are comments - Authentication with netrc:
touch ${HOME}/.netrc - Use:
machine <extractor> login <username> password <password> - E.g.:
machine youtube login [email protected] password my_youtube_password - E.g. To use an encrypted .netrc file stored as .authinfo.gpg:
yt-dlp --netrc-cmd 'gpg --decrypt ~/.authinfo.gpg' 'https://www.youtube.com/watch?v=YE7VzlLtp-4' - To summarize, the general syntax for a field is:
%(name[.keys][addition][>strf][,alternate][&replacement][|default])[flags][width][.precision][length]type
yt-dlp — A command-line tool for downloading video and audio from YouTube and thousands of other sites, with your choice of quality and format.
What is yt-dlp?
yt-dlp is a skill (a capability for AI agents such as Claude, Codex and Cursor) on GitHub (yt-dlp/yt-dlp). A command-line tool for downloading video and audio from YouTube and thousands of other sites, with your choice of quality and format.
What can yt-dlp do?
- Downloads video and audio from YouTube and thousands of other sites
- Choose quality, format and file naming
- Updates itself with yt-dlp -U
- Actively maintained fork of youtube-dl
How to install yt-dlp
See the ⚡ Quick install section at the top of the page — it has a ready-to-copy command taken from the author’s README, plus where to run it. For the full instructions, see the README at the end of the page.
Frequently asked questions about yt-dlp
Is yt-dlp free?
Yes. yt-dlp is an open-source project on GitHub, so you can download and use it for free.
Is yt-dlp hard to install?
No. You only need to run one command above.
What is yt-dlp written in?
yt-dlp is written mainly in Python.
Download & source code
The source code, README and latest updates of yt-dlp are at github.com/yt-dlp/yt-dlp. The star count and update date on this page sync automatically from GitHub.
📖 Full guide
Loading the guide…