AIToday
Large Language ModelsAI Coding AssistantsOpen-Source AIHacker NewsPublished: Jul 28, 2026, 22:00 JST

Microsoft releases Quicksand: Python API to sandbox AI agents via QEMU

Microsoft releases Quicksand: Python API to sandbox AI agents via QEMU

3 Key Points

  1. What happened

    Microsoft has released Quicksand, an async Python library that launches and controls QEMU virtual machines for sandboxing AI agents. It runs on x86_64 and ARM64 across macOS, Linux, and Windows without requiring Docker, WSL, root privileges, or system dependencies—users can install it with a single pip command.

  2. Why it matters

    AI developers need isolated execution environments to safely run agents. Quicksand removes friction by eliminating Docker and system-level setup overhead, making sandboxing accessible to Python developers who want to snapshot, checkpoint, and roll back agent workloads without complex infrastructure.

  3. What to watch

    The library ships with five pre-built images (ubuntu, alpine, ubuntu-desktop, alpine-desktop, and quicksand-agent) ranging from ~78 MB to ~445 MB. It supports desktop control via Xfce4, network isolation by default with opt-in full internet access, and persistent state snapshots that can be loaded on different machines.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Quicksand addresses a concrete pain point for AI agent developers: the need to safely execute untrusted or experimental code in isolation. By wrapping QEMU with a Python async API, Microsoft eliminates the typical barriers to VM-based sandboxing—no Docker daemon, no WSL layer, no root privileges. The library's pre-built images (ranging from Alpine at ~78 MB for fast boot to a full agent stack at ~445 MB) and snapshot/checkpoint capabilities make it possible to prototype, test, and roll back agent behavior without managing infrastructure.

The tool's flexibility—supporting both headless and desktop images, file mounts, port forwarding, and cross-machine snapshot restoration—suggests it is designed for both development workflows (where agents may need GUI access or browser control) and production-like scenarios (where state must be preserved and migrated). Network isolation by default aligns with security-first design; opt-in FULL mode lets developers test internet-dependent behaviors when needed.

FAQ
How do I install Quicksand?
Install with pip install 'quick-sandbox[qemu,alpine]' for a full setup, or pip install quick-sandbox followed by quicksand install qemu alpine to add QEMU and images separately.
What platforms and architectures does Quicksand support?
Quicksand works on x86_64 and ARM64 across macOS, Linux, and Windows with no root privileges required.
Can I save and restore a sandbox environment?
Yes. You can save the VM's disk state to a directory with await sb.save("my-env") and load it later on the same or a different machine, or use checkpoints to capture full VM state and revert if something goes wrong.
Are sandboxes network-isolated by default?
Yes, sandboxes are network-isolated by default. You can opt in to internet access and port forwarding by setting network_mode=NetworkMode.FULL.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI IPO Billionaires to Unleash Largest Philanthropy Wave in Decades