I wanted to see more about my qBittorrent traffic than the built-in statistics show, so I built qbt-stats: a small background service that records your traffic and shows it on a dashboard in your browser.
It's free and open source, and I'm happy to add more ideas. One I'm thinking about is a global hall of fame, per user or per country.
Full disclosure: the program is 100% vibe coded. If that's not for you, feel free to skip it.
https://raw.githubusercontent.com/Mrgabriel88/qbt-stats/main/docs/screenshots/overview.png
What it shows
- Upload and download per day, week, month and year
- A world map of where your upload goes, plus the ISPs, VPNs and clients of your peers
- A library of every torrent's upload, ratio and seeding time
- Health: uptime, free disk space and tracker status
- A hall of fame of your best days, weeks and months
- Light, dark and automatic themes, and an optional weekly summary notification
https://raw.githubusercontent.com/Mrgabriel88/qbt-stats/main/docs/screenshots/map.png
https://raw.githubusercontent.com/Mrgabriel88/qbt-stats/main/docs/screenshots/fame.png
How it works
It's one Python file and one HTML page, with nothing to install besides Python 3.9+. Everything stays on your own computer; nothing is sent anywhere. It's built for macOS, Linux and Windows, and there's a Docker image for servers and NAS boxes (amd64 and arm64).
Install
First turn on the Web UI in qBittorrent (Tools → Options → Web UI). Then pick one of these:
Option 1: Double-click. Download the zip from the latest release, unzip it and open Install qbt-stats (.command on Mac, .bat on Windows).
Option 2: Homebrew (Mac/Linux)
brew install mrgabriel88/tap/qbt-stats
brew services start qbt-stats
Option 3: Docker
docker run -d --name qbt-stats --restart unless-stopped -p 8899:8899 \
-v qbt-stats-data:/data \
-e QBT_URL=http://host.docker.internal:8080 \
--add-host host.docker.internal:host-gateway \
ghcr.io/mrgabriel88/qbt-stats:latest
Option 4: From source
git clone https://github.com/Mrgabriel88/qbt-stats.git
cd qbt-stats
python3 install.py
Then open http://localhost:8899 in your browser.
If your Web UI needs a login, the installer can use a qBittorrent API key (5.2 or newer) or your user name and password. It stores them in a private settings file on your computer.
GitHub: https://github.com/Mrgabriel88/qbt-stats (MIT license)
This is version 0.1 and so far I've only tested it on macOS, so feedback, bug reports and ideas are very welcome, especially from Windows, Linux and Docker users.