Skip to main content

Module kdbx_export

Module kdbx_export 

Source
Expand description

Export the Vault to a password-protected KeePass database (.kdbx, KDBX 4) (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §8.3), which the person can open in KeePassXC, KeePassDX or Strongbox. The file is for them to take elsewhere, so it is as plain a KeePass database as can be made:

  • a login is a login (title, user name, password, address, notes, and its one-time-code seed in the otp field KeePassXC reads);
  • a note is an entry whose notes are its text;
  • every other kind is an entry whose secret is a protected custom field named for it (SSN, Card number, API key, …: kdbx_names), with plain details as unprotected custom fields and the entry’s tags as KeePass tags and as groups (a tag A/B is the group A > B, the first tag choosing the group);
  • a linked entry, which holds no value, is an entry with no secret field: its place, who reads the key, when it last changed and where else it is kept are unprotected custom fields, and Linked entry kind says it is a link and of which kind.

The importer reads the same names, so a database leaves and comes back as the same entries.

Functions§

export
Writes the chosen entries (all when ids is None) to path as a KeePass database opened by passphrase.