microagent list
Last updated: 2026-06-23
microagent list [--state-dir <dir>]microagent ls [--state-dir <dir>]list walks the state directory and prints one row per saved workspace, with
name, backend, and current state. It is an inventory view, so stopped
workspaces appear because their disks and state still exist. To show only live
VMs, use ps. For everything about one workspace - readiness,
verification, network detail - use
status.
ls is an alias for list.
Examples
Section titled “Examples”List saved workspaces:
microagent listmicroagent lsmicroagent --json listText output is one row per saved workspace:
NAME STATE BACKEND PROFILE NETWORK RESTARTresearch running firecracker medium user on-failuretemplate stopped firecracker small user neverWith --json, the rows are returned under workspaces:
{ "workspaces": [ { "name": "research", "state": "running", "backend": "linux-kvm", "profile": "medium", "restart": "on-failure", "network": "user", "observed_at": "2026-06-01T12:00:00Z" } ]}You’ll rarely need flags here - --state-dir only when your workspaces live
outside the default ~/.microagent/.
| Flag | Description |
|---|---|
--state-dir <dir> | State directory to scan (default ~/.microagent/) |
--json | Global flag before list; print structured JSON output |
See global flags for --json/--text/--output/--mode.
Exit status
Section titled “Exit status”list exits 0 on success, including when no workspaces exist - a missing or
empty state directory lists zero rows rather than failing. In AX mode a
failure is written as a structured error envelope.