Using YubiKey with Keel
Use a YubiKey to confirm a specific AI agent action held for human review. When a rule requires a security key, the reviewer approves in the Keel dashboard and their registered key signs the exact approval terms. Keel verifies the signature before counting the vote.
The review adds a condition to the policy that allows the action. When Keel makes the downstream call, it holds the request until the required approvals are satisfied and checks the approval again before dispatch.
Before you start
Supported YubiKeys and protocol
| Model | USB connector | Confirmed firmware |
|---|---|---|
| YubiKey 5 NFC | USB-A | 5.7.4 |
| YubiKey 5C NFC | USB-C | 5.7.4 |
Use the USB connector for the steps below. Check the model and firmware with Yubico Authenticator . Keel checks the key’s hardware attestation at registration and currently admits the attestation class for these models on firmware 5.7.4. Firmware 5.8 is outside that class.
Keel uses FIDO2 through WebAuthn and requires user verification. Have the key’s FIDO2 PIN ready. Choose the physical security key at the browser prompt. Use your normal Keel sign-in to open the dashboard.
Browser and account requirements
- Open the Keel dashboard directly in a desktop browser tab over HTTPS. Use a browser and operating system combination that supports WebAuthn over USB with a roaming security key, direct attestation and FIDO2 user verification. See Yubico’s WebAuthn browser support matrix for browser and operating system combinations.
- Enrollment is available for domains set up for the Okta organization that Keel uses for security-key enrollment. Keel supports one enrollment Okta organization per deployment. Your sign-up email domain must designate that organization in DNS, and your Okta account must satisfy its fresh hardware-backed verification policy. Contact Keel to confirm eligibility for your domain.
- Each person who approves enrolls their own key. To configure the example below, you also need permission to edit the project’s policy.
Register your YubiKey
- In the Keel dashboard, go to Account and find Enroll a YubiKey for approvals.
- Enter a unique YubiKey name, such as
Desk YubiKey, then select Verify YubiKey, then continue to Okta. - Choose the physical security key when prompted. Insert your YubiKey, enter its FIDO2 PIN in the browser or operating system prompt, and touch the key when prompted. If the browser asks to share security key information, allow it so Keel can verify the attestation.
- Complete Okta verification in the same tab within five minutes. Use the Okta account that matches the work email you used to sign up for Keel.
- Back in Keel, select Check enrollment. If Keel is waiting for Okta evidence, check again before the deadline shown under Enrollment pending. Once enrollment completes, refresh Account if needed and confirm that the key appears under Security keys with Can approve.
Configure a review that requires a YubiKey
This example uses the project owner as the reviewer.
- Open Policies for the project and edit the applicable policy. Use a Review rule scoped to the agent action you want a person to check. Keep the matching Allow rule scoped to the actions and targets the agent may use.
- Under Who approves, choose The project owner, in Keel. Under How the owner confirms, select Security key, checked by Keel. The project owner must already have a key that shows Can approve.
- Save the policy and make sure it is active for the project. Send a fresh matching request to apply the new rule. Each Permit carries the review requirement that applied when it was held.
Enterprise teams that configure named Keel reviewers can also require a hardware key for eligible dashboard reviewers. See Approver Groups for the policy configuration.
Approve a held agent action
- Have your agent request an action covered by the configured rule through an integration where Keel makes the downstream call. For a first run, use a test project and a harmless target.
- As the eligible reviewer, open the project in Keel and go to Requests → Needs action. Open the held request and check the action, its target and the parameters shown. If you want to refuse the request, select Reject.
- Select Approve. In the Touch your security key dialog, check the request and project shown, then select Touch your security key.
- In the browser prompt, use your enrolled YubiKey. Enter its FIDO2 PIN and touch the key when prompted. Keel verifies the response and submits the vote. Check the request for its updated review status. If the policy calls for multiple votes, the request stays on hold until it has enough eligible approvals.
Verify the approval evidence
When the required proof is available for each counted security-key vote, the downloadable AI Permit includes the WebAuthn signature and registration evidence. It also includes Keel’s signed statement tying the vote to the Permit, request, reviewer and key, and recording Keel’s eligibility check. The execution Permit records Keel’s signed check that the key was still active at dispatch.
In the Permit’s detail view, open Actions and choose Download Protected permit when available. Install the current verifier from Running Keel Verify and run this command with the downloaded file:
keel-verify export permit.jsonThe report shows Hardware security key independently verified for this approval when the hardware proof verifies. This is evidence that the registered key signed the approval terms with user verification. Look at the execution or provider evidence separately to check what happened after approval. Older approvals may lack the required proof, and keys enrolled before Keel retained the full registration evidence can leave hardware origin unproven. For a new approval in that case, enroll a key through the current registration flow and use it on a fresh request.
Add a backup key
Repeat registration with a second physical YubiKey and a different name, such as Backup YubiKey. Verify that both entries show Can approve. Keep the backup somewhere you can reach if you lose the primary key, then use it with the same approval steps when needed.
Lost, stolen or revoked keys
- Sign in as usual and open Account → Security keys.
- Select Lost or stolen next to a missing or possibly compromised key. Use Revoke to retire a key you still control. Confirm the change. The registration stops working across your Keel account, including every organization you belong to.
- Use an enrolled backup or register a replacement through the same Okta verification flow. You can register a replacement without the old key. If you retired a key you still control, it can be enrolled again as a new registration.
- If you already approved a request and its key is revoked or marked lost before dispatch, Keel can no longer use that approval. Check the request state and submit a fresh request for review if it lapses.
If you cannot sign in or complete your company’s Okta verification, work with your identity administrator to restore access. Contact Keel if the enrollment prerequisites are in place and you still cannot register a replacement.
Troubleshooting and limits
| What you see | What to do |
|---|---|
| The browser offers a built-in or synced passkey. | Choose the physical security key option and plug in your YubiKey. |
| Enrollment says the browser cannot enroll a WebAuthn credential, or the attestation is refused. | Open the dashboard in a regular desktop browser tab. Check the model and firmware, then confirm that your browser can provide direct attestation with a USB security key. |
| Enrollment is still pending. | Complete Okta verification in the same tab, then select Check enrollment. If the attempt has expired, select Start again and repeat registration. |
| The key appears under Security keys but cannot approve. | Check the reason shown beside it. If it was enrolled for an old Keel address, revoke that registration and enroll again from the current dashboard. |
| Security key, checked by Keel is unavailable. | Check that the selected reviewer is the project owner and that their key shows Can approve. If the dashboard still reports the option unavailable, contact Keel. |
| The approval prompt was canceled or expired. | Reopen the request and select Approve again to get a fresh challenge. If the review itself has expired, submit a fresh request. |
Use the dashboard to complete this hardware-key review. Approval API keys and external review sheets cannot satisfy this check. Keel’s enrollment depends on your domain’s DNS and the verification that Okta reports. The approval evidence records what the key signed and the verification it reported.