Before you run anything

Choosing the environment

What goes into the workspace

  • Share only the project folder, not your home folder. Anything shared into the guest is reachable from it.
  • Don't copy your own SSH keys or cloud credentials in. Give the workspace narrowly scoped tokens for the task. The key Velo Workspaces uses for its built-in terminal lets you in; it doesn't let the guest out to anything else.

If the agent touches a real Git repository

Running a model alongside the agent

Two that aren't about the environment

  • Limit what data and long-lived credentials the session can reach, separately from execution isolation. A perfectly isolated VM doesn't help if the model can be talked into handing over something it was allowed to see.
  • Don't count on prompt-injection defenses holding. Treat isolation as the thing that must work when a defense doesn't, not a second line behind it.

Related reading: what goes wrong when an agent runs unsandboxed, how AI coding agents use your computer, and running AI agents safely in an isolated VM. Or download Velo Workspaces and try it yourself.