Guide

Send every browser download to aria2

A browser extension catches each download and hands it to aria2 over JSON-RPC, together with the cookies that prove you are logged in. aria2 then fetches the file with several connections, resumes after interruptions and keeps going when you close the browser.

Last updated: Tested with aria2 1.37.0

Three steps

  1. 1

    Start aria2 with remote control

    One command, or the config generator for a permanent setup.

  2. 2

    Install an extension

    Aria2 Explorer for Chrome and Edge, Aria2 Integration for Firefox (and also Chrome and Edge).

  3. 3

    Enter the address and secret

    http://localhost:6800/jsonrpc and the same secret you gave aria2. Test it below.

Why hand downloads to aria2

More connections

A browser fetches a file over one connection. When a server limits each connection, aria2's 16 add up: on our test server that was 10.6 times faster.

Real resume

aria2 tracks progress piece by piece in its .aria2 file, so a dropped connection or a reboot does not mean starting over.

Independent of the tab

Downloads run in aria2, not in the browser. Close the browser, or send them to a NAS that runs around the clock.

Which extension

We checked each project's repository and manifest. Manifest V3 matters: current Chrome no longer runs Manifest V2 extensions.

ExtensionBrowsersManifestNotes
Aria2 Explorer Chrome, Edge MV3 Built-in AriaNg panel, cookie forwarding, several aria2 servers, filters by size, site and file type. Hold Alt while clicking to let the browser download instead.
Aria2 Integration Firefox, Chrome, Edge MV3 The choice for Firefox. Can be configured by enterprise policy.
Camtd Chrome MV2 Last changed in 2018. As a Manifest V2 extension it does not run on current Chrome; use one of the others.

We did not install the extensions; the table comes from their source repositories. Settings screens change between versions, but every extension asks for the same things listed below.

How interception works

The extension does not download anything itself. It replaces the browser's download with one JSON-RPC call to aria2.

  1. 1You click a download
  2. 2The extension cancels the browser's copy
  3. 3It sends aria2.addUri with the link, cookies and Referer
  4. 4aria2 downloads the file

Why the cookies matter: a test

We set up a server that only serves a file to a logged-in browser (a session cookie and a Referer), then sent the same link to aria2 twice over RPC.

✗ Without the browser's headers

aria2.addUri
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "aria2.addUri",
  "params": [
    "token:YOUR_SECRET",
    [
      "https://example.com/protected.bin"
    ]
  ]
}
"errorCode":"22","errorMessage":"The response status is not successful. status=403","status":"error"

✓ With the Cookie and Referer an extension forwards

aria2.addUri
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "aria2.addUri",
  "params": [
    "token:YOUR_SECRET",
    [
      "https://example.com/protected.bin"
    ],
    {
      "header": [
        "Cookie: session=abc123",
        "Referer: https://example.com/page"
      ],
      "out": "from-browser.bin"
    }
  ]
}
"errorCode":"0","status":"complete"

aria2 itself has no idea you are logged in. The extension passes your session along in the header option, and that is what turns the 403 into a download.

Start aria2 with remote control

Run this once, with your own secret instead of YOUR_SECRET:

aria2c --enable-rpc --rpc-allow-origin-all=true --rpc-secret=YOUR_SECRET --daemon=true

This accepts connections from this computer only, which is all a browser extension on the same computer needs. To keep it running after reboots, use the config generator (remote control on) and start aria2 at login, or the Docker guide.

Extension settings

SettingValue
RPC addresshttp://localhost:6800/jsonrpc (some extensions ask for host, port and path separately)
Secret / tokenExactly the value of --rpc-secret
Capture downloadsOn
Minimum file size10 to 50 MB, so images and small PDFs stay in the browser
Forward cookiesOn, for anything behind a login
Download folderLeave empty to use aria2's own dir

Test the connection

Check that this browser can reach aria2 before you look at the extension. This sends aria2.getVersion to the address you enter, and nowhere else.

aria2 on another computer or a NAS

On your home network

Start aria2 there with --rpc-listen-all=true and a secret, and enter http://NAS-ADDRESS:6800/jsonrpc in the extension.

Over the internet

Do not forward port 6800. Use a VPN, or an HTTPS reverse proxy and an https:// address; the Docker guide has a tested nginx configuration.

Troubleshooting

aria2 fails with "status=403" for links that work in the browser

The site needs your login. Turn on cookie forwarding in the extension; it sends the cookies and the Referer with the download, as in our test above. Links that expire quickly may also need to be sent right after you click them.

The extension says it cannot connect

Test the address with the tester above. "Unauthorized" means a wrong secret. No answer means aria2 is not running with --enable-rpc --rpc-allow-origin-all=true, or the host or port is wrong.

Small files and images are captured too

Raise the extension's minimum file size, or exclude the site. In Aria2 Explorer, hold Alt while clicking a link to let the browser handle that one download.

Some downloads are never captured

Downloads that the page generates itself (blob: and data: addresses) have no URL that aria2 could fetch, so extensions leave them to the browser. For video sites use yt-dlp with aria2.

The file is downloaded twice

Two capturing extensions are installed, or the extension is set to keep the browser's copy. Keep one extension and let it cancel the browser download.

FAQ

Is there an extension for Firefox?

Yes: Aria2 Integration is on Firefox Add-ons, and also for Chrome and Edge. Aria2 Explorer is for Chrome and Edge only.

Is it safe?

Keep aria2 on this computer or your home network, and always set --rpc-secret. --rpc-allow-origin-all=true lets web pages call aria2, so the secret is what stops a random site from adding downloads.

Can I send downloads from my laptop to a NAS?

Yes. Point the extension at the NAS's aria2 (through a VPN or an HTTPS proxy when you are away from home). The download then runs on the NAS while the laptop sleeps.

Does it work with Motrix?

Motrix 1.x exposed aria2's own RPC, so aria2 extensions could send downloads to it. Motrix 2 (October 2026) still uses an aria2 fork inside, but apps talk to it over its own protocol, MDXP, with its own browser extension; use that one with Motrix 2.

Related resources