Expand description
Export to and import from the encrypted .vault file
(docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8).
A .vault file is an age file encrypted to a passphrase (age’s scrypt
recipient), whose plaintext is the JSON in docs/api/VAULT_FILE_FORMAT.md.
age -d backup.vault opens it without AgentMux.
Only the person exports or imports: these functions are reached through the
host, which picks the file in its native dialog, so no agent chooses a path.
An import is two steps: inspect reads and decrypts the file into memory and
describes it with no values; commit writes it, in one transaction.
Structs§
- Export
Result - What an export reported.
- Import
Preview - Import
Result - Preview
Entry - Preview
Section - Skipped
Enums§
- Duplicates
- What to do with an incoming entry that duplicates one already in the Vault.
- Inspect
Error - What
inspectcouldn’t do yet.
Constants§
- FORMAT
- MIN_
PASSPHRASE - A passphrase shorter than this isn’t accepted for an export.
- VERSION
Functions§
- cancel
- Drops a staged import (the person cancelled).
- commit
- Writes a staged import: all of it or none of it, with every browser sign-in in Personal’s.
- commit_
for commit, with the browser profile the logins a browser’s export gave a site belong to.- export
- Writes the chosen entries (all when
idsisNone) topath, encrypted topassphrase. - export_
links export, of the linked entries only (super::linked): where each key lives, who reads it and when it last changed, to show on another machine. No value is in the file: a link holds none, and an entry that holds one is left out even whenidsnames it.- inspect
- Reads
path, decrypts it withpassphrase, and stages it forcommit. - inspect_
keyed inspect_with, and the key file of a KeePass database that has one.- inspect_
with inspect, with the person’s column choices for a CSV no reader recognises.- suggest_
passphrase - Eight random words joined by hyphens: 64 bits, slowed down by scrypt.