Skip to content

Configuration

The CLI that reads this file has no published release yet — the source is closed and no binary is downloadable. This page documents the configuration surface the first release will read; the browser client stores none of it. See Install.

Tallow stores its configuration in a TOML file following XDG conventions. The file is a set of tables — [network], [transfer], [privacy], [ui] — not a flat list of top-level keys.

Config File Location

Platform Path
Linux ~/.config/tallow/config.toml
macOS ~/Library/Application Support/tallow/config.toml
Windows %APPDATA%\tallow\config.toml

Show the path on your system (the resolved path is printed by config show):

Terminal window
tallow config show # prints "# Path: ~/.config/tallow/config.toml" and the effective values
tallow config edit # open it in $EDITOR

Configuration Keys

Network — [network]

[network]
# Local network discovery (mDNS)
enable_mdns = true
# Relay fallback when a direct path is unavailable
enable_relay = true
# Relay servers, in preference order
relay_servers = ["<relay-host>:4433"] # the hosted relay is the built-in default
# STUN / TURN servers used for NAT traversal
stun_servers = ["<relay-host>:3478"]
turn_servers = []

The relay address, a SOCKS5 proxy and Tor are per-invocation flags (--relay, --proxy, --tor), not config keys: --tor is shorthand for --proxy socks5://127.0.0.1:9050, TALLOW_RELAY / TALLOW_PROXY supply the same defaults from the environment, and --tor/--proxy imply --no-p2p (see the CLI reference).

Transfer — [transfer]

[transfer]
# Enable compression at all (the codec itself is chosen per send)
enable_compression = true
# Chunk size in bytes
chunk_size = 262144
# Where received files are written
download_dir = "~/Downloads"
# Auto-accept offers from trusted contacts
auto_accept_trusted = false
# Bandwidth throttle, e.g. "10MB"; empty = unlimited
default_throttle = ""
# Exclusion defaults (gitignore syntax) and .gitignore handling
default_exclude = ""
default_gitignore = false

The codec is a command-line choice — tallow send --compress auto|zstd|brotli|lz4|lzma|none, default auto (zstd) — and is recorded in the share manifest, so the receiver reads it from the transfer rather than from its own config.

Privacy — [privacy]

[privacy]
# Strip metadata (EXIF/GPS, PDF, Office docProps) from files before sending.
# Read by the CLI/TUI only; `tallow send --strip-metadata` is the per-send switch.
# On by default; set it to false to keep metadata intact.
strip_metadata = true
# Encrypt filenames (they are otherwise visible as send metadata)
encrypt_filenames = false
# Onion routing / DoH, when a DoH endpoint is wanted
enable_onion_routing = false
use_doh = false
default_proxy = ""

What strip_metadata does not control. The browser client never reads this file. Its stripping is a separate per-device preference — Settings → Privacy → Strip file metadata — and it is opt-in and off by default there too: an absent setting means off, only an explicit true turns it on, and stripping a photo re-encodes it (lossy). The full behaviour, including which file types are rewritten, is on Security Model → Metadata.

Identity — [ui] and contact state

[ui]
theme = "auto" # dark / light / auto
show_notifications = true
language = "en"

The contact identity key is not a config key: generate one with tallow identity generate, and it lives in the config directory (identity.enc) rather than in config.toml. Display names and contacts are managed with tallow contacts.

CLI Management

Terminal window
# View current configuration (and the resolved file path)
tallow config show
# Read one key, or list every key and value
tallow config get transfer.enable_compression
tallow config list
# Set a value (dotted keys; values are typed, not strings)
tallow config set network.relay_servers relay.example.com:4433
tallow config set network.enable_mdns false
tallow config set transfer.default_throttle 10MB
# Open the file in $EDITOR, or reset to defaults
tallow config edit
tallow config reset --yes

Environment Variables

Environment variables override config file values:

Variable Supplies
TALLOW_RELAY The default for --relay (the relay address is a flag, not a config key)
TALLOW_RELAY_PASS The relay password, where the relay requires one
TALLOW_CODE The room code for send/receive
TALLOW_PROXY The default for --proxy — a SOCKS5 endpoint; --tor is the 127.0.0.1:9050 shorthand
NO_COLOR Disable coloured output

Browser Client Settings

The browser client (homepage send module) keeps non-sensitive preferences in localStorage under the tallow-settings- prefix (for example, notification and privacy toggles). Cryptographic session keys and identity material live only in memory and are never persisted to disk.

Precedence

Configuration is resolved in this order (highest priority first):

  1. Command-line flags (--relay, --proxy, --tor, --compress, …)
  2. Environment variables (TALLOW_RELAY, TALLOW_PROXY, TALLOW_CODE, …) — --relay, --proxy and the code read their defaults from these
  3. Config file (config.toml)
  4. Built-in defaults