Skip to main content

aria2 options reference

The options you actually use. Every entry maps an aria2c flag to its aria2.conf key, with an example. This is a curated companion to the official manual, which lists the complete set.

Most-used aria2 options with the CLI flag, aria2.conf key, description and an example
Flag aria2.conf key What it does Example
-ddirDirectory to save the downloaded file(s).aria2c -d /downloads URL
-ooutSet the output file name.aria2c -o file.iso URL
-ccontinueResume a partially downloaded file.aria2c -c URL
-iinput-fileDownload every URI listed in a text file.aria2c -i urls.txt
-jmax-concurrent-downloadsMaximum number of downloads running at once.aria2c -j 5 URL
-ZFetch all URIs in one operation (batch mode).aria2c -Z URL1 URL2
--save-sessionsave-sessionWrite current downloads to a session file for later resume.aria2c --save-session=aria.session URL
--save-session-intervalsave-session-intervalHow often (seconds) to auto-save the session file.--save-session-interval=60
--allow-overwriteallow-overwriteOverwrite an existing file instead of failing.--allow-overwrite=true
-xmax-connection-per-serverConnections per server (1–16). Higher speeds up large files.aria2c -x 16 URL
-ssplitSplit the file into N pieces downloaded in parallel.aria2c -s 16 URL
-kmin-split-sizeMinimum size of a split piece.aria2c -k 1M URL
-mmax-triesNumber of retries before giving up.aria2c -m 5 URL
--retry-waitretry-waitSeconds to wait between retries.--retry-wait=5
-ttimeoutConnection timeout in seconds.aria2c -t 60 URL
--connect-timeoutconnect-timeoutTimeout for establishing the connection.--connect-timeout=30
--lowest-speed-limitlowest-speed-limitAbort if speed drops below this value.--lowest-speed-limit=10K
-Uuser-agentOverride the HTTP User-Agent.aria2c -U "Mozilla/5.0" URL
--refererrefererSend a Referer header.--referer="https://example.com"
--headerheaderAdd a custom HTTP header.--header="Authorization: Bearer X"
--load-cookiesload-cookiesRead cookies from a Netscape-format file.--load-cookies=cookies.txt
--check-certificatecheck-certificateVerify TLS certificates (disable only if you trust the source).--check-certificate=false
--ca-certificateca-certificatePath to a CA certificate bundle.--ca-certificate=/etc/ssl/certs/ca-certificates.crt
-Vcheck-integrityVerify chunk checksums (Metalink/BitTorrent).aria2c -V URL
--bt-trackerbt-trackerComma-separated tracker list for torrents.--bt-tracker="udp://tracker.opentrackr.org:1337/announce"
--bt-max-peersbt-max-peersMaximum peers per torrent (0 = unlimited).--bt-max-peers=128
--enable-dhtenable-dhtEnable the DHT network for trackerless torrents.--enable-dht=true
--bt-enable-lpdbt-enable-lpdEnable Local Peer Discovery.--bt-enable-lpd=true
--seed-ratioseed-ratioStop seeding after this upload/download ratio (0 = seed forever).--seed-ratio=1.0
--seed-timeseed-timeMinutes to seed after completion.--seed-time=60
--bt-save-metadatabt-save-metadataSave torrent metadata from a magnet link.--bt-save-metadata=true
--bt-seed-unverifiedbt-seed-unverifiedSeed without verifying existing pieces first.--bt-seed-unverified=true
--enable-rpcenable-rpcStart the JSON-RPC/XML-RPC server.--enable-rpc=true
--rpc-listen-allrpc-listen-allListen on all interfaces (keep local unless secured).--rpc-listen-all=true
--rpc-listen-portrpc-listen-portRPC port (default 6800).--rpc-listen-port=6800
--rpc-secretrpc-secretSecret token required to use the RPC interface.--rpc-secret=YOUR_SECRET
--rpc-allow-origin-allrpc-allow-origin-allAllow cross-origin browser clients (Web UIs).--rpc-allow-origin-all=true
-DdaemonRun as a background daemon.aria2c -D --enable-rpc
-llogWrite the log to a file.aria2c -l aria2.log URL
--on-download-completeon-download-completeCommand to run when a download finishes.--on-download-complete=/path/hook.sh
--on-download-erroron-download-errorCommand to run when a download fails.--on-download-error=/path/err.sh
--all-proxyall-proxyHTTP proxy for all protocols (HTTP/HTTPS/FTP). SOCKS is not supported.--all-proxy="http://127.0.0.1:8080"
--http-proxyhttp-proxyProxy for HTTP only.--http-proxy="http://127.0.0.1:8080"
--all-proxy-userall-proxy-userUsername for proxy authentication.--all-proxy-user=user
--all-proxy-passwdall-proxy-passwdPassword for proxy authentication.--all-proxy-passwd=pass
--no-proxyno-proxyComma-separated hosts that bypass the proxy.--no-proxy=localhost,127.0.0.1
--disable-ipv6disable-ipv6Disable IPv6.--disable-ipv6=true
--file-allocationfile-allocationPre-allocation mode: none, prealloc, trunc, falloc.--file-allocation=falloc
--disk-cachedisk-cacheEnable disk cache and set its size.--disk-cache=64M
--max-download-limitmax-download-limitPer-download speed cap.--max-download-limit=1M
--max-overall-download-limitmax-overall-download-limitGlobal download speed cap.--max-overall-download-limit=5M
--max-overall-upload-limitmax-overall-upload-limitGlobal upload speed cap.--max-overall-upload-limit=1M
--remote-timeremote-timeApply the server's timestamp to the file.--remote-time=true
--auto-file-renamingauto-file-renamingRename instead of overwriting existing files.--auto-file-renaming=true

Build a config from these options

Use the config generator to turn these settings into a ready-to-use aria2.conf, or read the full aria2 guide. Hitting an error? Try troubleshooting.