Skip to main content
Tewi logo

Tewi

Text-based interface for BitTorrent clients (Transmission, qBittorrent, Deluge, rTorrent)

About

Tewi Screen Shot

Tewi is a TUI (text user interface) for BitTorrent clients, supporting Transmission, qBittorrent, Deluge and rTorrent daemons.

Features:

  • Connect to Transmission/qBittorrent/Deluge/rTorrent daemon by credentials, with HTTPS support
  • Browse torrents list with sorting by multiple orders, filtering by state, name, category or label and in-list search
  • Different view modes: card, compact, oneline
  • Display torrent details: overview, files, trackers, peers
  • Manage torrent files: toggle download, change priority, multi-select, open downloaded files
  • View and edit torrent categories and labels
  • Edit torrent name and location
  • Add new torrents from file, magnet link, URL, info hash or clipboard
  • Torrent actions: start/pause, start/stop all, remove/trash, verify, reannounce, change priority, copy magnet link (single or multi-select)
  • View general speed limits and toggle alternative speed limits
  • View session statistics
  • View torrent client preferences
  • Search torrents on popular trackers (built-in search providers, Jackett, Prowlarr and bitmagnet integrations) with indexer and category selection, search presets and results sorting
  • Support for configuration files and different configuration profiles, with environment variable references for secrets
  • Color themes selection
  • Vim-style keybindings
  • Shell completion for bash, zsh, tcsh, fish and powershell

Built With

Getting Started

Prerequisites

Tewi requires Python 3.10+.

Installation

Recommended way to install is to use pipx, pip, or uv:

$ pipx install tewi-torrent
$ pip install tewi-torrent
$ uv tool install tewi-torrent

Shell completion

The package ships a pre-generated bash completion script as an installer data file (share/bash-completion/completions/tewi).

If you install Tewi with pipx or pip into a prefix your shell already scans for completions (e.g. a system-wide install), it's picked up automatically.

For any other install method, or for other shells, generate the script manually with --print-completion and install it into a directory your shell loads completions from. Tewi supports bash, zsh, tcsh, fish, and powershell.

For bash (loaded automatically by bash-completion in new shells):

$ mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion/completions"
$ tewi --print-completion bash > \
    "${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion/completions/tewi"

For zsh:

$ mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/zsh/site-functions"
$ tewi --print-completion zsh > \
    "${XDG_DATA_HOME:-$HOME/.local/share}/zsh/site-functions/_tewi"

If that directory is not in your fpath yet, add it to ~/.zshrc before compinit is called:

fpath=("${XDG_DATA_HOME:-$HOME/.local/share}/zsh/site-functions" $fpath)

The generated script is static: re-generate it after upgrading Tewi to pick up new command line options.

Usage

Launch Tewi from command line:

$ tewi

By default it connects to Transmission daemon on http://localhost:9091. To change these settings you could specify your connection details:

$ tewi --host XXXX --port XXXX

To connect to qBittorrent instead of Transmission:

$ tewi --client-type qbittorrent --port 8080

Or to Deluge (via Web UI):

$ tewi --client-type deluge --port 8112 --password XXXX

Or to rTorrent (0.9.7 or newer), directly via SCGI port (network.scgi.open_port in .rtorrent.rc):

$ tewi --client-type rtorrent --port 5000

Or to rTorrent via web server exposing XML-RPC (e.g. nginx or ruTorrent):

$ tewi --client-type rtorrent --host XXXX --port 443 --path /RPC2 --username XXXX --password XXXX

For daemon on another machine enable HTTPS with --tls (or https:// prefix in host), otherwise password is sent unencrypted. Daemon must serve HTTPS itself (qBittorrent and Deluge web UI support it) or via web server in front of it. Self-signed certificate (or its CA) could be trusted with --ca-cert:

$ tewi --client-type qbittorrent --host https://nas --port 8080 --ca-cert ~/nas.pem --username XXXX --password XXXX

Alternatively connect through SSH tunnel or VPN (e.g. WireGuard).

Status line shows connection security: TLS, TLS unverified (certificate verification is disabled) or No TLS (unencrypted connection to another machine, not shown for localhost).

Connection and other settings could be stored in configuration file. To create default configuration file use:

$ tewi --create-config

Multiple configuration profiles could be defined (e.g. for different daemons) in tewi-NAME.conf files, which are loaded on top of the main configuration file. Profile name may contain letters, digits, ., _ and -. To load one of them use:

$ tewi --profile NAME

Check other command line options using help command:

$ tewi --help

View available hot-keys in Tewi by pressing ? key.

Roadmap

See the open issues for a full list of proposed features (and known issues).

Contributing

Feel free to open bug reports and send pull requests.

License

Distributed under the GPL3+ license. See LICENSE.txt for more information.

Metadata

Release files for tewi-torrent 5.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tewi-torrent 5.0.0
File Size Uploaded Provenance Actions
tewi_torrent-5.0.0.tar.gz 1.2 MB With provenance Details for tewi_torrent-5.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tewi-torrent 5.0.0
File Interpreter ABI Platform Actions
tewi_torrent-5.0.0-py3-none-any.whl Python 3 none any Details for tewi_torrent-5.0.0-py3-none-any.whl

Total release size: 2.4 MB

Release files / tewi_torrent-5.0.0.tar.gz

Download URL tewi_torrent-5.0.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a31c8ec8335873547b186ce1624688b31007edb6835bfa56f36e3482772cb0ef
BLAKE2b-256 checksum
How to use checksums
140e3a6fd3e717335003a6879a637295bb902602c50b6e08da8575433eee5e90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / tewi_torrent-5.0.0-py3-none-any.whl

Download URL tewi_torrent-5.0.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3a67b3d63214360e51f35e2595aa9228bcbdf024ab73c97ad8e471cf09108ed2
BLAKE2b-256 checksum
How to use checksums
4b4ce87b45bcab585f1fcea3557d702393778e8b2912aa83595f78bbb8e1749b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for tewi-torrent 5.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tewi_torrent-5.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page