Skip to content

YubiKey OTP

YubiKey OTP generates a 44-character one-time password when you touch the key. The gateway can validate these OTPs if Yubico credentials are configured.

YubiKey OTP requires these gateway env vars:

Terminal window
YUBICO_CLIENT_ID=...
YUBICO_SECRET_KEY=...

Once a YubiKey is enrolled, you can enter its OTP anywhere the gateway asks for an MFA code: the CLI’s code prompt, --mfa-code, or the web UI’s MFA prompt, which opens on a YubiKey OTP field when that’s your only factor and otherwise offers Use a YubiKey OTP. Touch the key with the cursor in the field; the key types the OTP and presses Enter.

For most users, WebAuthn is easier to manage and fully supported in the UI: