Docs

Using KeeMac

Short guides to the things people usually ask about: how one database lives on several devices, how to hand SSH keys to the agent and how to get KeeMac working with your browser.

macOS

  1. Download KeeMac-x.y.z.zip from GitHub Releases.
  2. Unzip it and drag KeeMac.app to Applications.
  3. Open an existing database ⌘O or create a new one ⇧⌘N.

Requires macOS 15 or later on Apple Silicon.

Android

  1. Download the APK from GitHub Releases once it's published (coming soon) and allow installs from that source.
  2. Tap Open Database and pick the file from any document provider: phone storage, Google Drive, Dropbox, Syncthing, Nextcloud.
  3. Turn on fingerprint unlock for this database if you like.

Requires Android 9 or later.

Guide

Sync and database merge

KeeMac doesn't sync the file itself: iCloud Drive, Dropbox, Syncthing or any other service does that. KeeMac's job is to never overwrite what another device or another KeePass client wrote.

Mac GitHub: new password at 14:05 Phone GitHub: new username, 14:20 + entry “Cabin Wi-Fi” merge per entry Resulting database GitHub — the 14:20 version ↳ 14:05 version in history Cabin Wi-Fi — added Deleted entries stay deleted

Merge rules

  • Entries are compared, not files. If one entry changed on the Mac and another on the phone, the database ends up with both changes.
  • The same entry changed in two places — the newer version wins, the other is kept in the entry's history, where you can open and restore it.
  • Deletions carry over through the database's deleted-objects list, so a deleted entry doesn't come back.
  • If the file already has everything, KeeMac doesn't rewrite it — fewer conflicts for your sync service.

When a merge happens

  1. Before every save. KeeMac compares the file on disk with what it last read or wrote. If the file changed, the other changes are merged in first, then yours are written.
  2. When the file changes while the database is open. On Mac the file is watched all the time, on Android it's checked when you return to the app. What happens is set per database in Settings → General → Sync.
  3. On unlock. KeeMac keeps an encrypted copy of its last save. If another client overwrote the file while the database was closed, the copy is merged back and a toast lists the restored entries.
ModeWhat happens when the file changed
Merge automatically
default
Changes are merged and saved right away. A toast with a Show button appears; changed entries get a cloud marker until you view them.
AskA banner says the file changed on another device: preview the changes (added, updated, deleted, moved), merge or ignore.
Don't watchThe file isn't watched, but changes are still merged before saving — nothing gets overwritten.
KeeMac after merging changes from another device
Changes from the phone merged automatically: a toast with Show, a cloud marker on the new entry.

Conflicting copies

Sync services sometimes leave copies next to the database, like Passwords 2.kdbx, Passwords (… conflicted copy …).kdbx or Passwords.sync-conflict-….kdbx. On unlock, KeeMac for Mac finds them, shows what's new in them, merges them and offers to move them to the Trash.

Merge with any other database

Vault → Merge Database… (⇧⌘M) — pick another .kdbx, enter its password or key file and review the preview before merging. On Android it's in the database menu.

⚠️

Not covered by the merge: a master key changed on another device, clocks that disagree between devices, clients that don't record deleted objects (deleted entries may come back), and the database file being renamed or moved elsewhere.

Guide · macOS

SSH agent

KeeMac can act as an SSH agent: private keys are stored in the database, and ssh, git and scp get them through the ~/.keemac/agent.sock socket. A key is only available while the database is unlocked.

Turn on the agent

  1. Open Settings → SSH Agent and turn on Use KeeMac as SSH agent.
  2. In the ~/.ssh/config group click Set Up…. KeeMac adds two lines to the top of the file — or add them yourself:
    Host *
      IdentityAgent ~/.keemac/agent.sock
  3. Check in a terminal: ssh-add -l lists the keys from the database.
💡

Keys in ~/.ssh keep working: ssh asks KeeMac first, then tries the files. To use the agent without editing the config, set SSH_AUTH_SOCK=~/.keemac/agent.sock.

SSH Agent settings in KeeMac
Settings → SSH Agent

Add a key to the database

Click the arrow next to New Entry and choose SSH Key. Then one of:

  • Drop the key file (usually ~/.ssh/id_ed25519) or paste its text. OpenSSH and PEM keys work.
  • Generate a new one: Ed25519 (recommended), RSA for older servers or ECDSA when NIST curves are required. Copy Public Key gives you the line for authorized_keys or GitHub.
  • Import them all at once: Settings → SSH Agent → Import Keys from ~/.ssh…. The original files can be kept or deleted after the import.

A key's passphrase is saved as the entry's password. The private key is stored as an attachment with KeeAgent settings — the same way KeePassXC stores SSH keys, so the keys work there too.

An SSH key entry in KeeMac
An SSH key entry: type, fingerprint, hosts and confirmation.

Confirmation and choosing keys

SettingWhat it does
ConfirmationEvery time, Once per unlock or Never. Set a default in Settings and override it per key. The request panel offers Allow Once or Allow Until Lock; unanswered requests are denied automatically.
Pick keys by hostA server is offered only its own keys — no Too many authentication failures. Other keys are offered when nothing matches.
Learn hosts automaticallyThe first time a server accepts a key, its host is saved on the key. Hosts can also be added by hand: *.example.com covers a domain, [host]:2222 a port.
Forwarded requestsFor agent forwarding (ssh -A) you can always ask, even for keys that don't need confirmation.

If the database is locked when a key is requested, an unlock panel appears (with Touch ID if it's set up). Recent requests — which app, which host and which key — are listed in the agent settings.

⚠️

If Settings says another SSH agent already uses ~/.keemac/agent.sock, quit the second KeeMac instance or the other agent listening on that path.

Guide · macOS

Browser autofill

KeeMac works with the official KeePassXC-Browser extension. You don't need KeePassXC itself: KeeMac ships its own keemac-proxy and sets up the browsers for you.

Connecting

  1. In KeeMac open Settings → Browser, turn on the integration and click Set Up for the browsers you use: Chrome, Chromium, Brave, Edge, Vivaldi or Firefox.
  2. Install the KeePassXC-Browser extension from your browser's extension store.
  3. Unlock the database in KeeMac, then click Connect in the extension. KeeMac asks for a connection name — after that the browser is linked to the database.
  4. Open a login page: the extension icon appears in the login fields and matching entries show up in the dropdown.
Browser settings in KeeMac
Settings → Browser
💡

Connections and site permissions are stored in the database in KeePassXC's format. A browser already connected to this database in KeePassXC keeps working with KeeMac without setting it up again.

What it can do

  • Fill logins and one-time codes (TOTP) from entries whose URL matches the site.
  • Save new logins from the extension's banner. Updating a password asks first, and the old password stays in the entry's history.
  • Generate passwords with KeeMac's generator right in the field on the site.
  • Fetch the site's icon for new entries when “Download favicon after saving” is on in the extension.

Access and locking

The first time a site asks for a login, KeeMac asks which entries it may use — unless “Always allow access” is on. If the database is locked, a small unlock window opens (with Touch ID right away when it's set up), and focus goes back to the browser afterwards.

ℹ️

Passkeys aren't supported yet. For apps outside the browser use Auto-Type: ⌃⌥⌘A.

Guide · Android

Android autofill

  1. In KeeMac open Settings → Autofill and tap Autofill service — Android asks you to choose KeeMac.
  2. Login fields in any app or browser now show suggestions: a dropdown and a strip above the keyboard.
  3. If the database is locked, tap Unlock KeeMac — a sheet opens with fingerprint unlock and the entry picker.

Entries are matched by the site's domain or the app's package. After the first pick the package is remembered on the entry (androidapp://), so the next suggestion is exact. KeeMac offers to save new logins and to update a changed password; the old one goes to history.

Reference · macOS

Keyboard shortcuts

ShortcutActionShortcutAction
⌘NNew entry⇧⌘NNew database
⌘FSearch⌘OOpen database
⌘EEdit entry⇧⌘MMerge database
⌘DDuplicate⇧⌘IImport
⌘ZUndo⇧⌘EExport
⌘LLock⇧⌘,Database settings
⌥⌘GPassword generator⌃⌥⌘AAuto-Type (global)