Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Config file

stash reads ~/.config/stash/stash.toml on startup (macOS: ~/Library/Application Support/stash/stash.toml). Create the directory and file if they do not exist.

# ~/.config/stash/stash.toml
db = "/mnt/usb/stash.db"
session_timeout_minutes = 60   # default: 15; set to 0 to disable timeout
clipboard_clear_seconds = 30   # clear clipboard N seconds after --copy; default: 0 (disabled)
browser = "firefox"            # preferred browser for `stash web`
private = true                 # default privacy mode for URL items with no per-item preference

# Private-mode flags for browsers not built in to stash.
# Key = browser binary name, value = the flag that opens a private window.
[browser_flags]
opera          = "--private"
my-browser     = "--incognito"

Alternate database location

The database path is resolved in this order (first match wins):

SourceExample
--db flagstash --db /tmp/test.db list
STASH_DB env varexport STASH_DB=/mnt/usb/stash.db
db in stash.tomldb = "/mnt/usb/stash.db"
Default~/.local/share/stash/stash.db

Data storage

FilePurpose
~/.local/share/stash/stash.dbSQLCipher-encrypted database
~/.local/share/stash/stash.saltArgon2id salt for key derivation (mode 0600)
~/.local/share/stash/.sessionCached session key (mode 0600)

On macOS the base directory is ~/Library/Application Support/stash/.