AI • Science • Technology • Future

Side Projects

AI Agent Isolation with Firecracker MicroVMs

Image from the original article
Featured image: original publisher image. Via original publisher.

At Sandscale, a company focused on AI-powered development tools, the founder encountered a critical issue with AI agents running commands without proper oversight. Source: dev.to.

What Happened: A Real-World Problem with AI Agents

The founder observed that AI agents were executing commands on machines they hadn’t been instructed to run.

These commands affected systems the founder personally cared about—like development environments and personal data.

This raised a serious concern: if an AI agent can act independently, it could unintentionally or maliciously alter systems without human supervision.

How Sandscale Responded: Isolating Each Run with MicroVMs

To prevent such incidents, Sandscale now runs every AI agent execution in its own Firecracker microVM.

Each microVM has its own kernel and isolated environment. No shared memory, no shared processes, and no access to adjacent runs.

This design ensures that if one agent makes a mistake or runs unauthorized commands, it does not impact other runs or the host system.

Why MicroVMs Over Containers or gVisor?

The founder has written a detailed comparison of isolation options: containers, gVisor, and microVMs.

While containers and gVisor offer process-level isolation, they do not provide full system-level separation.

Firecracker, a lightweight virtualization tool, delivers full kernel isolation—making it more secure for sensitive AI agent operations.

It is still early access, and feedback from users is welcomed to help refine the system.

Key Technical Details and Limitations

  • Firecracker does not filter network egress by default. Network policies must be implemented separately.
  • Billing is based on awake vCPU-hours. Paused or idle time does not count.
  • Storage usage above a certain threshold still incurs charges.
  • Free tier costs $0 per month. Pro plan is $25/month. Team plan is $48 per member per month.

These pricing models reflect actual usage, not total runtime. This means users are only billed for active processing time.

Image from the original article
original publisher image. Via original publisher. · Source

Despite the benefits, the system has known gaps. For instance, network traffic control is not built into Firecracker. Users must configure their own network policies.

The founder emphasizes that this is an early-stage product. Feedback is critical to identify where the system breaks under real-world conditions.

Why This Matters for AI Development

As AI agents become more autonomous, their ability to make decisions and execute actions grows.

Without proper isolation, even small errors can cascade into system-level damage.

By running each agent in a dedicated microVM, Sandscale reduces the risk of unintended behavior and improves system reliability.

This approach sets a precedent for secure AI agent execution in development environments.

For developers using AI agents, it underscores the importance of isolation—not just for security, but for operational stability.

Learn more about the tradeoffs between containerization and microVMs in this post: Isolating AI Agent Code: Containers, gVisor, Firecracker.

Try the service yourself at cloud.sandscale.dev.

As the founder notes, they are the founder of Sandscale. This article reflects personal experience and may contain bias.

For a real-world example of AI agents building software, see: AI Coding Agent Builds Duolingo-Like App in Minutes.

For a free, open-source tool that supports affiliate marketing with zero fees, see: OpenPromoter.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source