microsandbox

Easy, fast, local microVMs for untrusted workloads like AI agents, user code, plugins, and CI jobs.

Stars
★ 9.3k
Last updated
1d ago v0.8.4
FARS reviewed
Nov 08, 2026 +7 new
License
Apache-2.0
Primary language
Rust

At a glance

How it runs
CLILibrary / SDKMCP server
Works with
Platform-specificClaude CodeChatGPT · Codex (Partial support)
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
RustPythonNode.jsGoRubyShell / CLINetwork accessLocal filesystem
Typical use
Developers of AI agents that need to execute untrusted code often use the microsandbox SDK to spawn sandboxes on demand, ensuring agent actions are isolated and safe.
Not a fit if
  • Environments that must run fully offline without pre-cached images
  • Users on Intel Macs, Linux without KVM, or Windows without WHP
  • Teams needing deep Docker or Kubernetes orchestration integration
Website
docs.microsandbox.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v0.8.4 (2026-11-30)+10.6 ★/day over 7 days
Source review
71/100 · Some gaps

What does this agent do, and when should you use it?

microsandbox is a local-first microVM runtime and library that runs untrusted workloads in hardware-isolated microVMs, combining the security of VMs with the ease of containers. It is cross-platform (Linux, macOS, Windows) and OCI-compatible, allowing you to run standard container images from Docker Hub, GHCR, or any OCI registry. The project provides SDKs in Rust, Python, TypeScript, Go, and Ruby, plus a CLI named msb for managing sandboxes, images, and volumes. It also offers Agent Skills and an MCP server that let AI agents create and manage sandboxes programmatically. The software is in beta, licensed under Apache 2.0, and backed by Y Combinator.

microsandbox runs untrusted workloads inside lightweight microVMs, providing hardware-level isolation. The workflow begins by creating a sandbox via SDK calls like Sandbox::builder("name").image("python").cpus(1).memory(512).create() (or equivalent), which boots a microVM as a child process. You can then execute commands, e.g., sandbox.exec("python", ["-c", "print('Hello from a microVM!')"]), and capture stdout. The CLI offers msb run debian to run an image, msb create/msb exec/msb stop/msb rm for named sandboxes, msb pull/msb image ls/msb image rm for image management, and msb ls/msb ps/msb inspect/msb metrics for status. It supports OCI images, network restriction (e.g., allowed_hosts, allowed_ports), and secret injection (e.g., secrets with allowed_host). Agent Skills (npx skills add superradcompany/skills) add skill definitions for coding agents, and the MCP server (microsandbox-mcp) enables MCP-compatible agents to call tools for sandbox lifecycle, command execution, filesystem access, volumes, and monitoring.

  1. Developers of AI agents that need to execute untrusted code often use the microsandbox SDK to spawn sandboxes on demand, ensuring agent actions are isolated and safe.
  2. Platform teams running user-generated scripts or plugins in production use microVM isolation to contain malicious behavior.
  3. CI/CD engineers needing isolated, reproducible build environments per job with low resource overhead leverage microsandbox to avoid heavyweight VMs.
  4. Developers looking for a Docker-like experience for running containerized apps locally without a daemon can use the msb CLI to quickly spin up disposable environments.
  5. Users of AI coding agents like Claude Code integrate Agent Skills or MCP server to let the agent run code in standalone sandboxes, preventing accidental host modifications.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • uv add microsandbox
  • npm i microsandbox
  • gem install microsandbox
  • npx microsandbox run debian
Install notes cover
Windows · macOS · Linux

How do you install or deploy this agent?

Install SDKs: Rust cargo add microsandbox, Python uv add microsandbox, TypeScript npm i microsandbox, Go go get github.com/superradcompany/microsandbox/sdk/go, Ruby gem install microsandbox. Install CLI: quick try npx microsandbox run debian; global install via curl -fsSL https://install.microsandbox.dev | sh (macOS/Linux) or irm https://install.microsandbox.dev/windows | iex (Windows). Package managers: brew install superradcompany/tap/microsandbox, npm i -g microsandbox, uv tool install microsandbox, cargo install microsandbox. Requirements: macOS Apple Silicon, Linux with KVM enabled, Windows with WHP enabled.

How do you use this agent?

