Remote API authentication with ssh-agent?

I am currently using TLS client certificates to communicate with my lxd servers. Is it possible to somehow use for example ssh-agent to pass private key to lxd client? I know that I can compile and use the LXD client locally on my macos to do all the operations on lxd host, but it would be more convenient if somehow pass the private key to the lxd client on the remote server without copying it there. Is it possible?

What you are asking is not possible AFAIK but one other thing you could do is to tell SSH to do the Unix socket forwarding.

Here’s a guide on how to do it for the Docker socket but the same concept applies for LXD: