Recently, I have been thinking more about how to run an AI agent safely on my own computer.
A setup I like is to run OpenClaw inside a virtual machine. The VM becomes the main agent environment. I only expose a small web port for quick app preview, and use SSH when the agent needs to work on the host side.
In my case, the host can be Windows or WSL2. I add that machine as an SSH host, so the agent inside the VM can edit code there, run commands there, or manipulate Docker there, without living directly in the host environment.
This gives one more guardrail layer between the OpenClaw runtime and my main working system.
A simple sketch is:
1 | [Browser] |
Another point is AI identity.
I think it is better to give the agent a separate email account, a separate GitHub account, and a separate browser profile. That reduces the risk of accidental deletion, wrong login state, or mixing personal data with agent actions.
For me, this kind of setup is not about making the agent stronger. It is about making it safer, cleaner, and easier to trust.