After installing, run msb run python -- python3 -c "print('Hello from a microVM!')" to execute a command. For named sandboxes, msb create --name app python, then msb exec app -- python -c "import this". Manage images: msb pull python, msb image ls, msb image rm python. Stop/start: msb stop app, msb start app. Inspect: msb ls, msb ps app, msb inspect app, msb metrics app. In code, use the Rust SDK: Sandbox::builder("my-sandbox").image("python").cpus(1).memory(512).create().await?, then exec and stop(). Python example: Sandbox.create("my-sandbox", image="python", cpus=1, memory=512) with asyncio. TypeScript: Sandbox.builder("my-sandbox").image("python").create(). Go: microsandbox.CreateSandbox(ctx, "my-sandbox", microsandbox.WithImage("python"), microsandbox.WithCPUs(1), microsandbox.WithMemory(512)).

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Hardware-level isolation using microVM technology offers a stronger security boundary than containers.
  • OCI-compatible, so you can run standard container images from Docker Hub or GHCR without rebuilding.
  • Multi-language SDKs (Rust, Python, TypeScript, Go, Ruby) make integration straightforward.
  • Fast startup (under 100ms on M1) is ideal for frequently creating/destroying sandboxes.
  • Embeddable: boots VMs as child processes without needing a server or long-running daemon.
  • Supports long-running sandboxes in detached mode, suitable for persistent sessions.
  • Secrets injection and network restrictions prevent secret leakage even if the VM is compromised.
Limitations
  • Beta software: breaking changes, missing features, and rough edges are expected.
  • Specific host requirements: Apple Silicon on macOS, KVM on Linux, WHP on Windows, which may exclude some hardware or cloud instances.
  • First image pull can take time and requires network connectivity; offline environments need pre-caching.
  • Limited integration with existing orchestration (Docker/Kubernetes); custom code needed for multi-sandbox management.
  • Documentation may be incomplete for advanced configuration (e.g., network restrictions, secret injection details).
  • Installation via multiple package managers may be inconsistent; CLI install requires a shell script or curl, which might be a security concern for some users.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
microsandbox This agent 71 · Some gaps CLIFree ★ 9.3k 1d ago Rust Claude Code
Vetto 68 · Some gaps CLIFree ★ 45 1mo ago Rust Codex · Claude Code · OpenAI API · Claude API
h5i — A Security-First Headless Browser for AI Agents 67 · Some gaps CLIFree ★ 1k 2d ago Rust Codex · Claude Code
Open Browser Use 65 · Some gaps CLIFree ★ 438 1mo ago JavaScript Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
71/ 100 5-point scale 3.6 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 7 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 16/29
Reliability 8/14
Adaptability 16/18
Convention 14/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust16 / 29 · 2.8/5

MicroVM isolation, network policies, read-only mounts, secrets kept out of the VM, and repair guidance that asks before maintenance and retains original disks support least privilege and recovery. However, installers download and execute scripts, images and runtimes come from external sources, and the packet says little about supply-chain controls, so those areas lose points. Secret protection has concrete configuration examples, but the strong 'can't leak' claim lacks code evidence; attribution is only partly traceable through Cargo metadata and contribution guidance, and publisher identity is unknown.

Reliability8 / 14 · 2.9/5

The README, quickstart, and SDK examples cover multiple languages, while the docs disclose beta status, platform prerequisites, cloud capability differences, and migration failure handling. The sample cannot establish full CLI/SDK consistency or external dependency availability; compatibility and diagnostic coverage also have stated boundaries.

Adaptability16 / 18 · 4.4/5

The packet identifies AI agents, user code, CI, and development environments as scenarios, and provides CLI, configuration files, multi-language SDKs, and local/cloud guidance. Flags, configuration boundaries, and platform requirements are specific. Invocation is mainly explicit through CLI, SDK, or integration; the sample does not show trigger rules for the referenced agent skills or MCP server, so that criterion is not full marks.

Convention14 / 18 · 3.9/5

Documentation is organized across quickstart, CLI, SDK, configuration, migration, and troubleshooting; examples and known limitations are extensive, and Apache-2.0 is explicit. The packet does not include changelog contents. CLI/SDK aliases and deprecation notes provide some naming guidance but not enough evidence of long-term stability; maintenance responsibility is indicated only indirectly by contribution guidance and repository metadata.

