![]()
Welcome to the Alfred Dashlane repository: An Alfred Workflow ✨
✅ Prerequisites
- macOS.
- Alfred 5 or Alfred 6. Note that the Alfred Powerpack is required to use workflows.
- A Dashlane account protected by a master password.
- Python 3.9 or above (
python3 --version). - The Dashlane CLI (
dcli), see below.
🏎️ Dashlane CLI
This workflow uses the Dashlane CLI provided by the Dashlane team. Install it with Homebrew or manually:
brew install dashlane/tap/dashlane-cli
The workflow finds dcli in your PATH, /opt/homebrew/bin, /usr/local/bin, ~/.local/bin or ~/bin. Otherwise, set 🛠️ dcli path in the configuration.
The CLI must keep its default save-master-password setting (true): the workflow relies on the CLI staying unlocked between two searches. If you want to know how the CLI stores data on your computer, check this README.
This workflow can't add or edit items, and it handles one account at a time.
⬇️ Installation
- Download the workflow
- Double click the
.alfredworkflowfile to install - Fill
👤 Loginwith the email of your Dashlane account
🧙♂️ Invoke the workflow
There are 2 flows in this workflow:
pdashdisplays all the credentials of your Dashlane vault.odashdisplays the credentials that have an OTP (2FA code).
You can edit these triggers (flagged with a 🕹️ symbol) in the user configuration panel.
🤖 Usage of the workflow
Setup variables
👤 Login: email of your Dashlane account. It is required to start the workflow.🫥 Incognito mode: hide partially your logins in Alfred. If ticked:

if unticked:

🔥 Allow cache: keep the list of your items (titles, URLs and logins, never passwords or OTP secrets) in the workflow cache folder while the CLI is unlocked. The list shows instantly and is refreshed in the background. It is deleted as soon as the vault is locked, even when you lock it from the terminal.🧹 Clear clipboard: erase a copied password / OTP from the clipboard after this delay (default 30 s).🔔 Notifications: show the result of an action in a native macOS notification (default on).🎷 Notification sound: sound played with the notifications: Mute or one of the macOS sounds (default Submarine), as in Alfred Plex.🛠️ dcli path: only needed if the CLI isn't found automatically.
Feedback
Results come as native macOS notifications, posted by Alfred's Post Notification object (Alfred 6 uses Apple's UserNotifications API for them):
- copies name the item and say when the clipboard will be cleared (
📋 Password copied · GitHub · cleared in 30 s), never the copied value; - after login, unlock, sync, device removal or an error, Alfred also shows the list again;
- lock, logout, clear cache and favicon downloads just notify.
Results are never added as a line of the list. With 🔔 Notifications off, actions are silent.
The menu (Sync, Lock, Devices, Download favicons, Clear cache, Logout) always stays at the top of the list, in this order, followed by your items sorted by title. Items carry no Alfred uid, so Alfred can't move often-used items up, even with what it learned from older versions of the workflow.
Login
Press ⏎ on Login to Dashlane. A Dashlane page opens in your browser, then the workflow asks, in native macOS dialogs:
- the token shown in the browser,
- the 6-digit code received by email (or from your authenticator app),
- your master password (hidden).
This Mac is then registered as a device of your account and your vault is synced.
Get passwords and OTPs
Search an item by its title, its website or (when incognito is off) its login.
- ↩︎ copy the password (
odash: the OTP code). - ⌘↩︎ copy the login.
- ⌥↩︎ open the URL.
- ⇧↩︎ type login ⇥ password in the frontmost application (Alfred needs the Accessibility permission).
- ⌃↩︎ copy the OTP code (
pdash, items with 2FA).
Sync
❗ You need an internet connection.
Press ⏎ on Sync to download the latest changes of your vault. The CLI also syncs on its own once per hour.
Lock / Unlock
Lock locks the CLI. Unlock asks your master password in a hidden dialog (plus a 2FA code if your account asks for it at every login).
Download favicons
❗ You need an internet connection.
Downloads the missing icons of your websites in the background, 8 at a time, in the workflow cache folder (~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.benjamino.dashlane). ⚠️ The domains of your accounts are sent to Google's favicon service.
Clear cache
Deletes the cached list and the downloaded favicons from the workflow cache folder. The list is rebuilt from the CLI the next time you open the workflow (if 🔥 Allow cache is on).
Manage connected devices
Press ⌘↩︎ on a device to remove it. You can also remove all devices (including this Mac, which logs you out) or the other devices. Bulk actions need a typed yes.

Logout
Logs the CLI out (this Mac is revoked from your devices) and erases the local data, favicons included. Confirm by typing yes.

🆕 Alfred 6
The workflow runs unchanged on Alfred 5 and uses these Alfred 6 features when available:
strictmods: a modifier combination the workflow doesn't define (e.g. ⌘⇧↩︎) does nothing instead of running the default action, so an unexpected shortcut never copies a password.iconresize: fit: favicons keep their proportions.- Notifications go through the UserNotifications API.
The new Alfred UI toolkit isn't used for the master password on purpose: a passwordfield can only reach a script through its arguments or an environment variable, both readable by other programs running as you. The macOS dialog used here hands it over through a pipe.
🔐 Security
- The master password, the browser token and the codes are typed in native macOS dialogs (hidden for the password) and sent to
dclithrough its terminal. They never go through Alfred's bar, a command line or an environment variable. - Passwords and OTP codes are read one at a time with
dcli readwhen you action an item, and never written to disk. - The optional list cache holds no secret, is readable by you only (
0600) and only exists while the CLI is unlocked, when any program running as you could ask the CLI for the whole vault anyway. - Copied secrets are marked transient (ignored by clipboard history managers) and erased after the chosen delay, only if the clipboard still holds them.
- ⇧⏎ sends its AppleScript through stdin with escaped strings: the password never appears in a process list and can't inject AppleScript.
- Only
http(s)URLs are opened. - Bundled libraries are pure Python (
pexpect,ptyprocess,certifi): no binary, nothing downloaded at runtime.
🧪 Development
python3 -m unittest discover -s tests
The tests drive the workflow against tests/fake_dcli.py, a stand-in that asks the same questions as the real CLI through a real pty. update.sh refreshes the bundled libraries.
⚖️ License
MIT License © Benjamin Oddou