YouTube transcript tool (powered by yt-dlp)
npm install @cli4ai/youtube> Official @cli4ai package • https://cli4ai.com • Install cli4ai: npm i -g cli4ai
Fetch transcripts, search within videos, browse channels and playlists (powered by yt-dlp).
``bash`
npm i -g cli4ai
cli4ai add -g youtube
- yt-dlp is required. If it’s missing, cli4ai run youtube … will prompt you to install it.
`bash`
cli4ai run youtube transcript
cli4ai run youtube search
cli4ai run youtube info
cli4ai run youtube channel
cli4ai run youtube playlist
cli4ai run youtube batch
cli4ai run youtube find
`bashGet plain text transcript
cli4ai run youtube transcript "https://youtu.be/AJpK3YTTKZ4"
Notes
- Works with youtube.com, youtu.be, and shorts URLs
- Transcripts use auto-captions when manual captions aren't available
- Search returns timestamps with direct links to that exact moment
-
text` format deduplicates overlapping auto-caption segments