# Yubico/yubikey-manager

Python library and command line tool for configuring any YubiKey over all USB interfaces.

Repository: https://github.com/Yubico/yubikey-manager
Canonical: https://ross.abutalabs.com/products/yubikey-manager
Homepage: https://developers.yubico.com/yubikey-manager/
Language: Python
License: BSD-2-Clause
License Family: permissive
Topics: yubikey, python, oath, piv, otp, openpgp, fido2, u2f, webauthn
Last push: 2026-08-26T16:58:58+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 78, longevity 100
- inputs: {"age_days": 3712, "days_push": 7, "days_rel": 64, "gap_med": 73.0, "n_releases_24m": 9}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1178, forks 157 (observed 2026-08-28T04:03:53.024266+00:00)

## What it is
A Python library and command line tool (ykman) for configuring YubiKey hardware security keys over all USB interfaces. It supports managing the OTP, FIDO2/WebAuthn, OpenPGP, PIV, and OATH applications on connected YubiKeys.

## Use cases
- configure a yubikey from the command line
- enable or disable applications on a yubikey
- manage PIV certificates on a yubikey
- set up OATH accounts on a yubikey
- list connected yubikeys and show device info
- script yubikey configuration with a python library
- manage openpgp keys on a yubikey

## When to choose
- you need to configure or manage YubiKey applications from a terminal or script
- you want a supported, official Yubico tool with a Python API for automation
- you need cross-platform YubiKey management without a GUI

## When to avoid
- you prefer a graphical interface (use Yubico Authenticator instead)
- you need to manage other brands of security keys
- you only need to generate one-time codes rather than configure the key

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, security, auth, sdk
- domain: security, developer-tools, hardware
- platform: python, cross-platform, cli, windows
- tags: yubikey, piv, oath, openpgp, fido2, otp, hardware-token, smartcard, command-line, linux, macos

## Member repositories
- Yubico/yubikey-manager (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:53.024266+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:26:05.698800+00:00, confidence not recorded.
  - homepage: https://developers.yubico.com/yubikey-manager/ (fetched 2026-08-29T12:32:55.484484+00:00, sha c856ef898cd3)
  - site_page: https://developers.yubico.com/yubikey-manager/API_Documentation (fetched 2026-08-29T12:32:55.489092+00:00, sha dd723eda7e4f)
  - site_page: https://www.yubico.com/about/about-us (fetched 2026-08-29T12:32:55.490968+00:00, sha f5be8ddb6cf9)
  - registry_pypi: https://pypi.org/pypi/yubikey-manager/json (fetched 2026-08-29T12:32:55.492815+00:00, sha da9ae2212f83)
  - site_page: https://developers.yubico.com/yubikey-manager/Releases (fetched 2026-08-29T12:32:55.487164+00:00, sha 22645e804d66)
- Data as of 2026-08-30T08:39:29.467469+00:00.
