/odl:odlfrom odl
Download files reliably with the `odl` CLI — resumable, multi-connection, batch URL lists, with machine-readable NDJSON output and typed exit codes. Use when asked to download a file or URL, fetch/grab a list of URLs, resume an interrupted download, probe a URL's size/filename/resumability, or check download status. Trigger on "download", "fetch this URL", "grab this file", "download these links", "resume the download", "is this URL resumable".
Ships in odl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
odl is a resumable, multi-connection download manager. Drive it in
machine mode and never parse human output.
Requires odl ≥ 1.0 (the --format json contract); --checksum
verification needs ≥ 1.1. Verify with odl --version; the full contract
is in odl --help.
Always pass --format json. Without it you get ANSI progress bars
that are unreadable and waste tokens. With it you get newline-delimited
JSON (NDJSON) on stdout and a JSON error object on stderr.
completed / failed / cancelled)
tell you which file in a batch ended how.Read stdout line by line, parse each line as one JSON object, branch on
its "type", and attribute it to its "url".
# Single download (server-provided filename), machine output
odl --format json "https://example.com/file.zip" -o /downloads/
# Verify against a known hash (exit 4 on mismatch); repeatable
odl --format json "https://example.com/file.zip" -o /downloads/ \
--checksum "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
# Batch from a file of URLs (one per line; '#'/'//' comments ignored)
odl --format json /path/to/urls.txt -o /downloads/
# Probe without downloading: size, filename, resumability, etag
odl --format json probe "https://example.com/file.zip"
# What is already downloaded / in progress?
odl --format json status # detailed
odl --format json list # brief; both accept an optional FILTER
# Show effective config
odl --format json config --show
| code | meaning | retry? |
|---|---|---|
| 0 | success | — |
| 2 | usage / bad input | no — fix the command |
| 3 | network | yes — transient |
| 4 | conflict (file exists / changed / checksum; URL gone or credentials refused) | no; change --on-* flags, the URL, or the credentials |
| 5 | I/O | no — check disk/permissions |
| 6 | metadata (lockfile held / corrupt) | maybe — another odl may be running |
| 7 | yt-dlp missing/too old/failed, or unsupported URL | no — install or update yt-dlp |
| 130 | cancelled | — |
| 1 | other/internal | maybe |
--on-final-file-exists
defaults to replace-and-continue (overwrites). To avoid re-downloading
or overwriting, pass --on-final-file-exists abort (fail if present) or
add-number-to-name-and-continue (keep both).--download-dir is the
same across runs and the final file is still present — then odl
emits completed with "already_complete": true and downloads nothing.
Metadata lives under --download-dir (default: OS data dir), not next
to the output. Change the dir and odl can't tell it already ran.progress may show "downloaded":0,"total":null for chunked
responses with no Content-Length. That is normal, not a stall — wait for
completed.yt-dlp; everything else uses
odl's own engine. Pass --choose-format never so a quality prompt can
never appear, and expect "engine":"ytdlp" in probe/status, where
etag, last_modified and checksums are null/empty because that
engine cannot observe them. Sizes may be estimates (size_is_approx).
Playlists are refused. Force the choice with --engine http|ytdlp.--format json disables every interactive
question — the quality menu and the helper-install offer — so the documented
invocation cannot hang. If you ever drop --format json, add
--choose-format never, and only run odl tools install with -y.yt-dlp is
missing, too old, or rejected the URL. Check
odl --format json tools status, then either odl tools install yt-dlp -y
or tell the user to install it. Repeating the download unchanged fails
identically.--format-id subs:<lang> (or autosubs:<lang>) downloads
the subtitle file instead of the video.--header "Authorization: Bearer $TOKEN" or
--http-user/--http-password, reading values from the environment.
Never hardcode tokens into commands you save.reference.md — full JSON event schema, every field, all relevant
flags, probe/status/config document shapes, the error object.examples.md — copy-paste recipes: parse a download, idempotent batch,
resume, probe-then-download, auth, a bash error-handling loop.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jd1378/odl --plugin odl