That seems fine if you have a box that's running all the time and something like tailscale set up. I haven't bothered because I'm lazy, but I do want any coding agents I have off my laptop and off the local network, because I'm a little wary about them getting subverted. They need Internet access anyway, so might as well.
Since I anticipate using coding agents a lot, that means my dev environment is going to live in a VM in the cloud from now on.