Quickstart
Your first encrypted vault, mounted as a drive, in under 60 seconds.
This page assumes you've installed LUKSbox via your platform's package or pulled a release binary. If not, see Install on Linux, macOS, or Windows first.
Heads-up before you start. A LUKSbox vault is a travelling copy of your data (cloud sync, shared drive, USB stick), not a master copy. If the
.lbxfile is corrupted or every keyslot becomes inaccessible, the data is gone. Always keep an unencrypted copy of anything you cannot afford to lose somewhere you trust. See the docs intro for the full why and the Disclaimer for the no-warranty / no-liability details.
1. Create a vault
luksbox create my-vault.lbx
# Prompts for a passphrase. Twice.
That's it. You now have an empty encrypted vault at my-vault.lbx.
It already takes about 64 MiB, plus a same-size my-vault.lbx.meta-bak
mirror: the encrypted metadata region (directory tree and file chunk
lists) is reserved up front, so it never has to be resized. For
a small vault, create it with a smaller region instead:
luksbox create my-vault.lbx --metadata-size 4M (this caps how many
files the vault can hold, not how big they can be, and cannot be
changed later). Default cipher: AES-256-GCM-SIV. Default KDF:
Argon2id "interactive" preset (256 MiB memory, about 500 ms per unlock
on modern hardware).
New vaults use header format v3 (since LUKSbox 0.6.0), which lets a
rollback anchor detect a restored old header, and they need LUKSbox
0.6.0 or later to open. If an older LUKSbox (0.2.1 to 0.5.x) must
still open the vault, add --header-v2 to create.
2. Add some files
luksbox put my-vault.lbx /etc/hostname /hostname # add a file
luksbox mkdir my-vault.lbx /docs # make a folder
luksbox put my-vault.lbx report.pdf /docs/2026-q1.pdf # rename on the way in
luksbox ls my-vault.lbx / # list root
luksbox ls my-vault.lbx /docs # list a subdir
Each command unlocks the vault on its own, so each one asks for the passphrase.
3. Mount as a drive
mkdir /tmp/v
luksbox mount my-vault.lbx /tmp/v # daemonizes
ls /tmp/v # transparent file access
cat /tmp/v/hostname # works like any file
luksbox umount /tmp/v # clean unmount
Same mount works on macOS (with FUSE-T or macFUSE installed) and
Windows (with WinFsp installed), where you point it at a free drive
letter: luksbox mount my-vault.lbx Z:, then luksbox umount Z:. It
runs in the background and gives you the prompt back on every platform
(on Windows since 0.6.1); add -f to keep it in the foreground, where
Ctrl-C unmounts.
4. Add a hardware key
If you have a YubiKey, Google Titan, or other CTAP2 device:
luksbox enroll my-vault.lbx --kind fido2
# Enter your passphrase to unlock, then touch the key when prompted
# and enter its PIN if requested.
Now the vault has two keyslots: passphrase (slot 0) and FIDO2 (slot 1). Either can unlock it. Lose the passphrase, your YubiKey still opens the vault; lose the YubiKey, your passphrase still does.
5. Where to next
- The CLI reference has every flag of every subcommand.
- FIDO2 keyslots covers multi-device, Windows Hello, and the recoverable-vs-direct trade-off.
- Recovery covers what to do when you lose access.