The easiest way to do that today is to use one of the cloud-based asynchronous coding agent tools - like
https://claude.ai/code or
https://chatgpt.com/codex or
https://jules.google/They run the agent in a VM somewhere on their own infrastructure. Any leaks are limited to the code and credentials that you deliberately make available to those tools.