π¦ ClawHub
Qbittorrent
by @jmagar
Manage torrents with qBittorrent. Use when the user asks to "list torrents", "add torrent", "pause torrent", "resume torrent", "delete torrent", "check download status", "torrent speed", "qBittorrent stats", or mentions qBittorrent/qbit torrent management.
TERMINAL
clawhub install qbittorrentπ About This Skill
name: qbittorrent version: 1.0.0 description: Manage torrents with qBittorrent. Use when the user asks to "list torrents", "add torrent", "pause torrent", "resume torrent", "delete torrent", "check download status", "torrent speed", "qBittorrent stats", or mentions qBittorrent/qbit torrent management.
qBittorrent WebUI API
Manage torrents via qBittorrent's WebUI API (v4.1+).
Setup
Config: ~/.clawdbot/credentials/qbittorrent/config.json
{
"url": "http://localhost:8080",
"username": "admin",
"password": "adminadmin"
}
Quick Reference
List Torrents
# All torrents
./scripts/qbit-api.sh listFilter by status
./scripts/qbit-api.sh list --filter downloading
./scripts/qbit-api.sh list --filter seeding
./scripts/qbit-api.sh list --filter pausedFilter by category
./scripts/qbit-api.sh list --category movies
Filters: all, downloading, seeding, completed, paused, active, inactive, stalled, errored
Get Torrent Info
./scripts/qbit-api.sh info
./scripts/qbit-api.sh files
./scripts/qbit-api.sh trackers
Add Torrent
# By magnet or URL
./scripts/qbit-api.sh add "magnet:?xt=..." --category moviesBy file
./scripts/qbit-api.sh add-file /path/to/file.torrent --paused
Control Torrents
./scripts/qbit-api.sh pause # or "all"
./scripts/qbit-api.sh resume # or "all"
./scripts/qbit-api.sh delete # keep files
./scripts/qbit-api.sh delete --files # delete files too
./scripts/qbit-api.sh recheck
Categories & Tags
./scripts/qbit-api.sh categories
./scripts/qbit-api.sh tags
./scripts/qbit-api.sh set-category movies
./scripts/qbit-api.sh add-tags "important,archive"
Transfer Info
./scripts/qbit-api.sh transfer # global speed/stats
./scripts/qbit-api.sh speedlimit # current limits
./scripts/qbit-api.sh set-speedlimit --down 5M --up 1M
App Info
./scripts/qbit-api.sh version
./scripts/qbit-api.sh preferences
Response Format
Torrent object includes:
hash, name, state, progressdlspeed, upspeed, etasize, downloaded, uploadedcategory, tags, save_pathStates: downloading, stalledDL, uploading, stalledUP, pausedDL, pausedUP, queuedDL, queuedUP, checkingDL, checkingUP, error, missingFiles
βοΈ Configuration
Config: ~/.clawdbot/credentials/qbittorrent/config.json
{
"url": "http://localhost:8080",
"username": "admin",
"password": "adminadmin"
}