Configuration
qbt is configured with a TOML file. Most commands need at least the
[qbittorrent] connection block.
Config file location
Section titled “Config file location”Create .qbt.toml in ~/.config/qbt/:
mkdir -p ~/.config/qbt && touch ~/.config/qbt/.qbt.tomlqbt looks for a file named .qbt.toml in the following locations, in order:
- the current working directory
- your home directory (
$HOME) $HOME/.config/qbt
You can also point at a specific file with the global --config flag:
qbt --config /path/to/.qbt.toml torrent listMinimal configuration
Section titled “Minimal configuration”[qbittorrent]addr = "http://127.0.0.1:6776" # qbittorrent webui-api hostname/iplogin = "user" # qbittorrent webui-api user (optional)password = "password" # qbittorrent webui-api password (optional)Connection - [qbittorrent]
Section titled “Connection - [qbittorrent]”| Key | Description |
|---|---|
addr |
qBittorrent Web API URL, including scheme and port |
login |
Web API username (optional) |
password |
Web API password (optional) |
apikey |
Web API key - qBittorrent 5.2.x and newer only (optional) |
basicUser |
HTTP basic auth username, if your Web API is behind basic auth |
basicPass |
HTTP basic auth password, if your Web API is behind basic auth |
Reannounce - [reannounce]
Section titled “Reannounce - [reannounce]”Some trackers are buggy and need a reannounce before a torrent can start.
These values are used by qbt torrent reannounce.
[reannounce]enabled = true # true or falseattempts = 10 # number of attempts, typically 10-30interval = 7000 # interval between attempts, in millisecondsRules - [rules]
Section titled “Rules - [rules]”Limit how many torrents download simultaneously. Applied when adding torrents
unless you pass --ignore-rules.
[rules]enabled = true # enable or disable rulesmax_active_downloads = 2 # max active downloads- On HDDs with 1 Gbit,
max_active_downloads = 2is a good value to avoid overloading the disks while giving each torrent as much bandwidth as possible. - On SSDs and 1 Gbit+ you can increase this value.
Add defaults - [add]
Section titled “Add defaults - [add]”Defaults applied by qbt torrent add.
[add]sequential = false # download pieces in sequential order (useful for streaming)first_last_piece = false # prioritize first and last pieces for all new torrentsCompare instances - [[compare]]
Section titled “Compare instances - [[compare]]”qbt torrent compare can
compare torrents against other qBittorrent instances. Add one [[compare]]
block per instance.
[[compare]]addr = "http://100.100.100.100:6776"login = "user"password = "password"#basicUser = "user"#basicPass = "password"
[[compare]] # you can specify multiple compare blocksaddr = "http://100.100.100.101:6776"login = "user"password = "password"autodl-irssi
Section titled “autodl-irssi”qbt torrent add works well as an autodl-irssi upload action.
Edit autodl.cfg.
Global action:
[options]...upload-type = execupload-command = /usr/bin/qbtupload-args = add "$(TorrentPathName)"Per filter:
[filter example_filter_action]...upload-type = execupload-command = /usr/bin/qbtupload-args = add "$(TorrentPathName)" --category cat1 --tags tag1ruTorrent
Section titled “ruTorrent”In ruTorrent, go to autodl-irssi Preferences, then the Action tab and set
the following for the global action. This can be set per filter as well, where
you can also add a category, tags and so on.
Choose .torrent action: Run ProgramCommand: /usr/bin/qbtArguments: add "$(TorrentPathName)"