Effectiveness12 / 13 · 4.6/5

Runnable CLI and SDK examples, structured configuration, snapshots/forks, and varied isolation use cases provide clear practical value. Local startup and reuse can improve cost-benefit, while installation, image pulls, and platform virtualization requirements add setup costs; performance and benefit claims are not verified by this static packet.

Verifiability5 / 8 · 3.1/5

Many behaviors and limitations are corroborated across the configuration reference, CLI docs, migration guide, and quickstart, with concrete fields and prerequisites; beta status and version limits are disclosed. Key isolation, speed, and secret-safety claims remain mainly product assertions, with insufficient implementation or independent corroboration in this sample, and fact/inference boundaries are only partly explicit.

Risks and how to mitigate them
  • The project explicitly describes itself as beta; check virtualization prerequisites and cloud limitations before use.
  • Installers execute remote scripts, and first runs may pull images; review installation sources and apply suitable network and image policies.
  • Migration documentation says older storage layouts can block some operations; preserve sandbox data and follow the platform-specific stop and confirmation steps before repair.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 5da702c9ce96 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/microsandbox.svg)](https://followagents.com/en/agents/microsandbox)
<a href="https://followagents.com/en/agents/microsandbox"><img src="https://followagents.com/badge/microsandbox.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.8.4
    Release notes excerpt
    <!-- Release notes generated using configuration in .github/release.yml at v0.8.4 --> What's Changed Features * feat(cli): support --materialize on msb load by @appcypher in https://github.com/superradcompany/microsandbox/pull/2187 Fixes * fix(image): accept multi-platform index digest pins by @appcypher in https://github.com/superradcompany/microsandbox/pull/2184 * fix(snapshot): release checkpoint-store objects no snapshot uses after removal by @0xpolarzero in https://github.com/superradcompany/microsandbox/pull/2047 …
    View on GitHub ↗
  2. v0.8.3
    Release notes excerpt
    <!-- Release notes generated using configuration in .github/release.yml at v0.8.3 --> What's Changed Breaking changes * fix(sdk)!: expose configured contexts and retained metadata by @appcypher in https://github.com/superradcompany/microsandbox/pull/2177 Fixes * fix(windows): keep TLS keys private on shared data drives by @appcypher in https://github.com/superradcompany/microsandbox/pull/2176 Documentation * docs(readme): announce microsandbox cloud by @appcypher in https://github.com/superradcompany/microsandbox/pull/2171 Maintenance …
    View on GitHub ↗
  3. v0.8.2
    Release notes excerpt
    <!-- Release notes generated using configuration in .github/release.yml at v0.8.2 --> What's Changed Features * feat(sdk): use the cloud restart route by @TheRealSibasishBehera in https://github.com/superradcompany/microsandbox/pull/1901 * feat(metrics): read independent snapshots from registry files by @toksdotdev in https://github.com/superradcompany/microsandbox/pull/2102 * feat(agent): allow explicit in-band relay connections by @toksdotdev in https://github.com/superradcompany/microsandbox/pull/2103 …
    View on GitHub ↗

FAQ

How does microsandbox differ from Docker?
Docker uses containers sharing the host kernel, while microsandbox uses lightweight microVMs providing hardware-level isolation. This yields stronger security, but boot time may be slightly higher, although still under 100ms on M1.
Can I use my own Docker images?
Yes, microsandbox is OCI-compatible and can run standard images from any OCI registry, including Docker Hub, GHCR, and private registries.
What hardware virtualization support is needed on Linux?
KVM must be enabled. Most modern Linux distributions support it, but some cloud VMs may not, so check your deployment environment.
Can sandboxes access the network? Can I restrict it?
Yes, network access is configurable via SDK settings like allowed_hosts and allowed_ports (e.g., Python example). This lets you restrict sandboxes to only reach specific hosts and ports.
How does secret injection work?
You can specify secrets in the SDK, e.g., secrets: [{ env: "OPENAI_API_KEY", value: ..., allowed_host: "api.openai.com" }]. The secret is available inside the sandbox as an environment variable, but only usable for the allowed host, preventing exfiltration.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts