Skip to main content

Module transfer

Module transfer 

Source
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§

ExportResult
What an export reported.
ImportPreview
ImportResult
PreviewEntry
PreviewSection
Skipped

Enums§

Duplicates
What to do with an incoming entry that duplicates one already in the Vault.
InspectError
What inspect couldn’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 ids is None) to path, encrypted to passphrase.
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 when ids names it.
inspect
Reads path, decrypts it with passphrase, and stages it for commit.
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.