/install download-video
Download Video (YouTube / Bilibili)
Overview
Use yt-dlp to download videos from YouTube or Bilibili. Downloads go to the user's Videos folder (~/Videos).
Prerequisites
yt-dlp must be installed:
yt-dlp --version
# Install if missing
pip install yt-dlp # cross-platform
winget install yt-dlp # Windows
brew install yt-dlp # macOS
sudo apt install yt-dlp # Debian/Ubuntu
ffmpeg is recommended for merging video+audio streams.
Download by URL
yt-dlp -o "\x3Cvideos-dir>/%(title)s.%(ext)s" "\x3Curl>"
Replace \x3Cvideos-dir> with the user's Videos folder path, and \x3Curl> with the video URL.
Supported URLs:
- YouTube:
https://www.youtube.com/watch?v=...orhttps://youtu.be/... - Bilibili:
https://www.bilibili.com/video/BV...
Download by Title (search)
# YouTube
yt-dlp -o "\x3Cvideos-dir>/%(title)s.%(ext)s" "ytsearch1:\x3Ctitle>"
# Bilibili
yt-dlp -o "\x3Cvideos-dir>/%(title)s.%(ext)s" "bilisearch1:\x3Ctitle>"
Quick Reference
| Goal | Flag |
|---|---|
| Best quality (default) | -f bestvideo+bestaudio/best |
| Audio only (mp3) | -x --audio-format mp3 |
| Specific resolution | -f "bestvideo[height\x3C=720]+bestaudio" |
| Subtitles | --write-subs --sub-langs zh-Hans,en |
| Playlist (all videos) | just pass the playlist URL |
| Limit speed | --rate-limit 2M |
Common Mistakes
- "ffmpeg not found" — merge of best video+audio fails. Install ffmpeg or use
-f best(single stream). - Bilibili login-required content — add cookies with
--cookies-from-browser chrome. - Videos folder missing — create it first.
Workflow
- URL given → download directly
- Title given → use
ytsearch1:orbilisearch1:prefix - yt-dlp missing → install, then retry
- Error → read error message, check Common Mistakes above
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install download-video - After installation, invoke the skill by name or use
/download-video - Provide required inputs per the skill's parameter spec and get structured output
What is Download Video?
Use when the user wants to download a YouTube or Bilibili video by URL or title, saving to local Videos folder. It is an AI Agent Skill for Claude Code / OpenClaw, with 65 downloads so far.
How do I install Download Video?
Run "/install download-video" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Download Video free?
Yes, Download Video is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Download Video support?
Download Video is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Download Video?
It is built and maintained by ZZLupus (@zzlupus); the current version is v1.0.0.