{"slug": "microsandbox-local-first-programmable-micro-vms", "title": "Microsandbox – local-first programmable micro VMs", "summary": "Superrad Company launched Microsandbox, a local-first programmable micro VM platform that boots lightweight virtual machines in under 100 milliseconds directly from developer code without requiring server setup or long-running daemons. The open-source tool provides hardware-level isolation, runs standard OCI container images, and offers SDKs for Rust, Python, TypeScript, and Go, enabling developers to embed rootless microVMs into their applications for agent-ready computing.", "body_md": "**—— the easiest way to give your agent their own computer ——**\n\n**Microsandbox** spins up **lightweight VMs in milliseconds** from our SDKs. Runs locally on your machine. No server to set up. No lingering daemon. It is all embedded and rootless!\n\n**Hardware Isolation**: Hardware-level isolation with microVM technology.** Instant Startup**: Average boot times under 100 milliseconds.** Embeddable**: Spawn VMs right within your code. No setup server. No long-running daemon.** Secrets That Can't Leak**: Unexploitable secret keys that never enter the VM.** OCI Compatible**: Runs standard container images from Docker Hub, GHCR, or any OCI registry.** Long-Running**: Sandboxes can run in detached mode. Great for long-lived sessions.** Agent-Ready**: Your agents can create their own sandboxes with our[Agent Skills](https://github.com/superradcompany/skills)and[MCP server](https://github.com/superradcompany/microsandbox-mcp).\n\n```\ncargo add microsandbox                                   # 🦀 Rust\nuv add microsandbox                                      # 🐍 Python\nnpm i microsandbox                                       # 🟦 TypeScript\ngo get github.com/superradcompany/microsandbox/sdk/go    # 🐹 Go\n```\n\nBoot a microVM in one command.\n\n```\nnpx microsandbox run debian\n```\n\nOr install the\n\n`msb`\n\ncommand globally:\n\n```\ncurl -fsSL https://install.microsandbox.dev | sh\n```\n\nOn macOS you can also install with Homebrew:\n\n```\nbrew install superradcompany/tap/microsandbox\nmsb run debian\n```\n\nRequirements: Linux with KVM enabled, or macOS with Apple Silicon.\n\nWarning: Microsandbox is stillbeta software. Expect breaking changes, missing features, and rough edges.\n\nThe SDK lets you create and control sandboxes directly from your application. `Sandbox::builder(\"...\").create()`\n\nboots a microVM as a child process. No infrastructure required.\n\n``` php\nuse microsandbox::Sandbox;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let sandbox = Sandbox::builder(\"my-sandbox\")\n        .image(\"python\")\n        .cpus(1)\n        .memory(512)\n        .create()\n        .await?;\n\n    let output = sandbox\n        .exec(\"python\", [\"-c\", \"print('Hello from a microVM!')\"])\n        .await?;\n\n    println!(\"{}\", output.stdout()?);\n\n    sandbox.stop_and_wait().await?;\n\n    Ok(())\n}\n```\n\nPython Example →\n\n``` python\nimport asyncio\nfrom microsandbox import Sandbox\n\nasync def main():\n    sandbox = await Sandbox.create(\n        \"my-sandbox\",\n        image=\"python\",\n        cpus=1,\n        memory=512,\n    )\n\n    output = await sandbox.exec(\"python\", [\"-c\", \"print('Hello from a microVM!')\"])\n\n    print(output.stdout_text)\n\n    await sandbox.stop_and_wait()\n\nasyncio.run(main())\n```\n\nTypeScript Example →\n\n``` js\nimport { Sandbox } from \"microsandbox\";\n\nawait using sandbox = await Sandbox.builder(\"my-sandbox\")\n  .image(\"python\")\n  .cpus(1)\n  .memory(512)\n  .create();\n\nconst output = await sandbox.exec(\"python\", [\"-c\", \"print('Hello from a microVM!')\"]);\n\nconsole.log(output.stdout());\n```\n\nGo Example →\n\n```\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"log\"\n\n    microsandbox \"github.com/superradcompany/microsandbox/sdk/go\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    // Downloads the microsandbox runtime to ~/.microsandbox/ on first run.\n    if err := microsandbox.EnsureInstalled(ctx); err != nil {\n        log.Fatal(err)\n    }\n\n    sandbox, err := microsandbox.CreateSandbox(ctx, \"my-sandbox\",\n        microsandbox.WithImage(\"python\"),\n        microsandbox.WithCPUs(1),\n        microsandbox.WithMemory(512),\n    )\n    if err != nil {\n        log.Fatal(err)\n    }\n    defer sandbox.StopAndWait(ctx)\n\n    output, err := sandbox.Exec(ctx, \"python\", []string{\"-c\", \"print('Hello from a microVM!')\"})\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    fmt.Println(output.Stdout())\n}\n```\n\nThe first call to\n\n`create()`\n\npulls the image if it isn't cached locally, so it may take longer depending on your connection. Subsequent runs reuse the cache.\n\nThe `msb`\n\nCLI provides a complete interface for managing sandboxes, images, and volumes.\n\n```\nmsb run python -- python3 -c \"print('Hello from a microVM!')\"\n# Create and start a named sandbox\nmsb create --name my-app python\npython\n# Execute commands\nmsb exec my-app -- python -c \"import this\"\nmsb exec my-app -- curl https://example.com\n# Lifecycle\nmsb stop my-app\nmsb start my-app\nmsb rm my-app\nmsb pull python           # Pull an image\nmsb image ls              # List cached images\nmsb image rm python       # Remove an image\nmsb install ubuntu               # Install ubuntu sandbox as 'ubuntu' command\nubuntu                           # Opens Ubuntu in a microVM\nmsb uninstall ubuntu             # Uninstall the ubuntu sandbox\nmsb ls                         # List all sandboxes\nmsb ps my-app                  # Show sandbox status\nmsb inspect my-app             # Detailed sandbox info\nmsb metrics my-app             # Live CPU/memory/network stats\n```\n\nTip\n\nRun `msb --tree`\n\nto see all available commands and their options.\n\nGive your AI agents the ability to create and manage their own sandboxes.\n\nTeach any AI coding agent how to use microsandbox by installing the\n\n[Agent Skills]. Works with Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and more.\n\n```\nnpx skills add superradcompany/skills\n```\n\nConnect any MCP-compatible agent to microsandbox with the\n\n[MCP server]. Provides structured tool calls for sandbox lifecycle, command execution, filesystem access, volumes, and monitoring.\n\n```\n# Claude Code\nclaude mcp add --transport stdio microsandbox -- npx -y microsandbox-mcp\n```\n\nFor guides, API references, and examples, visit the [microsandbox documentation](https://docs.microsandbox.dev).\n\nInterested in contributing to `microsandbox`\n\n? Check out our [CONTRIBUTING.md](/superradcompany/microsandbox/blob/main/CONTRIBUTING.md) for guidelines and [DEVELOPMENT.md](/superradcompany/microsandbox/blob/main/DEVELOPMENT.md) for build, test, and release instructions.\n\nThis project is licensed under the [Apache License 2.0](/superradcompany/microsandbox/blob/main/LICENSE).\n\nSpecial thanks to all our contributors, testers, and community members who help make microsandbox better every day! We'd like to thank the following projects and communities that made `microsandbox`\n\npossible: [libkrun](https://github.com/containers/libkrun) and [smoltcp](https://github.com/smoltcp-rs/smoltcp)", "url": "https://wpnews.pro/news/microsandbox-local-first-programmable-micro-vms", "canonical_source": "https://github.com/superradcompany/microsandbox", "published_at": "2026-06-06 12:39:12+00:00", "updated_at": "2026-06-06 13:18:05.666509+00:00", "lang": "en", "topics": ["ai-infrastructure", "ai-tools", "ai-agents", "ai-products"], "entities": ["Microsandbox", "Docker Hub", "GHCR", "OCI", "Homebrew", "Rust", "Python", "TypeScript"], "alternates": {"html": "https://wpnews.pro/news/microsandbox-local-first-programmable-micro-vms", "markdown": "https://wpnews.pro/news/microsandbox-local-first-programmable-micro-vms.md", "text": "https://wpnews.pro/news/microsandbox-local-first-programmable-micro-vms.txt", "jsonld": "https://wpnews.pro/news/microsandbox-local-first-programmable-micro-vms.jsonld"}}