Tiny Tools: fztotp

Originally published on 2025-02-23
Last updated on 2025-03-06

This is my first Tiny Tools post.

fztotp (“fuzzy TOTP”) is a relatively simple tool built on top of fzf (as are all of my most useful scripts) and ykman. I’m a little biased, but this is the best TOTP authenticator app I have ever used (though it’s only for Yubikey).

You can find the script on GitHub.

Its job is quite simple:

  1. Show the list of TOTP auth credentials you have stored in your Yubikey, in an fzf user interface
  2. allow the user to fuzzy-select one of the credentials in the list, and then
  3. copy the TOTP code for that site to your clipboard (if you have xsel installed).

This enables me to get through multi-factor auth dialogs in just a few keystrokes. All with just ~50 lines of code.

If you have fzf and ykman installed already, you can install fztotp on a Linux machine with:

curl -SsfL https://philcrockett.com/yolo/v1.sh \
    | bash -s -- fztotp

Comments?

If you have a Mastodon account, you can reply to my post on the Fediverse.

Other Posts