For some reasons(portability?), OTP generators used for 2 factor authentication, happens to be mostly available on the mobile devices. The problem is many mobile apps often seems to have implicit permission to connect to the network.
There appears to be one available that works probably offline at least in Linux
https://github.com/paolostivanin/OTPClient