Skip to content

qBittorrent for Mere Mortals

Most downloads are a conversation with one server: it has the file, you ask, it sends. BitTorrent is the other shape — the file is cut into pieces, everyone who holds a piece can serve it, and a crowd downloads from itself. qBittorrent is the free, open-source program that joins those crowds for you: it keeps your list of torrents, proves every piece against its recorded hash before trusting it, and uploads while it downloads, because that trade is the whole design.

This guide teaches the headless form, qbittorrent-nox — the same program with no windows, run on a spare machine and driven entirely through its WebUI API with curl. That choice is deliberate: a control panel you can drive in text is a control panel you can check, and this guide checks everything. The lab ran two instances of qBittorrent 5.3.0 on one machine and made them trade: one seeded a file it already held, the other started with nothing but the map, and the file crossed — then was hashed at both ends, byte for byte, to prove the crossing was real.

The lab behind this guide used only files of its own invention: a 2 MiB text file of imaginary field notes and a smaller weather log, with .torrent maps the lab built by hand and printed the code for. Nothing was fetched from any swarm, any tracker, or anywhere else; the two instances met only because the lab introduced them, on loopback, with the client's public discovery systems switched off. The ethics line is chapter 1's and the program's own — run only what you have the right to share — and the lab was built so that line was never even approached.

What the lab could not do, it did not fake. Its network is a sandbox with no UDP, so BitTorrent's UDP transport went unexercised and every transfer ran over TCP. No public tracker, live DHT swarm, or router port-forward was available, so those are taught from the documentation and labelled. The desktop program and its dialogs — including its point-and-click torrent creator — are likewise described, not run. criteria.md keeps the full ledger of what was run and what was only read.

What this guide covers

  • What qBittorrent is — the mental model: pieces, swarms, seeds, and a program that checks every piece it accepts — plus the ethics line, stated before any procedure
  • The moving parts — the libtorrent engine, the profile folder that is the whole memory, the state vocabulary, the four ways peers are found, and the WebUI behind its login
  • Installing qBittorrent — the single static headless binary, the hash check on the download, the version check, and the two ports that must never be confused
  • First start and the temporary password — the legal notice, the one-session password the console prints, logging in with curl, setting your own password, and proving it across a restart
  • Preferences that matter — settings as one JSON document: the save path, speed limits in bytes, the discovery switches, and the WebUI's own guards
  • Your first torrent — the map and the territory: what a .torrent file holds, where the info hash comes from, adding one through the API, and the magnet link's built-in wait
  • Seeding and downloading — the lab's whole experiment: a seeder checked and ready, a downloader stalled at zero, one introduction, a watched transfer, and a hash at both ends
  • Running torrents day to day — stop and start (renamed in this version), the recheck caught mid-flight, reading one torrent closely, and delete's two very different shapes
  • Categories and tags — the one-drawer filing system that can steer storage, and the stickers that only describe
  • RSS — the feed that fetches — a watched feed, a rule that decides, a torrent that adds itself — and a renamed field that teaches why you read back what you wrote
  • Recipes — move a file between your own machines, cap a busy client, audit everything a client holds, follow a series by feed, and run a polite seedbox
  • The neighbours — Transmission, Deluge, rTorrent, aria2, the Usenet cousins, and WebTorrent: what each does that qBittorrent doesn't, and vice versa
  • Limits — no finding things for you, no anonymity, one password guarding everything, reachability belonging to the router, and the parts of the lab itself that could not run
  • Troubleshooting — the 403 and the 401, the lost password, the five-try lockout, the stall that is really an empty swarm, the magnet that waits forever, and the port already taken
  • Glossary — the terms, collected in one place

What it doesn't cover

Finding torrents. The program has a search-plugin system, and chapter 13 explains why this guide leaves it alone: where a torrent comes from is exactly where the reader's own judgement — and rights — apply, and a client guide is the wrong place to spend them. Sharing anything you do not have the right to share is out in the same way, on the same page. Private trackers and their etiquette, ratio economies, and the seedbox rental market are other worlds with other guides; this one stays on your own machine, with your own files.

How to use this guide

Read chapter 1 for the model and the line, and chapter 2 before starting anything — knowing that the profile folder is the instance turns later surprises into named files. Chapters 3 and 4 put a running, passworded program in front of you; chapter 6 reads a torrent map the way the client does, and chapter 7 is the one to read slowly: every state the rest of the guide names is earned there, in one real transfer. The lab's transcripts live in qbittorrent-lab/transcripts/; its fixture-making and torrent-making scripts are qbittorrent-lab/make_fixture.py and qbittorrent-lab/make_torrent.py, and its feed is qbittorrent-lab/feed.xml, so every claim can be re-run, not just read.


Part of the series

This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.

Related guides:

License

The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.