/hardware-auth-keys:1password-ssh-keysfrom hardware-auth-keys
Copy SSH keys from 1Password to a YubiKey PIV slot, or save YubiKey SSH public keys to 1Password, with op and ykman.
Ships in hardware-auth-keys. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read references/1password-transfers.md in the plugin root first (what can move, secret-handling rules).
For a new login, a separate FIDO2 key (ssh-keys) is simpler than copying. Copy when the
same key must work from both places.
ykman piv info: pick an empty slot (9a is usual). ed25519 and RSA 3072/4096 need firmware
5.7+; RSA 2048 works on older keys.d=$(mktemp -d /dev/shm/yk.XXXXXX); trap 'rm -rf "$d"' EXIT
op read --out-file "$d/k.pem" "op://<vault>/<item>/private key"
ykman piv keys import --pin-policy ONCE --touch-policy CACHED 9a "$d/k.pem"
Run it as a script or in a subshell so the trap fires. Use the default PKCS#8 output, not
?ssh-format=openssh: ykman 5.8.0 rejects ed25519 in OpenSSH format.ykman piv keys export 9a pub.pem, then
ykman piv certificates generate --subject "CN=<label>" 9a pub.pem. PKCS#11 needs the certificate.ssh-keygen -D <libykcs11 path> prints the same public key as the item's
public key field; then log in with ssh -I <libykcs11 path>.Only public parts. Save them as a note so the key's purpose and servers are findable:
op document create ~/.ssh/id_ed25519_sk.pub --vault <vault> --title "YubiKey <serial> SSH public key"
A PIV-held key: ssh-keygen -D <libykcs11 path> | op document create - --file-name yubikey.pub --title "..." --vault <vault>.
What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/1password-credentialsMove PIV certificates, static passwords, PINs and inventory between 1Password and a YubiKey with op and ykman; passkey limits./1password-gpg-keysBack up GPG keys to 1Password and load them from 1Password onto a YubiKey OpenPGP card, with op, gpg and keytocard./1password-totpCopy TOTP / 2FA secrets from 1Password to a YubiKey with op and ykman, or enrol to both. Use on "1Password TOTP to YubiKey".Other plugins' skills for the same job
hardware-auth-keys@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin hardware-auth-keys