I want to mention a Yubikey alternative that runs on open-source firmware and software: OnlyKey [1]
It has an onlykey-agent that works as an SSH agent [2]. It doesn't work as a GPG agent yet though, they are reportedly working on it.
[1] https://onlykey.io/ [2] https://docs.crp.to/onlykey-agent.html