Skip to main content
πŸŽ“ Claude Code Masterclass Learn AI-assisted development on Udemy β€” plus the companion book on Leanpub & Amazon. Start Learning
Lima v2.1 AI Agent Sandboxing
DevOps

Lima v2.1: AI Agent Sandboxing and macOS Guest Support

Lima v2.1 adds macOS guest VMs and hardened AI agent sandboxing. Run untrusted AI agents safely in isolated virtual machines on your laptop.

LB
Luca Berton
Β· 1 min read

Lima v2.1 is a quiet but important release. The CNCF project (Incubating since October 2025) now supports macOS guest VMs and hardened AI agent sandboxing. If you are running AI coding agents on your laptop, this is how you keep them from destroying your system.

What Is Lima?

Lima (Linux Machines) creates local VMs with a single command:

brew install lima
limactl start

Originally built for running containerd on macOS, Lima now supports a broader range of workloads including AI agent isolation.

macOS Guests (Experimental)

The most requested feature: run macOS VMs inside macOS:

limactl start template:macos
limactl shell macos

This enables:

  • macOS CI/CD testing without dedicated hardware
  • Isolated macOS build environments
  • Platform-specific development and debugging

AI Agent Sandboxing

This is the feature that matters for 2026. AI coding agents (Cursor, Claude Code, OpenClaw) execute arbitrary code on your machine. Lima provides isolation:

  • Filesystem isolation β€” agents cannot access your home directory
  • Network controls β€” restrict outbound connections
  • Resource limits β€” CPU and memory constraints
  • Snapshot/rollback β€” reset to clean state after agent runs

Example: Sandbox an AI Agent

# Create an isolated VM for AI agent work
limactl start --name ai-sandbox \
  --cpus 4 \
  --memory 8GiB \
  --disk 50GiB

# Run agent inside the sandbox
limactl shell ai-sandbox -- \
  openclaw gateway start

The agent has full access inside the VM but cannot touch your host filesystem, network, or other VMs.

Why This Matters

As AI agents become more autonomous, the attack surface grows. An AI agent that can:

  • Read your SSH keys
  • Access your cloud credentials
  • Modify system files
  • Exfiltrate data over the network

…is a security incident waiting to happen. Lima provides the isolation boundary that operating systems do not have natively for AI workloads.

About the Author

I am Luca Berton, AI and Cloud Advisor. I help teams secure their AI development environments. Book a consultation.

Free 30-min AI & Cloud consultation

Book Now