Skip to content

microagent network

Last updated: 2026-07-25

microagent network <workspace> [--state-dir <dir>] Inspect a workspace's network
microagent network status <workspace> [--state-dir <dir>] Same, spelled out

network reports the network mode, declared port forwards, DNS servers, routes, and IP information recorded for a workspace. The top-level network field comes from the persistent workspace manifest; when a workspace has a runtime state file, runtime shows the last network config recorded by the host supervisor.

Inspect a workspace’s network:

Terminal window
microagent --json network research
{
"workspace": "research",
"state": "running",
"backend": "linux-kvm",
"network": {
"mode": "user",
"portForwards": [
{
"protocol": "tcp",
"host": "127.0.0.1",
"hostPort": 8080,
"guestPort": 80
}
]
},
"runtime": {
"mode": "user",
"ip": "10.43.12.2/29",
"subnet": "10.43.12.0/29",
"gateway": "10.43.12.1",
"dns": ["1.1.1.1", "8.8.8.8"],
"routes": ["0.0.0.0/0 via 10.43.12.1"]
}
}
Flag Description
--state-dir <dir> State directory holding the workspace records (default ~/.microagent/)

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

network exits 0 on success; nonzero when the workspace cannot be found.

  • status - the same network block in the full status view
  • Networking - the available network modes and what they require