YubiKey Manager
$ ykman Official High RiskYubiKey Manager (ykman) configures FIDO2, OATH, PIV, and OpenPGP applications on attached YubiKey hardware tokens. Read-only inventory commands like ykman info and ykman list --serials run cleanly headlessly, though it lacks native --json flags and credential-modifying commands require physical PINs or touch confirmation.
brew install ykman ykman communicates directly with local USB/NFC HID and CCID smartcard devices; physical hardware tokens should never be bridged over an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Read-only info and list --serials run cleanly, but there is no --json flag and write/OATH/FIDO commands prompt interactively for PINs or physical touch.
- Plain-text CLI output without native
--json - Hardware PIN and physical touch prompts on mutating operations
Hardware secure element prevents key extraction and physical touch protects sensitive actions, though reset subcommands can permanently erase slots.
- Hardware-backed key isolation; destructive
resetcommands exist
Available via brew install ykman, pip install yubikey-manager, and installers across macOS, Linux (requires pcscd), and Windows.
- Official cross-platform Python/Rust packaging
Authoritative single CLI for inspecting and configuring all YubiKey applets (fido, oath, piv, openpgp).
- Covers full YubiKey applet lifecycle
Official Yubico repository actively maintained with support for current YubiKey firmware.
- Official github.com/Yubico/yubikey-manager
Well-documented official Yubico command guide and comprehensive --help per applet.
- Official docs at docs.yubico.com
Security, Auth & Guardrails
Cryptographic secrets stay inside YubiKey hardware secure element; CLI reads/writes via USB/NFC smartcard interfaces.
Apache-2.0 open-source CLI; requires physical YubiKey hardware.
# ykman Agent Rules - Restrict automated runs to read-only inspection (`ykman info`, `ykman list --serials`, `ykman piv info`). - Never execute `reset` subcommands (`ykman fido reset`, `ykman piv reset`, `ykman openpgp reset`), which permanently wipe hardware keys.
Agent-Ready Command Recipes
Safe Read-Only Queries
ykman info
Prints device model, serial number, firmware version, and enabled USB/NFC interfaces without modifying state.
ykman list --serials
Outputs one serial number per line for connected YubiKeys, suitable for -d <serial> targeting.
Strengths for Agents
- + Authoritative official tool for checking YubiKey firmware, serials, and applet states safely.
- + Private keys remain hardware-bound inside the YubiKey secure element.
Caveats & Pitfalls
- ! No native
--jsonflag across subcommands;ykman inforequires text parsing. - ! Physical touch and PIN prompts make headless automation impossible for most mutating operations.