The password manager @bitwarden also has a command line tool https://bitwarden.com/help/cli/, so it is possible to get two-factor auth codes on the command line with:

bw get totp servicename

Password Manager CLI | Bitwarden

The Bitwarden command-line interface (CLI) is a powerful, fully-featured tool for accessing and managing your Vault.

Bitwarden
very useful when SSH-ing into a machine requires a two-factor authentication code.