local-otp is a CLI that allows you to retrieve TOTP codes supported by Google Authenticator.
Build with Docker locally:
docker build -t lotp .
Run locally as a sandboxed CLI:
alias lotp="docker run -it --rm -v ~/.mfa:/root/.mfa lotp"
To setup the configuration:
lotp otp config-help