Alfred Workflow for obtaining TOTP codes from a YubiKey.
The workflow uses ykman oath
under the hood.
YubiKey Manager and Python 3 are required. To install both with Homebrew execute
$ brew install ykman python3
Download the latest release (yubikey-oath.alfredworkflow
file) from
Releases page, double-click on the downloaded file, and follow
Alfred's instructions.
In Alfred command line type yo
(optionally) followed by a filter term matching an account you want to get a TOTP code
for. The code will be copied to the clipboard in transient mode (i.e. it will not actually show up in clipboard
history).