It was suprisingly unwritten about workable configuration for the ssh-agent to use with i3wm. The following
works for me after adding it to the ~/.profile
and reloging in.
case "$DESKTOP_SESSION" in
i3)
eval $(ssh-agent)
;;
sway)
eval $(ssh-agent)
;;
esac
Relevant links: