Skip to content

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.

List saved workspaces:

Terminal window
microagent list
microagent ls
microagent --json list

Text output is one row per saved workspace:

NAME STATE BACKEND PROFILE NETWORK RESTART
research running firecracker medium user on-failure
template stopped firecracker small user never

With --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/.

FlagDescription
--state-dir <dir>State directory to scan (default ~/.microagent/)
--jsonGlobal flag before list; print structured JSON output

See global flags for --json/--text/--output/--mode.

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.

  • status - the deep view of a single workspace
  • ps - show only running workspaces