pass-otp
extends pass with TOTP/HOTP support
TLDR
Generate OTP code
SYNOPSIS
pass otp [options] command [entry]
DESCRIPTION
pass-otp extends pass (password-store) with TOTP/HOTP support. It generates time-based one-time passwords.
OTP secrets are stored encrypted alongside passwords. The standard otpauth:// URI format is supported.
Token generation uses the current time for TOTP. Codes refresh every 30 seconds by default.
QR code display enables backup to authenticator apps. URIs can be imported from other authenticators.
Clipboard integration copies codes for easy pasting. Codes clear automatically after timeout.
PARAMETERS
insert
Add new OTP entry.append
Add OTP to existing entry.uri
Show OTP URI.validate
Validate configuration.-c, --clip
Copy to clipboard.-q, --qrcode
Display QR code.-u, --uri
Read from otpauth URI.-s, --secret
Prompt for secret only.
CAVEATS
Requires pass (password-store) installed. OTP secrets should be backed up separately. Time synchronization affects TOTP accuracy.
HISTORY
pass-otp was created as an extension to pass (password-store) by zx2c4. It brings two-factor authentication capabilities to the Unix password manager.
