/hardware-auth-keys:1password-gpg-keysfrom hardware-auth-keys
Back up GPG keys to 1Password and load them from 1Password onto a YubiKey OpenPGP card, with op, gpg and keytocard.
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).
gpg --armor --export-secret-keys <fpr> | op document create - --file-name <fpr>.sec.asc --title "GPG secret key <fpr>" --vault <vault>
gpg --armor --export <fpr> | op document create - --file-name <fpr>.pub.asc --title "GPG public key <fpr>" --vault <vault>
op document create ~/.gnupg/openpgp-revocs.d/<fpr>.rev --title "GPG revocation <fpr>" --vault <vault>
If gpg -K shows > beside a key, it is already on a card and the export is only a stub: not a backup.
Use set -o pipefail so a failed export is not stored as an empty document.
Verify by importing into a throwaway home and checking the fingerprint and no > marks.
ykman openpgp info: show occupied slots; overwriting needs a yes. Set PINs (yubikey-pins-and-reset).gpgconf --kill all
export GNUPGHOME=$(mktemp -d /dev/shm/gpg.XXXXXX)
op document get "<item>" --vault <vault> | gpg --import
gpg -K --with-subkey-fingerprint
gpg --edit-key <fpr>: select with key N, then keytocard (1 sign,
2 encrypt, 3 authenticate), deselect, next subkey, save.gpg --card-status must show the expected fingerprints. Then
gpgconf --kill all; rm -rf "$GNUPGHOME"; unset GNUPGHOME.gpg --card-status. Test a signature, and a
decryption if an encryption key moved.For a second YubiKey, repeat from the 1Password copy.
Public key only (gpg --armor --export). A key generated on the card has no extractable
secret: to have a backup, make a new key off-card, back it up here, then load it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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-ssh-keysCopy SSH keys from 1Password to a YubiKey PIV slot, or save YubiKey SSH public keys to 1Password, with op and ykman./1password-totpCopy TOTP / 2FA secrets from 1Password to a YubiKey with op and ykman, or enrol to both. Use on "1Password TOTP to YubiKey".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