LinuxCommandLibrary

pass-otp

extends pass with TOTP/HOTP support

TLDR

Generate OTP code

$ pass otp [path/to/entry]
copy
Insert OTP secret
$ pass otp insert [path/to/entry]
copy
Insert from URI
$ pass otp insert -u [path/to/entry]
copy
Append OTP to existing entry
$ pass otp append [path/to/entry]
copy
Show OTP URI
$ pass otp uri [path/to/entry]
copy
Copy OTP to clipboard
$ pass otp -c [path/to/entry]
copy
Validate OTP configuration
$ pass otp validate [path/to/entry]
copy

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.

SEE ALSO

pass(1), oathtool(1), gpg(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community