/install dl
Media Downloader
Smartly download media (Video/Music) from URLs (YouTube, Bilibili, X, etc.) to the appropriate local folders.
- Video: Save into
~/Movies/or~/Videos/. - Music: Save into
~/Music/. - Playlists: Saves items into a subdirectory (e.g.,
~/Music/\x3Cplaylist_name>/).
Designed to work with a local Media Server (e.g., Universal Media Server, Jellyfin) for instant playback on TV/devices.
Agent Procedure
When the user provides a URL or asks to download media, you MUST follow this exact sequence:
-
Acknowledge:
- Immediately reply to the user: "Downloading with dl skill..."
-
Execute:
- Run the script:
uv run --script ${baseDir}/dl.py "\x3Curl>"
- Run the script:
-
Capture Path:
- Read the script output, a path will be printed to stdout at the end, points to either a single file or a folder contains the playlist items.
-
Upload (Telegram Only):
- If the user is on Telegram (check context or session) AND the file is audio (mp3/m4a):
- Use the
messagetool to send the file to the user:{ "action": "send", "filePath": "\x3Cfilepath>", "caption": "Here is your music." }
Usage
Run dl.py as a uv script:
# save into default dirs ~/Music or ~/Movies or ~/Videos
uv run --script ${baseDir}/dl.py \x3Curl>
# specify your own output dir
uv run --script ${baseDir}/dl.py \x3Curl> -o \x3Cout_dir>
The script will print output path, either a file or a folder.
A optional cookies file could be provided to make yt-dlp more reliable, with which ever of these detected first:
${baseDir}/.cookies.txt$DL_COOKIES_FILE$COOKIES_FILE~/.cookies.txt
Setup (User)
This skill will be much more useful if you setup a media server on same machine to share the downloaded media in your LAN:
- Install a DLNA/UPnP Media Server (Universal Media Server, miniDLNA, Jellyfin).
- Share
~/Musicand~/Movies(or~/Videos) folders. - Downloaded media will appear automatically on your TV, with apps support DLNA/UPnP, such as VLC.
See example script to setup Universal Media Server on Mac.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dl - 安装完成后,直接呼叫该 Skill 的名称或使用
/dl触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Media Downloader 是什么?
Download Video/Music from YouTube/Bilibili/X/etc. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3022 次。
如何安装 Media Downloader?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dl」即可一键安装,无需额外配置。
Media Downloader 是免费的吗?
是的,Media Downloader 完全免费(开源免费),可自由下载、安装和使用。
Media Downloader 支持哪些平台?
Media Downloader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。
谁开发了 Media Downloader?
由 guoqiao(@guoqiao)开发并维护,当前版本 v0.2.3。