VDM can be driven without its window in three ways:
- La riga di comando dell'app, con le stesse opzioni di IDM: passa un download all'app in esecuzione da uno script, un file batch o un altro programma.
voltdownloadmanager-cli, uno strumento separato da usare nel terminale: scarica file, video e torrent mostrando l'avanzamento, senza aprire l'app.- The automation API: other programs list the running app's downloads (as JSON) and pause, start, remove or delete them, over a local, token-protected channel. AI assistants use it through VDM's MCP server: see AI assistants.
To run the whole app without a window, on a home server or a NAS, see Run VDM on a server (voltdownloadmanager --headless); to control it from a phone, Control VDM from your phone.
Gli esempi usano i percorsi di Windows; su macOS e Linux i programmi hanno gli stessi nomi senza .exe.
La riga di comando dell'app
voltdownloadmanager.exe /d URL [/p folder] [/f name] [/a] [/n] [/s]
| Opzione | Cosa fa |
|---|---|
/d URL |
L'indirizzo da cui scaricare. |
/p folder |
Salvalo in questa cartella (altrimenti usa la cartella della categoria indicata in Opzioni → Salva in). |
/f name |
Salvalo con questo nome. |
/a |
Aggiungilo alla coda di download principale senza avviarlo. |
/n |
Modalità silenziosa: non mostrare la finestra Informazioni sul file da scaricare; il download inizia subito (o viene messo in coda, con /a). |
/s |
Avvia la coda di download principale. |
/exit |
Salva e chiudi l'app in esecuzione (il programma di installazione lo usa prima di un aggiornamento). |
/startup |
Start in the notification area, the window hidden: what Launch Volt Download Manager on startup starts VDM with when you sign in. Where no notification area shows VDM's icon (some Linux desktops), VDM starts minimized. A running VDM stays as it is. |
un file .torrent o un collegamento magnet: |
Open it in Add torrent (what Windows passes when VDM opens torrents). |
Switches can start with / or -, in any case. If VDM is running, the command goes to it; if not, VDM starts and carries it out. For example:
voltdownloadmanager.exe /d https://example.com/files/report.pdf /p D:\Reports /n
voltdownloadmanager.exe /d https://example.com/big.iso /a
voltdownloadmanager.exe /s
voltdownloadmanager-cli
It comes with every download of VDM, next to the app (the installer puts it in VDM's folder). It works on its own: the app needn't run, except for status and api.
Its downloads leave the way the app's do: through Options → Proxy / Socks (no proxy, Use system settings with its HTTPS_PROXY / HTTP_PROXY / ALL_PROXY variables and the system's automatic configuration script, an automatic configuration script, fetched before the command starts, or a manual proxy with its login) and its Network adapter, with the DNS of Options → Connection. That covers get, resume, the video, playlist and gallery commands (yt-dlp and gallery-dl too), the install-* commands, and torrents when Torrent settings' Use the proxy is on. For one run, --proxy takes the place of Options' proxy: none (direct, yt-dlp and gallery-dl too, whatever the system's proxy), system, or a proxy's address, http://127.0.0.1:7890, https://…, socks5://…, socks5h://… (the proxy looks the sites' names up), socks4://…, socks4a://…. A password is never taken on the command line, where other programs can read it: write the user name in the address (socks5://ann@127.0.0.1:1080) and put the password in the VDM_PROXY_PASSWORD environment variable. get and resume also have --dns and --adapter, and video-get and gallery-get --adapter (any for none), for the same.
| Comando | Cosa fa |
|---|---|
get URL [-o folder\|file] [-c connections] [-H "Header: value"]... [-r referer] [--user-agent agent] [--cookie cookie] [--checksum hash] [--dns choice] [--adapter name] [--proxy proxy] |
Download a file with up to 8 connections (-c, 1 to 128), showing progress. Ctrl+C pauses it; resume continues. -r sets the referring page address (Referer header), --user-agent sets the request's User-Agent (then the only one sent; without it, VDM speaks as your default browser, and, when a site's bot check refuses that and the way a browser connects too, once more under its own name), --cookie sets the Cookie header (a cookie on the command line ends up in the shell's history; - reads it from standard input instead). --checksum checks the finished file: hex MD5, SHA-1, SHA-256, SHA-512 or CRC32, optionally named (sha256:…); a file that doesn't match fails. Without it, a checksum the server sends is checked, and a file that doesn't match it is kept with a warning: line (see Verify checksum). --dns picks the DNS instead of Options': system; a service and how to ask it, cloudflare-https, quad9-tls, google-plain, adguard-https, nextdns-tls; DNS servers' addresses, 9.9.9.9,149.112.112.112; or a DNS-over-HTTPS address. It never falls back to the system's DNS. --adapter sends every connection through one network adapter instead of Options' (any for none), by its name (Ethernet, wg0) or one of its addresses; when it isn't connected, nothing is sent and the download fails. --proxy takes the place of Options' proxy for this run (see above). The app's site rules for the address apply too (their headers, User-Agent, browser-like connection, number of connections and proxy), where the command line gives none of the same: --proxy goes before every rule's proxy. A link from a file host that one of your debrid accounts (Options → Accounts) supports goes through that account, as in the app, and get says through Real-Debrid; --direct downloads the address itself (Debrid service accounts). |
resume file.vdm.json [-c connections] [-H ...] [-r referer] [--user-agent agent] [--cookie cookie] [--checksum hash] [--dns choice] [--adapter name] [--proxy proxy] [--direct] |
Continua un download in pausa o interrotto dal file .vdm.json accanto ad esso. -r, --user-agent e --cookie impostano intestazioni aggiuntive (- legge il cookie dall'input standard). --checksum verifica il file completato per quella esecuzione. --dns, --adapter e --proxy impostano il DNS, la scheda di rete e il proxy della connessione, come per get, e le regole del sito dell'app si applicano come per get. Tramite un account debrid, come get: il servizio fornisce un nuovo collegamento quando quello vecchio è scaduto; --direct continua dall'indirizzo stesso. |
install-gallery-dl |
Installa o aggiorna gallery-dl, il programma per scaricare gallerie di immagini. Il suo elenco dei checksum viene verificata con la chiave di firma dell'autore e il programma viene verificato con quell'elenco (Windows e Linux x86-64; sugli altri sistemi, installalo tu). |
gallery-get URL [-o folder] [--limit N] [--adapter name] |
Download a gallery's pictures (a Wikimedia Commons category, a Flickr album, ...) into a folder named after it inside -o; --limit takes at most that many, the first the site lists. Started again, it fetches only the new ones. VDM's own downloader brings the pictures gallery-dl lists, 4 at a time. --adapter sends the connections, VDM's and gallery-dl's, through one network adapter, as for get. |
video-info URL |
Indica quali video contiene una pagina (YouTube, Vimeo, ...) e le qualità disponibili. |
playlist-info URL [--from N] [--count N] |
Elenca i video di una playlist o di un canale, uno per riga nell'ordine in cui appaiono: posizione, durata, titolo e indirizzo. |
playlist-get URL [-f selector] [-o folder] [-c pieces] [--split-chapters] [--from N] [--count N] |
Scarica i video di una playlist o di un canale uno dopo l'altro, in una cartella con il nome dell'elenco all'interno di -o. -f è una qualità per tutti, come per video-get (per impostazione predefinita la migliore di ogni video; bv*[height<=720]+ba/b[height<=720] = fino a 720p; bv[vcodec^=avc]+ba[acodec^=mp4a]/b[vcodec^=avc][acodec^=mp4a] = la più compatibile, H.264 con AAC; ba = il suono originale; mp3:320, opus:, flac: come per video-get). -c e --split-chapters come per video-get. |
video-get URL [-f selector \| -q height\|compatible] [-o folder] [-c pieces] [--subs langs] [--auto-subs] [--embed-subs] [--split-chapters] [--adapter name] |
Download a video. Without -f or -q, the best quality, the one the Download video window starts on: with ffmpeg the best picture with the best sound joined to it (a site whose pictures and sounds come apart, such as Bilibili, needs ffmpeg for a video), else the best file with both. -q 1080 (or 720p) takes that height, or the nearest below it the page offers (else the nearest above), and says so. -q compatible takes the most compatible quality, as the window's Most compatible (H.264 + AAC): the best H.264 picture with AAC sound, in an MP4 that plays in every editor, TV and phone; a page without one says so (nothing is converted). -f takes a quality's selector from video-info (b = the best single file; ba = the sound alone as the site has it, not converted; mp3:320, mp3:256, mp3:192 or mp3:128 = the sound as an MP3 at that bitrate, mp3:0 at its best variable one; opus: = as Opus; flac: = as FLAC, lossless but no better than the site's sound; conversions need ffmpeg). -c: VDM's own downloader brings each stream yt-dlp finds over this many connections (8 by default, 1 to 128), a stream in pieces (HLS, DASH) this many pieces at once. --subs saves subtitles beside it: language codes from video-info (en,fr), or all for every one the uploader gave; --auto-subs takes the site's automatic captions instead; --embed-subs puts them into the video (needs ffmpeg, MP4 or MKV). With ffmpeg, the video's chapters go into the file too, as Download video's Embed chapters does. --split-chapters splits the video into numbered chapter files without re-encoding, beside the main video. --adapter sends the downloads' connections, and yt-dlp's (and ffmpeg's), through one network adapter, as for get; when it isn't connected, nothing starts. When no format of the page matches, the error lists the ones it offers, as video-info does. |
update-helpers |
Check VDM's own helpers (yt-dlp, ffmpeg, gallery-dl, Node.js) for newer versions now, install them (each checked as its first install was), and print their versions. A helper a download is using switches to its new version once that download ends. Programs you chose in Helpers, and your system's, are yours to update. |
install-ytdlp, install-ffmpeg,install-js-runtime |
Install or update the helpers videos need: yt-dlp (checked against its signing key), ffmpeg (x64 and ARM64 Windows, a build in VDM's signed list of checked builds; on macOS and Linux VDM uses the system's, and on 32-bit Windows one you choose in Helpers) and VDM's own JavaScript runtime, which yt-dlp needs for YouTube's qualities: Node.js's newest LTS build (its checksum list checked against Node.js's releasers' keys; Windows, Linux and macOS). A runtime already on your computer, or one chosen in Helpers, is still used first, and the command says so. install-deno, its earlier name, does the same. |
torrent-info SOURCE |
Nome, file (numerati) e dimensione di un torrent; SOURCE è un link magnet o un file .torrent. |
torrent-get SOURCE [-o folder] [--files 0,2] [--use-existing] |
Scarica un torrent, o solo alcuni dei suoi file. Se alcuni dei suoi file sono già nella cartella, si interrompe e li nomina; --use-existing li usa invece (ciò che corrisponde viene mantenuto, il resto scaricato). Con Aggiungi i tracker di questo elenco pubblico ai torrent pubblici nelle Impostazioni torrent attivo, un torrent pubblico ottiene anche i tracker dell'elenco, come nell'app. |
torrent-create PATH -o file.torrent |
Crea un .torrent di un file o di una cartella, o dei file di una cartella elencati per nome (i peer lo trovano tramite la DHT). |
status [--id N] [-s status] [--search text] [-c category] [-q queue] [-l limit](o list) |
I download dell'applicazione in esecuzione, come JSON, con i loro ID (l'API di automazione deve essere attiva). I flag opzionali filtrano per ID, stato, stringa di ricerca, categoria o coda, o limitano il conteggio. |
pause ID..., start ID... |
Mette in pausa i download in corso oppure avvia (riprende) quelli interrotti, in coda o non riusciti nell'app in esecuzione. |
remove ID..., delete ID... |
Rimuove i download dall'elenco dell'app in esecuzione: remove mantiene i relativi file, delete li elimina. Prima mette in pausa i download in corso (pause). |
add URL [-o folder] [-f name] [-c category] [-q queue] [--checksum hash] [-r referer] [--user-agent agent] [--cookie cookie] [--private] [-l] [-s] |
Affida un download all'app in esecuzione. -o imposta la cartella, -f il nome del file, -c la categoria, -q la coda, --checksum imposta l'hash richiesto, -r l'indirizzo della pagina di riferimento (header Referer), --user-agent imposta lo User-Agent della richiesta, --cookie imposta l'header Cookie (un cookie sulla riga di comando finisce nella cronologia della shell; - lo legge invece dall'input standard), --private lo contrassegna come download da finestra privata (tenuto separato dai download delle finestre normali, salvato nell'elenco solo mentre Opzioni → Generale → Mantieni nell'elenco i download da finestra privata è attivo, come lo è per impostazione predefinita), -l lo mette in coda senza avviarlo, e -s salta la finestra Informazioni sul file da scaricare. Stampa {"id": N} in caso di successo. |
start-queue [name] [-q name], stop-queue [name] [-q name] |
Avvia o interrompi una coda di download nell'applicazione in esecuzione (API di automazione). Avvia o interrompe la coda principale se omessa. |
pair |
Mostra un nuovo codice per associare un telefono o un browser remoto al controllo remoto dell'applicazione in esecuzione: i suoi indirizzi web, il codice di associazione e un codice QR. |
api on, api off |
Attiva o disattiva l'API di automazione dell'app in esecuzione. |
voltdownloadmanager-cli help <command>mostra tutte le opzioni. Se un comando non riesce (l'app non è in esecuzione, risponde con un errore o un download si interrompe), termina con il codice 1. Per esempio:
voltdownloadmanager-cli get https://example.com/big.iso -o D:\Downloads -c 16 --checksum sha256:9f86d0…
voltdownloadmanager-cli video-get "https://www.youtube.com/watch?v=aqz-KE-bpKQ" -q 720
voltdownloadmanager-cli torrent-get "magnet:?xt=urn:btih:…" --files 0
JSON per script e programmi
Con --json (prima o dopo il comando), ogni comando stampa JSON anziché testo, con un oggetto per riga, così che script e agenti AI possano leggerlo:
| Comando | Cosa stampa |
|---|---|
get, resume |
{"event": "through", "service"}prima quando il download passa attraverso un account debrid, poi una riga {"event": "progress", "downloaded", "size", "speed", "connections", "segments"} ogni mezzo secondo, poi {"event": "done", "path", "size", "seconds"} (con "warning" quando il file non corrispondeva al checksum inviato dal suo server, ed è stato mantenuto), o {"event": "paused", "state"} dopo Ctrl+C (state è il file che resume prende). |
video-get |
Senza -f, prima {"event": "quality", "label", "format", "height", "asked", "nearest"}: la qualità presa, asked l'altezza di -q ("compatible" per -q compatible, altrimenti null) e nearest se quell'altezza non era offerta. Poi {"event": "progress", "downloaded", "size", "speed"} righe, {"event": "note", "text"} per ciò che dice il log del download (una qualità che i server non danno, presa alla più vicina inferiore), poi {"event": "done", "path", "subtitles", "subtitle_problems"}: i file dei sottotitoli salvati accanto, e le lingue che il sito ha rifiutato ({"code", "name", "reason", "beside"}; beside: sono arrivati al secondo tentativo, accanto al video invece che al suo interno). |
torrent-get |
{"event": "progress", "phase", "downloaded", "size", "speed", "peers", "peers_seen"}righe, poi {"event": "done", "path", "size"}, o {"event": "stopped", "downloaded", "seconds"} con --seconds. |
video-info |
{"title", "choices": [{"label", "format", "size", "approx", "height", "fps", "codec", "range"}], "subtitles": [{"code", "name", "automatic"}], "declared"}; declared è l'indirizzo del video di cui la pagina dice che si tratta, quando è stato cercato quello invece del primo player nel suo HTML (su un sito per cui yt-dlp non ha un proprio lettore), altrimenti null; format di una scelta è ciò che video-get -f accetta (gli stessi formati da cui è stato dimensionato, come 401+251, poi il più vicino dello stesso codec e altezza se quelli non ci sono più, poi di qualsiasi codec), approx dice che il suo size è una stima, codec è AV1, VP9, H.264…, range è HDR (o SDR accanto a una scelta HDR); code di un sottotitolo è ciò che --subs accetta. |
torrent-info |
{"name", "info_hash", "size", "files": [{"index", "size", "path"}]}. |
torrent-create |
{"info_hash", "path"}. |
install-ytdlp, install-ffmpeg,install-js-runtime |
{"tool", "version", "path"}; install-js-runtime aggiunge used, il runtime che yt-dlp usa ({"runtime", "version", "path"}). |
update-helpers |
Un {"tool", "status", "version"} per programma di supporto; status è up-to-date, updated, ready (in uso una volta terminati i suoi download), skipped (sei tornato dalla più recente), not-ours, busy o failed (con error). |
status, pause, start, remove, delete, start-queue, stop-queue, add, pair,api |
La risposta dell'app, già in formato JSON (vedi sotto). |
Le dimensioni sono in byte (null se sconosciute), le velocità in byte al secondo. Un errore stampa {"error": "…"} ed esce con codice 1; quando video-get non trova alcun formato della pagina da scaricare, l'errore viene con "choices" (come quello di video-info) e "formats" (quello di yt-dlp: {"id", "ext", "height", "video", "audio"}). Ad esempio:
voltdownloadmanager-cli --json get https://example.com/big.iso -o D:\Downloads
{"event":"progress","downloaded":4194304,"size":1073741824,"speed":52428800,"connections":8,"segments":8}
…
{"event":"done","path":"D:\\Downloads\\big.iso","size":1073741824,"seconds":20.4}
L'API di automazione
Altri programmi possono chiedere all'app in esecuzione cosa sta scaricando e mettere in pausa, avviare, rimuovere o eliminare i download. L'API è disattivata per impostazione predefinita; attivala con voltdownloadmanager-cli api on (e disattivala con api off).
How a program talks to VDM
- While it runs, VDM listens on a port of
127.0.0.1(this computer only) and writes the port and a secret token toipc.jsonin its data folder: - Windows:%APPDATA%\voltdownloadmanager\ipc.json- macOS:~/Library/Application Support/voltdownloadmanager/ipc.json- Linux:~/.local/share/voltdownloadmanager/ipc.json- A portable copy:data\ipc.jsonnext to the program.
The token changes at every start; only programs that can read your data folder (yours) can use it.
2. Connect to that port and send one line of JSON: the token and the command's fields, e.g. {"token": "<token>", "query": "list"}.
3. VDM answers with one line: ok for a command, or a JSON object for a question.
Cosa supporta
Campi (oltre a token) |
Risposta |
|---|---|
{"query": "list"} |
Ogni download e la velocità totale: {"downloads": [{"id", "file", "url", "path", "status", "size", "downloaded", "speed", "added", "category", "error"}], "speed": bytes per second, "queues": [{"name", "running", "ids"}], "categories": [{"key", "name"}], "free": bytes}. status è Queued, Downloading, Stopped, Complete o Error; size è null se sconosciuto; error (perché non è riuscito) è presente solo per un download in Error; category è il key di una categoria; free è lo spazio libero dove vanno i download (null se sconosciuto). Solo con l'API attiva. |
{"action": "pause", "ids": [3, 4]} |
Agisce sui download tramite ID: "pause", "start", "remove" (mantiene il file) o "delete" (elimina anche il file). Risponde {"done": [3], "skipped": [{"id": 4, "why": "not running"}]}; prima di rimuovere o eliminare un download in corso, è necessario metterlo in pausa. Solo quando l'API è attiva. |
{"action": "start_queue", "queue": "Main download queue"} |
Avvia (o con "stop_queue", interrompe) la coda con quel nome (un nome da queues dell'elenco; predefinito: la coda di download principale). Risponde {"done": [], "skipped": []}, o {"error": …, "code": "unknown-queue"}. Solo quando l'API è attiva. |
{"api": true} / {"api": false} |
Attiva o disattiva l'API: {"api": true}. |
{"url": "https://…", "dir": "D:\\Files", "name": "a.zip", "silent": true} |
Aggiunge un download, come fanno le opzioni /d /p /f /n della riga di comando ("later": true è /a); ok. "category" (una chiave presa da categories dell'elenco) lo inserisce nella cartella di quella categoria invece di quella scelta dal suo tipo; "queue" (il nome di una coda) è la coda in cui attende con "later". Anche con l'API disattivata, come la riga di comando. |
{"start_queue": true} |
Avvia la coda di download principale; ok. |
An unknown question or action is answered {"error": "…"}, as is a question while the API is off (then with "code": "api-off", for programs to check: the error text may change). A wrong token is answered denied. When VDM is already handling as many requests as it takes at once, it answers busy: nothing was done, and the line can be sent again a moment later.
A command (answered ok) may carry an "id" of your own: letters, digits and -, at most 64, different for each command. If its answer doesn't come back (the line closed, or a wait ran out), send the same line again with the same id: VDM does it once, however many of those lines reach it, and answers ok to each. Without an id, each line is a new command. A second launch of the program (voltdownloadmanager.exe /d …, /exit) does this by itself.
Ogni richiesta e risposta è descritta, campo per campo, in uno schema JSON: automation-api.schema.json (anche su https://vdm.mikaillab.com/automation-api.schema.json). È generato dal codice con cui l'app risponde, quindi resta sempre esatto; i programmi possono usarlo per verificare ciò che inviano e leggono, o per generare i propri tipi.
Esempi
PowerShell (Windows):
$ep = Get-Content "$env:APPDATA\voltdownloadmanager\ipc.json" | ConvertFrom-Json
$client = New-Object Net.Sockets.TcpClient("127.0.0.1", $ep.port)
$stream = $client.GetStream()
$writer = New-Object IO.StreamWriter($stream); $reader = New-Object IO.StreamReader($stream)
$writer.WriteLine((@{ token = $ep.token; query = "list" } | ConvertTo-Json -Compress))
$writer.Flush()
$reader.ReadLine() | ConvertFrom-Json | Select-Object -ExpandProperty downloads | Format-Table file, status, downloaded, size
$client.Close()
Python:
import json, os, socket
ipc = os.path.join(os.environ["APPDATA"], "voltdownloadmanager", "ipc.json") # see above elsewhere
ep = json.load(open(ipc))
with socket.create_connection(("127.0.0.1", ep["port"])) as s:
s.sendall((json.dumps({"token": ep["token"], "query": "list"}) + "\n").encode())
answer = json.loads(s.makefile().readline())
for d in answer["downloads"]:
print(d["file"], d["status"], d["downloaded"], d["size"])
Per aggiungere un download, invia {"token": "…", "url": "https://example.com/a.zip", "silent": true}.
Gratuito, open source, senza pubblicità, senza periodo di prova.
Download Volt Download Manager