YubiKey Manager provides the ykman CLI and related libraries to configure and manage YubiKey devices. It covers OTP, PIV, FIDO, OpenPGP, OATH, and related applications.
Overview
YubiKey Manager is a command-line tool and companion libraries for configuring and managing YubiKey hardware over USB and NFC. The primary interface is the native ykman executable, rewritten in Rust with optional Python bindings and SDKs distributed separately.
Installation options include platform installers for Windows and macOS, installing via Cargo, a Python package that ships the native CLI for migration from older releases, and third-party packages from Homebrew, MacPorts, and Linux distributions. On Linux, smart card and NFC access depend on PC/SC services, and HID access may require distribution udev rules and device permissions.
The CLI lists connected keys, shows device information by serial number, and exposes subcommands for device configuration plus OATH, Yubico OTP, PIV, FIDO, OpenPGP, YubiHSM Auth, and Security Domain applications. Windows installers can bundle a background service so FIDO management does not always require running the CLI as administrator.
Rust yubikit and Python yubikit SDKs offer programmatic access to YubiKey protocols and transports for scripting and application integration. Users who prefer a graphical tool are directed toward Yubico Authenticator rather than this CLI-focused project.
Key features
- ykman CLI for device management
- USB and NFC device access
- OATH, PIV, FIDO, and OpenPGP support
- Yubico OTP configuration
- Rust and Python SDK libraries
- Platform installers for Windows and macOS
- Device listing and serial selection
- Migration support from older Python CLI
Use cases
- Provisioning OTP and PIV credentials on YubiKeys
- Managing FIDO and OpenPGP applications
- Scripting YubiKey operations in Python or Rust
- Listing and inspecting connected tokens
- Upgrading from legacy Python-based manager