Is there any step by step guide how to setup YubiKey in Qubes OS?

Just ordered first YubiKey 5 NFC, and was looking for guide how to setup it in Qubes OS for mostly Website logins and OTP…

Is the process starts from creating CTAP Proxy ( CTAP proxy — Qubes OS 4.3.1 documentation ) ?? Can I add to my YubiKey all OTP/passkey in other device and is it stored in YubiKeys device ?

I have few AppVM qubes I will use it with, eg. Banking AppVM, and Disposable Banking Qube based on Banking AppVM.

Asked Gemini how to setup it for disposables qubes and got this answer (it’s after he advice to create new qubes ‘sys-yubikey’ and installing ‘sudo dnf install qubes-u2f’ CTAP/U2F backend package in Template VM);

Step 1: Enable the Proxy Service on the Template

Since you can't manually run commands on a disposable qube before it boots, you must enable the CTAP/U2F proxy service on the underlying template so every spawned disposable inherits it automatically.

Run this in a dom0 terminal:

bash
qvm-service --enable Banking qubes-u2f-proxy 

Use code with caution.
(Now, any disposable qube spawned from Banking will automatically have the client proxy running inside it.)

Step 2: Use the @dispvm: Syntax in the Dom0 Policy

To authorize these dynamic, randomized qubes without compromising security, you use the @dispvm:AppVM-Name syntax in your Qrexec policy. 
This tells Qubes: "Allow any disposable qube to talk to sys-yubikey, but ONLY if it was spawned from the Banking templates."
1. Open your policy file in a dom0 terminal:

bash sudo nano /etc/qubes/policy.d/30-user.policy

Use code with caution.
2. Update or add lines specifically targeting the disposable environments using @dispvm::text 

# Rules for Disposables spawned from the Banking Template u2f.Authenticate  *  @dispvm:Banking  sys-yubikey  allow ctap.GetInfo      *  @dispvm:Banking  sys-yubikey  allow ctap.ClientPin    *  @dispvm:Banking  sys-yubikey  allow

Use code with caution.
3. Save and close the file (Ctrl+O, Enter, Ctrl+X).

Why this is the ultimate setup:

By combining Disposable Qubes with your intermediate sys-yubikey proxy, you achieve maximum isolation:
1. Your browser state is completely wiped the moment you close your banking session.
2. Your USB stack remains isolated from your web browsers.
3. Malicious or random disposables cannot access your YubiKey because
dom0 explicitly filters access based strictly on the originating template (@dispvm:Banking).

Is The Gemini Helpful on that ?

typically you just set up proxy on usb qube, but you may use a dedicated one for that. you need to automatically attach it there, then.

Thanks, Is the Gemini tutorial from my first post should work ?

well, at least newlines are broken so c&p will give you broken policy. why don’t you use the official split-u2f manual?

If it’s for websites only and passkeys then just attach it to desired qube and use.
I’ve installed yubikey-auth app to vault qube for manage.