Compare
Containers vs sandboxes for AI agents.
Agents run code that a model wrote a second ago and nobody reviewed. Which AI agent sandbox is enough for that?
Side by side
| Standard container (runc) | gVisor · tier-0 | Kata + Firecracker · tier-1 | Confidential VM · tier-2 | |
|---|---|---|---|---|
| Kernel boundary | Shares the host kernel | A user-space kernel intercepts system calls | Its own guest kernel in a hardware-virtualised microVM | Its own guest kernel; memory encrypted from the host |
| Protects from the host operator | No | No | No | Yes, within the hardware vendor's trust model |
| System-call compatibility | Full | Most workloads; some system calls are not implemented | Full | Full |
| Start-up and overhead | Lowest | Low | Higher: a VM boots per sandbox | Highest: VM boot plus attestation |
| Node requirements | None | None beyond the runtime | Hardware virtualisation (KVM) | AMD SEV-SNP or Intel TDX hardware |
| Good for | Code you wrote and reviewed | Code interpreters, data analysis, untrusted scripts | Build tools, browsers, broader system-call needs | Regulated data, customer secrets, untrusted infrastructure |
Where MAQPNA fits
Every tier, chosen per agent, governed the same way.
apiVersion: maqpna.com/v1alpha1
kind: Agent
metadata:
name: code-interpreter
spec:
image: registry.example.eu/agents/interpreter:1.2
tier: tier-0 # gVisor; tier-1 microVM; tier-2 confidential VM
policyRef: interpreter-toolsFAQ
Common questions
Is a container enough to run AI agent code?
For code you wrote and reviewed, usually yes.
Do I need confidential VMs?
Only when the host operator is outside your trust boundary, for example on shared or third-party infrastructure, or for regulated data that must be protected in use.
Can I mix tiers in one cluster?
Yes.
Pick the boundary per agent.
Run tier-0 on a laptop today, then choose microVMs or confidential VMs per agent in your cluster.
curl -fsSL https://maqpna.com/install.sh | shirm https://maqpna.com/install.ps1 | iex