If you use macOS, there’s this: http://github.com/sqreen/twofa
It’s a CLI tool that generates TOTP codes (and puts them directly in the pasteboard). You can “scan” the QR code by taking a screenshot of it, and when generating codes, it’ll ask you for your password (or fingerprint, if you have a mac with TouchID)
(disclaimer: I’m the author of this)