mmfa is a command line tool to help manage MFA secrets and generate one time MFA codes on OSX.
It is heavily inspired by Bradly Feeley's ruby mmfa project.
If you have homebrew, you can install it with:
brew tap thbishop/mmfa
brew install mmfa
If that doesn't float your boat, you can download the latest binary and place it somewhere in your path (perhaps /usr/local/bin
).
You can add a MFA secret with the add command (it's stored in the OSX login keychain):
$ ./mmfa add my_service
You can then grab the current MFA code with:
$ ./mmfa get my_service
This will print your MFA code to stdout and copy it to your clipboard.
You can list MFA items to help you see what you've added or which item you'd like to get a passcode for:
$ ./mmfa list
- Fork the project
- Make your feature addition or bug fix (with tests and docs) in a topic branch
- Send a pull request and I'll get it integrated
See LICENSE