Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

YubiKey Manager

$ ykman Official High Risk
Yubico · Security & Secrets · Apache-2.0 · macos / linux / windows

YubiKey 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.

FCRS-1.0 Score
73 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install ykman
CLI vs MCP Decision CLI Only

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 13 / 25

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
Trust & Safety 19 / 25

Hardware secure element prevents key extraction and physical touch protects sensitive actions, though reset subcommands can permanently erase slots.

  • Hardware-backed key isolation; destructive reset commands exist
Setup & Portability 13 / 15

Available via brew install ykman, pip install yubikey-manager, and installers across macOS, Linux (requires pcscd), and Windows.

  • Official cross-platform Python/Rust packaging
Utility & Efficiency 11 / 15

Authoritative single CLI for inspecting and configuring all YubiKey applets (fido, oath, piv, openpgp).

  • Covers full YubiKey applet lifecycle
Maintenance & Lineage 9 / 10

Official Yubico repository actively maintained with support for current YubiKey firmware.

  • Official github.com/Yubico/yubikey-manager
Docs & Verifiability 8 / 10

Well-documented official Yubico command guide and comprehensive --help per applet.

  • Official docs at docs.yubico.com

Security, Auth & Guardrails

Auth Modes
No Auth OS Keychain
Credential Storage

Cryptographic secrets stay inside YubiKey hardware secure element; CLI reads/writes via USB/NFC smartcard interfaces.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; requires physical YubiKey hardware.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect connected YubiKey device info
ykman info

Prints device model, serial number, firmware version, and enabled USB/NFC interfaces without modifying state.

List serial numbers of attached YubiKeys
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 --json flag across subcommands; ykman info requires text parsing.
  • ! Physical touch and PIN prompts make headless automation impossible for most mutating operations.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI