A beautiful command-line TOTP (Time-based One-Time Password) authenticator written in Go.
- 📱 Generate TOTP codes from YAML config
- 🎨 Colorful table display
- ⏱️ Auto-refresh every second
- ⏳ Shows remaining time for each code
- 🔒 30-second TOTP period
go mod download
go build .Edit config.yml to add your accounts:
accounts:
- id: 1
name: GitHub
username: username
site: site.com
secret: JBSWY3DPEHPK3PXPNote: Replace the example secrets with your actual TOTP secrets (base32 encoded).
Run the application:
./goauthOr specify a custom config file:
./goauth myconfig.ymlThe app shows a beautiful table with:
- ID: Account ID
- Name: Account name
- Username: Account username
- Site: Website/service
- Code: 6-digit TOTP code (formatted as XXX XXX)
- Time: Remaining seconds (color-coded: red ≤5s, yellow ≤10s, default >10s)
Press Ctrl+C to exit.
github.com/pquerna/otp- TOTP generationgithub.com/fatih/color- Colored terminal outputgopkg.in/yaml.v3- YAML configuration parsing
