Real users prefer Slot 2 (avoids accidental triggers).
brew install ykmanykman infoykman otp static 2 "yourpassword" --keyboard-layout us --force
ykman otp settings 2 -p 60 --no-enter- Plug YubiKey
- Click password field
- Long press button 2–3 sec
Test first in TextEdit.
Grant Terminal Input Monitoring in System Settings → Privacy & Security.
ykman otp delete 2 -f