I’ve been using password-store utility for saving my passwords in GPG encrypted files. Since I’m also using 2 factor authentication I’ve opted in to use pass-otp as a convenience.

As this extension is not in the official OpenSUSE repositories you will need to install it manually.

If you’re reading this I guess you already have password-store program installed. If so, you can proceed installing pass-otp extension right away. To do that, use:

git clone https://github.com/tadfisher/pass-otp
cd pass-otp
sudo make install

For extension to function properly you need to have oathtool which is part of an oath-toolkit. As this package is not available in the official OpenSUSE repositories you will need to download it from OBS. While at it download its dependencies too. Below are the links to packages you’ll need:

libpskc0
liboath0
oath-toolkit

Download those packages by expanding your distribution (I’m using Tumbleweed so I’ll expand that section) and select appropriate architecture (I’m guessing you’re all using x86_64). Make sure it is for Tumbleweed and not OpenSUSE factory when downloading (hovering the link indicates which one it is).

Once packages are downloaded install them with command similar to this one:

sudo zypper in Downloads/liboath0-2.6.2-1.12.x86_64.rpm Downloads/libpskc0-2.6.2-1.12.x86_64.rpm Downloads/oath-toolkit-2.6.2-1.12.x86_64.rpm

This will differ depending on which package versions you download and where.