Configuration

torrra’s behavior can be customized through a config.toml file, allowing you to set default paths, indexers, preferences, and other operational parameters.

Configuration File Location

The config.toml file is automatically created in your operating system’s standard user configuration directory. This ensures torrra follows best practices for application data storage.

The precise location varies by OS:

  • Linux/macOS: ~/.config/torrra/config.toml

  • Windows: %APPDATA%\torrra\config.toml

The actual path is automatically resolved by torrra using the platformdirs Python library.

Example config.toml

Here’s an example of what your config.toml might look like:

schema_version = 1

[general]
download_path = "/home/username/Downloads"    # Fallback folder when a torrent has no custom save path
download_in_external_client = false           # If true, opens magnet links in an external torrent client instead of downloading the .torrent file.
theme = "textual-dark"                        # Theme for the application (e.g., "textual-dark", "textual-light", etc.).
timeout = 10                                  # The timeout in seconds for requests to indexers.
max_retries = 3                               # The maximum number of times to retry a request to an indexer if it times out.
use_cache = true                              # If true, search results will be cached to speed up subsequent searches.
cache_ttl = 300                               # The time in seconds that search results will be cached.
seed_ratio = 1.5                              # Target upload/download ratio. Seeding stops when reached. Omit or set None for infinite seeding.
default_sort = "relevance"                    # Initial sort for search results: "relevance", "seeders", "size", "title" or "leechers".
default_sort_order = "auto"                   # Direction for the initial sort: "auto", "desc" or "asc". "auto" uses each field's natural direction (title A-Z, seeders/size/leechers high-to-low). Ignored when default_sort is "relevance".
min_seeders = 0                               # Hide results with fewer seeders than this. 0 shows everything.
update_check = true                           # Check for a newer release each time the TUI starts.

[speed_limit]
upload_limit = "10 KB/s"                        # Global upload cap (turtle mode). e.g. "10 KB/s", "500K", "2M", "unlimited" or 0.
download_limit = "10 KB/s"                      # Global download cap (turtle mode). e.g. "10 KB/s", "2M", "unlimited" or 0.
enabled = false                               # Whether turtle mode is currently active. Toggled at runtime with the `t` key.

[indexers]
default = "jackett"                           # The name of the default indexer to use if none is specified at runtime

[indexers.jackett]
url = "http://localhost:9117"                 # Base URL of the Jackett instance
api_key = "your-jackett-api-key"              # API key for authentication

[indexers.prowlarr]
url = "http://localhost:9696"                 # Base URL of the Prowlarr instance
api_key = "your-prowlarr-api-key"             # API key for authentication

You can create or edit this file manually with a text editor.

Global Speed Limits (Turtle Mode)

The [speed_limit] section defines session-wide bandwidth caps, similar to “alt-speed” in Transmission or qBittorrent:

[speed_limit]
upload_limit = "1 MB/s"       # global upload cap; "unlimited" or 0 = no cap
download_limit = "2 MB/s"     # global download cap; "unlimited" or 0 = no cap
enabled = false               # whether turtle mode is currently active

When enabled is true, all traffic in every torrra session is capped at these rates. Inside the TUI you can toggle this on/off instantly with the t key — the status bar shows a TURTLE badge while active.

New configs ship with qBittorrent-style defaults of 10 KB/s in both directions, so turtle mode works out of the box. Set custom limits from your shell (human-readable units are accepted):

torrra config set speed_limit.download_limit 2M
torrra config set speed_limit.upload_limit 500K

These global caps coexist with per-torrent limits set via s in the Downloads view; each torrent is limited by whichever cap is lower.

Update Notifications

torrra checks for a newer release every time the TUI starts and shows a small notification when one is available. It never downloads or installs updates itself; updates always go through the channel you installed with:

  • uv tool → uv tool upgrade torrra

  • pipx → pipx upgrade torrra

  • WinGet → winget upgrade stabldev.torrra

  • Homebrew → brew upgrade torrra

  • AUR, system packages, Nix, and Docker → use the corresponding package manager or pull the latest image

The check uses PyPI for Python installs and GitHub Releases for standalone binaries. Disable it with:

torrra config set general.update_check false

Download Paths

general.download_path is shown as the initial Save to value. Leave it unchanged or clear the field to keep using that global fallback. When adding a torrent from search, a magnet URI, a URL, or a local .torrent file, you can enter a different directory in the file-selection screen. Direct downloads can also prefill it:

torrra download "magnet:?xt=urn:btih:..." --save-path /downloads/linux

Paths must be absolute, and missing directories are created when a new download is confirmed. Torrra shows an error rather than silently falling back if an explicit path is invalid or not writable.

A torrent’s custom path is stored in Torrra’s SQLite data file and reused after a restart. Existing database rows without a stored path continue to use the current general.download_path. Changing or moving the path of a torrent that has already been added is not currently supported.

The SQLite file is also placed by platformdirs: under ~/.local/share/torrra/torrra.db on Linux, ~/Library/Application Support/torrra/torrra.db on macOS, and %LOCALAPPDATA%\torrra\torrra.db on Windows.

Theme Configuration

You can change the look and feel of torrra by setting the theme option in the [general] section of your config.toml.

The available themes are:

  • catppuccin-latte

  • catppuccin-mocha

  • dracula

  • flexoki

  • gruvbox

  • monokai

  • nord

  • solarized-light

  • textual-ansi

  • textual-dark (default)

  • textual-light

  • tokyo-night

To use a different theme (e.g., gruvbox), you can either edit your config.toml file:

[general]
theme = "gruvbox"

Or, you can set it directly from the command line:

torrra config set general.theme gruvbox

Indexer Selection

torrra supports configuring multiple torrent indexers (e.g., Jackett, Prowlarr) in the config file. At runtime, you can:

Use the default indexer by simply running:

torrra

Override the default by specifying the indexer name:

torrra jackett

This will use the configuration under [indexers.jackett]. If the selected indexer is not defined in the config file, torrra will show an error and exit.

Managing Your Configuration via CLI

torrra provides built-in command-line tools to inspect and modify your configuration settings without directly editing the config.toml file. This is particularly useful for scripting or quick adjustments.

Use the torrra config subcommand followed by get, set, list, or edit.

Retrieving a Configuration Value

To get the value associated with a specific key:

torrra config get general.download_path

This command would output the currently configured download path.

Setting a Configuration Value

To set a configuration key to a new value:

torrra config set general.download_in_external_client true

This would change the download_in_external_client setting to false. Note that boolean values (true/false) should be provided as such, and strings should be enclosed in quotes if they contain spaces or special characters (though for simple paths, it might not always be necessary depending on your shell).

Listing All Configuration Values

To view all currently set configuration values in your config.toml file:

torrra config list

This command will display a comprehensive list of all configured settings and their current values, including general preferences and indexer-related entries.

Editing Configuration in an Editor

To open the config.toml file directly in your default command-line editor (or the editor set in $VISUAL / $EDITOR):

torrra config edit

You can also specify a custom editor using the --editor (or -e) option:

torrra config edit --editor nano