KeePassXC in Your Browser: Autofill and Passkeys Without the Cloud

Pair KeePassXC with your browser, let it fill in logins and keep your passkeys in your own offline vault.

FREE$34.95UpdateStar PremiumShare a link to claimHow many times did you press Alt+Tab today, copy a password out of KeePassXC, switch back and paste it into a login form? If the answer is "more than I'd like", this guide is for you. KeePassXC keeps your vault offline in a single encrypted file on your PC, and with its browser extension it can still fill in logins the way cloud password managers do. Since recent versions it can also store passkeys, so even the newest passwordless sign-ins land in your own database rather than on someone else's server.

The setup takes about ten minutes. You need KeePassXC (the current version is 2.8.0), a database you know the master password for, and a browser: Firefox, Microsoft Edge, Google Chrome or one of its Chromium siblings such as Vivaldi or Brave.

Step 1: Install the KeePassXC-Browser extension

The desktop app and your browser need a middleman. That's KeePassXC-Browser, a free extension from the KeePassXC team. You'll find it in the Firefox add-on store, the Chrome Web Store (which also serves Chromium, Vivaldi and Brave) and the Microsoft Edge add-on store. KeePassXC even links to the right store pages on its settings screen, which is handy if you'd rather not search.

Install it and pin its icon to the toolbar. You'll click it a few times in the next steps.

Step 2: Switch on browser integration in KeePassXC

Out of the box, KeePassXC talks to no browser at all. That's a sensible default, and you change it in one place.

  1. Open KeePassXC and choose Tools > Settings.
  2. Click Browser Integration in the left column.
  3. Tick Enable browser integration.
  4. Under Enable integration for these browsers, tick every browser where you installed the extension, for example Edge or Firefox and Tor Browser.
  5. Click OK.
  6. Open your database with your master password, then close and reopen your browser.

KeePassXC settings with browser integration enabled and the browser checkboxes highlighted Tools > Settings > Browser Integration: one master switch, then one checkbox per browser.

While you're on this page, look at the options below the browser list. Request to unlock the database if it is locked pops up the password prompt when a site asks for a login, which beats wondering why nothing happens. Return only best-matching credentials helps if you keep several entries for the same domain and are tired of long lists. Search in all opened databases for matching credentials matters only if you keep more than one vault open at a time.

Step 3: Pair the extension with your database

Now the two sides introduce themselves. This pairing is per database, so if you use separate vaults for work and home, you repeat it for each one.

  1. Click the KeePassXC-Browser icon in the toolbar.
  2. Click Connect in the pop-up.
  3. KeePassXC shows a dialog titled New key association request. Type a unique name for this connection, such as "edge-laptop" or "firefox-office".
  4. Click Save and allow access.

KeePassXC dialog asking for a unique name for the new browser connection Give every browser its own name, otherwise one connection replaces the other.

The name isn't decoration. If you reuse the same name for a second browser in the same database, the earlier connection gets overwritten and that browser loses access. Pick something that tells you exactly which browser on which PC it belongs to. If the extension later complains that it can't reach KeePassXC, check two things first: is the app running, and is the database open, not locked?

Step 4: Let autofill do the typing

Open a site you already have an entry for. Two things happen. The extension icon in the toolbar shows a small number, the count of matching logins it found. And the first time a site asks for credentials, KeePassXC opens a Browser Access Request dialog listing the matching entries.

  1. Tick the entries this site may use.
  2. Tick Remember if you don't want to be asked again for this site.
  3. Click Allow Selected.

You also get Deny All and Disable for this site. The latter is useful for sites where you never want autofill, such as a banking page you'd rather type into by hand.

From then on, a small KeePassXC icon sits inside the site's username field. Click it and your user name and password are filled in. If you store several logins for the same site, a drop-down lets you pick the right account.

When you sign up somewhere new or change a password, the extension notices. After you submit the form, a pop-up asks whether to update an existing entry or add a new one, so your vault keeps up without any copying.

Step 5: Store passkeys in KeePassXC

Passkeys replace passwords with a key pair: the site keeps the public half, your device keeps the private half. Most browsers want to store that private half in their own account or in the operating system. KeePassXC can keep it in your database instead, right next to your passwords.

  1. Open the KeePassXC-Browser extension settings.
  2. In the Passkeys section, tick Enable Passkeys.
  3. Leave Enable Passkeys fallback on for now.

KeePassXC-Browser extension settings with the Enable Passkeys option highlighted The passkey switch lives in the extension's settings page, not in the desktop app.

The fallback decides what happens when you cancel KeePassXC's prompt or the app isn't reachable. With it on, the browser's own passkey dialog takes over. Switch it off only once you're sure you want every passkey in KeePassXC, because then a canceled request simply fails.

To create a passkey, go to a site's security settings and choose to add a passkey. KeePassXC asks Do you want to register Passkey for: and shows the site and your user name. Click Register. A new entry appears in the group KeePassXC-Browser Passwords, with "(Passkey)" added to its title. Next time you log in, pick the site's passkey sign-in option and approve KeePassXC's confirmation dialog. No password involved.

To see every passkey in one place, open Database > Passkeys…. From there you can export selected passkeys as .passkey files. Treat those exports like loose cash: they're not encrypted, so delete them once they've done their job. To bring a passkey in, use Database > Import Passkey, or right-click an existing entry and choose Import Passkey.

Trick: keep the vault file safe

Autofill and passkeys make your database file even more valuable, because it now holds the keys to sites that no longer have a password at all. Keep at least one backup copy on another drive and test that you can open it. If you only use passkeys stored in KeePassXC for an account, a lost database means the site's account recovery process is your only way back in.

Our verdict

If you already trust KeePassXC with your passwords, the browser extension is the missing piece: same offline vault, far less copying and pasting. People who share one PC between several browsers benefit most, as long as each connection gets its own name. Do one thing today: enable browser integration, pair your main browser and let the next login fill itself in.

Related on UpdateStar

about author