Before you run anything

  • Know the mechanism isn't special. An agent's process gets the same OS-level permissions as the account that launched it — no separate, more restricted tier exists. See how AI coding agents use your computer.
  • Know what's actually reachable. SSH keys, cloud credentials, GitHub CLI tokens, shell history, project .env files — a concrete inventory, not a guess. See what can an AI coding agent actually access.

Choosing the environment

If the agent touches a real Git repository

Running a model alongside the agent

The two that aren't about the environment at all

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

Related reading: what actually 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.