microagent

module
v0.1.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: Apache-2.0

README

microagent

Run AI agent workspaces in microVMs.

Each agent gets its own Linux microVM — kernel, rootfs, state, lifecycle. Boot from an OCI image and tear down, or keep the workspace around and halt/resume it later. Linux uses Firecracker; macOS uses Apple Virtualization.framework. Identity, policy, credentials, and control-plane decisions live in your code, not in this one.

The project is a Go library; the microagent CLI is a thin shell over it. Anything the CLI can do, your program can do directly.

Install

brew install geoffbelknap/tap/microagent

This installs microagent and microagent-supervisor, a symlink to the correct supervisor for your host. To build from source, see docs/getting-started/install.md.

30-second tour

microagent doctor                                # check the host

microagent run \                                 # one-shot: boot, run, tear down
  --image docker.io/library/ubuntu:24.04 \
  --exec "uname -a"

For workspaces that stick around — halt, resume, copy files in, attach a console:

microagent create research \
  --image docker.io/library/ubuntu:24.04 \
  --profile medium

microagent start research
microagent connect research --send "uname -a"   # send a line, capture output
microagent halt research                         # clean shutdown, disk preserved
microagent start research                        # boots the same disk back up
microagent delete research

The same workspace can be expressed declaratively — see microagent.yaml for the spec format.

What it owns

The VM boundary. Kernel management, OCI-to-rootfs builds, VM lifecycle (run, create, start, halt, quarantine, stop, kill, delete), networking and vsock wiring, structured results, declared artifacts, runtime verification, and lifecycle events.

What it doesn't own

Planning loops, LLM calls, tool mediation, policy decisions, credential brokering, audit interpretation. Other projects own those — microagent is the substrate they sit on.

Docs

Pick the path that matches what you're doing:

Trying it out (CLI)
Install Homebrew, source, host check
First microVM Boot, run a command, tear down with microagent run
First agent An LLM body running inside a microVM (Anthropic / OpenAI / Gemini)
Named workspaces Create, start, stop, resume
CLI reference Every subcommand
Building with the library (Go)
First program A handful of lines that boots a VM, runs a command, tears down
Go library Exported package surface and CLI ↔ library mapping
Supervisor protocol JSON protocol if you're going below the library
Reference and operations
Concepts Architecture, backends, networking, state, glossary
Recipes End-to-end examples
Security Trust boundary; see SECURITY.md for disclosure
Troubleshooting Common failure modes, indexed by symptom

Project

Directories

Path Synopsis
cmd
microagent command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL