SuperAPIAI Directory

SmolVM

github.com · AI agents

Open-source microVM sandbox infrastructure for code execution, browser use, and AI agents. macOS/Linux support, snapshotting, pause/resume, and persistent environments across turns. Apache-2.0.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Windows · Linux · API

About this tool

SmolVM (repository URL https://github.com/CelestoAI/SmolVM)是 An open-source project hosted by CelestoAI, provided by Celesto as a "secure, persistent computer for AI agents." Its core idea is: give an AI agent a computer of its own, used to run code, browse the web, and use desktop applications. This computer can run on the local machine during development, or run on Celesto Cloud to support remote and production work.

[Purpose] Each sandbox is a lightweight virtual machine that starts in about 500 milliseconds and can retain files and state across different sessions. Because the agent runs in a separate virtual machine rather than as a process on the user's computer, Celesto provides a stronger isolation boundary for untrusted code. The official team has also built an open-source "computer colleague" OpenMuse (preview) based on Celesto, which can browse public websites in its own temporary Linux desktop; users can watch, approve click and form modification operations, or take over directly.

[Main capabilities]

  • Sandbox lifecycle: create (can be named), start, stop, delete, and retain files and state.
  • Command line and script output: by default, output readable results; adding --json produces stable machine-readable output; each JSON response contains the ok, command, exit_code, data, and error fields.
  • Inspection and connection: you can use celesto computer list to view sandboxes, celesto computer logs to view startup output (supports --follow streaming output), celesto computer shell to open an interactive shell, and celesto computer ssh to establish an SSH session.
  • Runtime selection: Computer is used for the common command sandbox path; Celesto factories are used for focused browser and desktop runtimes; Celesto(...) can directly use underlying virtual machine options (such as backend, communication channel, guest operating system, mounts, network policy).
  • Browser sandbox: use it when the agent only needs Chromium, exposing a CDP endpoint for automation use; in visible mode it provides URLs for live viewing and screen control (cdp_url for CDP clients such as Playwright to connect; viewer_url for viewing from another browser; display_url for VNC guestclient or computer-use agent connection). When only CDP is needed, headless=True can be used.
  • Linux computer: used when the agent needs a visual desktop beyond just a browser. The default image includes Chromium, a terminal, a file manager, and a text editor; the API classifies screen access under computer.display and Chromium access under computer.browser; if Chromium is closed but the desktop is still active, computer.browser.launch() can be called. The first launch downloads and verifies the Linux desktop image, and subsequent launches reuse the cached image, so Docker is not required.
  • Windows sandbox: used when the agent must run PowerShell or Windows software. Windows 11 can be launched from a baseline image, files can be uploaded, environment variables can be set, and multiple guests can be launched from the same image; creating an image requires a Windows ISO. Windows guests require a Linux host and support KVM; host mounts, network control, and snapshots are still Linux-only.
  • macOS desktop preview: on Apple Silicon Macs, a temporary macOS desktop can be created for app and installer testing without modifying the main system; the first setup downloads macOS from Apple, requires about 50 GB, and takes 20-40 minutes; the image remains on the Mac that created it; at most two macOS guests are supported simultaneously.
  • Common workflows: mount a host directory (read-only by default; writes to /workspace remain in the VM overlay and do not modify the host copy; --writable-mounts can be used to allow changes to host files, with caution); upload a single file to a running sandbox or a temporary sandbox; restrict network access (sandboxes have internet access by default; under Linux + Firecracker, vsock can be used to keep command and file transfer while turning off outbound network; mode="restricted" can be combined with allowed_cidrs to allow specific IPv4 addresses or ranges; restricted mode requires private network mode and does not support host mounts or exposed ports; allowed_domains resolves domain names at setup time and allows the resolved IPs, but does not check the hostname on every connection, the DNS server does not automatically gain access).
  • Launch a coding agent: run a supported coding agent in its own sandbox so it can edit and execute code without directly accessing the host environment; Celesto provides presets such as Claude Code, Pi, Hermes, OpenCode, and OpenClaw; the first launch of OpenClaw may take several minutes to install a supported Node.js runtime and a pinned version of OpenClaw.
  • Agent framework integration: the repository provides multiple examples, each containing the additional installation commands required.

[Usage] Install Celesto (requires Python 3.11 or newer): on Linux or macOS, the command installs the Celesto CLI and Python SDK, prepares the machine, and checks whether it is ready; on macOS the setup process uses Homebrew to install QEMU, and on Linux sudo may be required. Then create a sandbox (naming is recommended so later commands can find it), execute commands (the content after -- runs inside the sandbox), and delete the sandbox (or use celesto computer stop/start to preserve and restart it). The Python SDK is provided along with the installer; the with block creates a local sandbox at the start and deletes it at the end. When using Celesto Cloud, no local virtualization software is required; first set the API key, then run the same Python code with the cloud provider.

[Applicable scenarios] Suitable for development and automation scenarios that need to let agents safely execute code, browse the web, and operate desktop applications; suitable for agents that need isolation of untrusted code and need to preserve state across sessions; suitable for running locally in development or in the cloud in production; also suitable as an isolated working environment for coding agents.

[Limitations and security] Each sandbox runs in an independent virtual machine, providing a stronger isolation boundary than process-level containers, but the degree of isolation still depends on a secure host, hypervisor, image, credentials, mounts, and network configuration. Celesto trusts local sandboxes by default on first connection to simplify development; sandbox ports should not be exposed to the public internet without authentication and network controls; writable mounts, forwarded credentials, and services accessible from the host should be treated as explicit trust decisions. For the security policy, threat model, and disclosure process, see the repository's SECURITY.md.

[Other information] Local CLI and Python SDK usage telemetry displays a notice before sending limited installation and feature counts; PostHog may infer approximate location based on the request IP; it can be disabled via celesto config telemetry off or by setting CELESTO_NO_TELEMETRY=1. The benchmark suite measures cold start, time to interactive, pause and resume, and snapshot creation and restoration, using the public Python SDK and native host backends (Firecracker on Linux, QEMU on macOS). The project uses the Apache 2.0 license; see LICENSE for details.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools