Semantic KDBX merge
Groups, entries, fields, tags, history, attachments, and custom icons synchronize as typed records over a signed revision graph.
Peer-to-peer KeePass sync
Lattice PM is a Unix daemon and CLI that synchronizes supported KeePass KDBX vaults between mutually trusted peers. It merges vault state field by field instead of copying whole files, and it fails closed when a KeePass feature cannot be preserved.
Each device runs the same daemon and holds the same vault. Pairing grants access through a signed membership document. After that, peers exchange signed revisions and converge without a central server.
Point the CLI at a supported KDBX4.1 vault. Password-only, key-file, and combined credentials are supported.
Create an invite, scan the terminal QR or enter the pairing code, then confirm the short code over a separate channel.
Peers exchange signed revisions and merge changes. Concurrent edits surface as conflicts with a signed resolution path.
The synchronization core is the product. Everything else is optional.
Groups, entries, fields, tags, history, attachments, and custom icons synchronize as typed records over a signed revision graph.
Unknown or unmodeled KeePass elements stop the write. Lattice does not silently drop data it cannot round-trip.
Concurrent edits become redacted conflict descriptors. Resolution commits a signed, journaled revision, and stale peers cannot resurrect it.
Access comes from admin-signed membership documents. Discovery alone grants no access, and removal rotates repository and epoch secrets.
Admin identity backup, a secondary recovery authority, same-key recovery, and fresh-key replacement cover device and state loss.
mDNS, scoped rendezvous, AutoNAT, Circuit Relay v2 fallback, and DCUtR hole punching connect peers across networks.
The default rendezvous origin is https://pair.latticepm.net. It stores only encrypted, opaque pairing envelopes.
lattice vault add /path/to/personal.kdbx
lattice vault init personal
lattice sync # leave the daemon runningPeers try direct TCP and QUIC first. Relay, rendezvous, mailbox, and object storage are separate processes that carry encrypted data and hold no vault keys.
Lattice PM is at version 0.2.0. Released behavior and in-progress work are listed separately.
Sync traffic is encrypted and peer-authenticated with libp2p Noise over TCP or TLS 1.3 over QUIC. The protocol sends decrypted logical vault items only to mutually trusted peers for that vault. Local IPC and status output never include vault passwords, KDBX paths, or decrypted entry fields.