If you are looking for a password manager in the KeePass format on Linux, KeePassXC is today’s choice. Unlike the original KeePass 2, which runs through Mono on Linux and feels correspondingly foreign, KeePassXC is a native program with browser integration, an SSH agent and support for two-factor codes. The databases (.kdbx) are fully compatible with KeePass.
Installation
# Ubuntu / Debian
sudo apt install keepassxc
# Fedora
sudo dnf install keepassxc
# Flatpak (all distributions, usually the most recent version)
flatpak install flathub org.keepassxc.KeePassXC
The version from the repositories of an LTS distribution can be somewhat older. If you always want the latest one, take the Flatpak.
First steps
- Start KeePassXC and choose “Create new database” – or open an existing
.kdbxfile. - Set a strong master password. Optionally add a key file or a YubiKey as a second factor.
- Accept the defaults for the encryption settings (KDBX 4, Argon2).
Browser integration
Under Tools → Settings → Browser Integration, enable the integration and tick your browser. Then install the KeePassXC-Browser extension for Firefox or Chrome and connect it. After that KeePassXC fills in login forms automatically if you wish.
A note on Snap and Flatpak: if the browser is installed as a snap (the default for Firefox on Ubuntu), the connection to KeePassXC sometimes does not work straight away. In that case it helps to install KeePassXC and the browser from the same source.
More useful features
- TOTP: store one-time codes for two-factor login right in the entry (right-click → TOTP).
- SSH agent: keep SSH keys in the database and hand them to the SSH agent automatically when unlocking.
- Database reports: under Database → Database Reports, KeePassXC lists weak and duplicate passwords as well as passwords that have appeared in known data breaches.
- Secret Service: KeePassXC can replace the GNOME keyring and provide passwords to other programs.
Synchronising the database
KeePassXC has no cloud of its own – the database is a single file. It is synchronised through any service you like, for example Nextcloud, Syncthing or a network folder. If the file is changed on two devices at the same time, KeePassXC usually merges the changes automatically the next time it is opened.
Matching apps for the smartphone are KeePassDX (Android) and KeePassium or Strongbox (iOS).
And the classic KeePass 2?
KeePass 2 can still be installed on Ubuntu and Debian with sudo apt install keepass2 and then runs through Mono. That is only necessary if you depend on certain KeePass plugins. Existing databases can be opened directly in KeePassXC without conversion.
Originally published in 2011 for KeePass 2 on Ubuntu 11.10, completely revised in November 2026.