Skip to content
piecemeal
Esc
↑↓navigate↵open⌘Jpreview

Self-hosted BitTorrent client · Go · MIT

Every piece,
in its place.

piecemeal is a BitTorrent client for your server. It speaks qBittorrent to Radarr, Sonarr and Prowlarr, comes with a web UI built for the browser, and signs your household in with SSO. One Go binary on anacrolix/torrent.

ubuntu-26.04-desktop-amd64.iso

Downloading4.7 MiB/s6.09 GiB1 seed

62.0%

Have 0Downloading 0Missing 0Piece size 4.00 MiB

piecemeal.home.arpa
piecemeal's torrent list in the light theme, with three downloads in progress and five torrents seedingpiecemeal's torrent list in the dark theme, with three downloads in progress and five torrents seeding

A drop-in for the *arrs

Speaks qBittorrent, so your stack doesn't change.

Add piecemeal to Radarr, Sonarr or Prowlarr as a qBittorrent download client, with an API key that only works on the qBittorrent API. Categories, save paths, tags and seeding goals behave the way they expect.

  • Radarr 7grabs and imports a release through piecemeal in CI
  • Sonarr 4download client test in CI
  • Prowlarr 3download client test in CI
  • VueTorrent 2.37served by piecemeal at /qbittorrent/
  • qBittorrent 5.3CI compares piecemeal's answers with the real thing
Connect the *arrs →

Settings › Download Clients › qBittorrent

Name
piecemeal
Host
piecemeal
Port
8080
API key
pm_••••••••••••••••
Category
radarr

Test succeeded

What's inside

Everything a server's torrent client needs, and nothing it doesn't.

A web UI made for the browser

Live updates, keyboard shortcuts, filters by state, category, tag and tracker, file priorities and renames, and a live piece map. On a phone too.

Users, SSO and scoped keys

A local admin, people from any OpenID Connect provider with allowed and admin groups, and API keys for full access, the qBittorrent API, or reading.

RSS with qBittorrent's rules

Feeds in folders, and rules with wildcards or regular expressions, episode filters and the smart episode filter. Bring your qBittorrent rules as they are.

Queueing and seeding goals

Limit what downloads and seeds at once. Stop or remove torrents at a ratio, a seeding time or an idle time, per torrent or for all of them.

VPN port forwarding

Run inside a WireGuard container and forward the peer port with NAT-PMP. piecemeal follows the port when the VPN changes it.

Built to be operated

Prometheus metrics, health and readiness checks, structured logs, an audit log, online backups, and import from Transmission and qBittorrent.

A downloading torrent's piece map, in the light themeA downloading torrent's piece map, in the dark theme
Files, peers, trackers and a live piece map for every torrent.
The torrent list on a phone, in the light themeThe torrent list on a phone, in the dark theme
The same app on a phone.

Measured, not promised

A thousand torrents, barely noticed.

735/s

torrents added, with their data in place

1.0s

to verify them all after the last add

2.2%

of one core while idle

31MiB

Go heap in use

13ms

per incremental sync poll, as VueTorrent makes

From test/load with 1,000 torrents on an Apple M5 with an SSD. Run it on your own disks: Performance.

Safe by default

It can write to your disks. It acts like it.

piecemeal treats every request, every link from an indexer and every torrent as untrusted. It went through a security review before 1.0, and the code that reads untrusted input is fuzzed.

How piecemeal stays safe →
  • Save paths confined to the directories you allow, with symlinks resolved
  • Links from indexers can't reach into your network: private addresses are refused when dialing
  • Sign-in limits per address, and bounded password hashing
  • CSRF checks on requests from browsers, and an optional host allowlist
  • Session tokens and API keys stored only as hashes
  • Signed images with SBOMs and build provenance

How it compares

Pick the right client, even if it isn't this one.

piecemeal is built for one job: a server that the *arrs drive. Here's how it measures up against the clients most servers run, what it can't do included.

Featurepiecemeal1.xqBittorrent5.3Transmission4.1Deluge2.2
Radarr, Sonarr and ProwlarrYes: Yes, as qBittorrentYesYes: Yes, labels as categoriesPartly: Needs the Label plugin
Categories with save pathsYesYesNo: Labels onlyPartly: Label plugin
Web UI on a phoneYesPartly: Desktop layoutYesNo
Users, SSO and scoped API keysYesPartly: One account, one full keyNo: One accountPartly: Daemon accounts, no SSO
RSS with download rulesYesYesNoPartly: Third-party plugin
Seeding goalsYes: Ratio, time, idleYes: Ratio, time, idlePartly: Ratio, idlePartly: Ratio
Per-torrent speed limitsNoYesYes: Yes, not in the web UIYes
Search engineNoYes: Search pluginsNoNo
Proxy and I2PPartly: Proxy, no I2PYesNoYes
Bind to a VPN interfaceYesYesPartly: To an addressYes
Port forwarding through a VPNYes: NAT-PMP, built inPartly: External scriptPartly: External scriptPartly: External script
Prometheus metrics, health checksYes: Built inPartly: Third-party exporterPartly: Third-party exporterPartly: Third-party exporter
Private trackers with client listsNo: Not on the listsYes: Widely allowedYes: Widely allowedYes: Widely allowed
Desktop appNoYesYesYes
First released2026200620052006; no release since April 2025
LicenseMITGPL-2.0+GPL-2.0 or 3.0GPL-3.0+

qBittorrent 5.3.0, Transmission 4.1.4 and Deluge 2.2.0 as they run on a server, compared from their source and documentation in November 2026. Speed and memory aren't compared: there's no fair benchmark of all four.

The full comparison, feature by feature →

Quick start

Running in a minute.

  1. Make a password hash: docker run --rm -i ghcr.io/sebdanielsson/piecemeal hash-password
  2. Put it in .env as PIECEMEAL_ADMIN_PASSWORD_HASH, then docker compose up -d.
  3. Open http://localhost:8080 and sign in as admin.

Moving from Transmission or qBittorrent? Bring your torrents, data and all.

compose.yaml
services:
  piecemeal:
    image: ghcr.io/sebdanielsson/piecemeal:latest
    user: "1000:1000"
    ports:
      - 8080:8080
      - 6881:6881
      - 6881:6881/udp
    environment:
      PIECEMEAL_ADMIN_PASSWORD_HASH: ${PIECEMEAL_ADMIN_PASSWORD_HASH}
    volumes:
      - piecemeal-data:/data
      - /srv/media/downloads:/downloads
    restart: unless-stopped

volumes:
  piecemeal-data:

Ready when your *arrs are.