Dirless uses age to encrypt your directory snapshot end-to-end. Your private key never leaves your machine - decryption happens entirely in the browser. You only need to generate a keypair once.
age is available on all major platforms.
brew install age
sudo apt install age
sudo dnf install age
winget install FiloSottile.age
Or download a pre-built binary directly from the age releases page.
Run this command in your terminal:
age-keygen -o age-key.txt
This writes both the public key (a comment line starting with #) and
the private key to age-key.txt in the current directory. The file looks like:
# created: 2026-01-15T10:23:44+00:00 # public key: age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p AGE-SECRET-KEY-1QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
Copy the line starting with AGE-SECRET-KEY-1 - that is your private key.
Paste it into Dirless when prompted. Store age-key.txt somewhere safe,
such as a password manager (1Password, Bitwarden, KeePass, etc.).
The public key (the age1… value on the comment line) is stored by
Dirless automatically when you first decrypt - you do not need to provide it separately.