| name | control-rutorrent |
| description | Control ruTorrent/rTorrent via HTTPRPC. List torrents, inspect files/peers/trackers, add torrents from URL or magnet links, run lifecycle actions (start/stop/pause/unpause/recheck/remove), or read global transfer statistics. |
ruTorrent HTTPRPC
Use scripts/rutorrent_client.py to call ruTorrent HTTPRPC endpoints.
Prepare Connection
- Verify that the ruTorrent
httprpc plugin is installed and enabled.
- Export connection variables:
RUTORRENT_URL
RUTORRENT_USER (Optional)
RUTORRENT_PASS (Optional)
- Run commands with
python scripts/rutorrent_client.py <command>.
CLI Examples
python scripts/rutorrent_client.py list
python scripts/rutorrent_client.py add "magnet:?xt=..."
python scripts/rutorrent_client.py start <hash>
python scripts/rutorrent_client.py stop <hash>
python scripts/rutorrent_client.py remove <hash>
python scripts/rutorrent_client.py global-stats
Library Usage
from scripts.rutorrent_client import RuTorrentHttprpcClient
c = RuTorrentHttprpcClient("https://host/rutorrent", "user", "pass")
torrents = c.list_torrents()
c.start("INFO_HASH")