Skip to main content
microsandbox is a local-first microVM runtime for untrusted workloads: AI agents, user code, plugins, package installs, CI jobs, dev environments, scrapers, and automation. Each sandbox is a lightweight VM with its own Linux kernel, filesystem, and network boundary. Run it on your machine without a cloud account. When you need more compute, connect to our managed cloud and keep the same sandbox workflow. You can switch back whenever you want. It keeps the familiar workflow of OCI images and command execution, while moving risky work out of the host process.

Why microsandbox

  • Hardware isolation. Each sandbox is a VM, not a container namespace on the host kernel.
  • Local runtime. The SDK starts the sandbox process directly. No daemon, remote service, or infrastructure setup.
  • Local to cloud and back. Run locally by default, or switch connections to run on our managed cloud. Keep the same SDK and sandbox code, and switch back whenever you need to.
  • Fast startup. Sandboxes are lightweight enough to create from application code.
  • Docker-like inputs. Use familiar OCI images from Docker Hub, GHCR, ECR, GCR, or another registry.
  • Programmable controls. Configure resources, volumes, secrets, networking, and lifecycle from the CLI or SDK.
  • Multi-language SDKs. TypeScript, Rust, Python, Go, and Ruby expose the same core model.

Example use cases

  • AI agents. Give coding agents and tool-using assistants a dedicated machine for commands, files, package installs, and generated code.
  • User code execution. Run submitted scripts, notebooks, plugins, and extensions away from the host.
  • CI/CD and builds. Isolate test jobs, compilers, package managers, and build tools.
  • Dev environments. Create disposable Linux machines without touching your laptop or host Docker daemon.
  • Scrapers and automation. Allow internet access while blocking private networks and metadata services.
  • Secure tool execution. Run CLIs and dependencies that should not see host secrets or ambient credentials.
GuidesPut microsandbox to workTested workflows for agents, CI/CD, Docker, automation, and more.Browse all

Minimal example

Next steps

Quickstart

Install microsandbox and run your first sandbox.

Managed Cloud

Explore cloud compute, pricing, and local-to-cloud workflows.

CLI overview

Manage sandboxes from the terminal.

SDK reference

Choose a language and look up the API surface.