Read stored AgentHost egress
Use the native CLI to read one page of attributed outbound traffic from storage for a run. The command performs a read operation on the stored audit records.
Before you begin
Configure the Gateway, Broker issuer, client ID, API audience, and tenant as described in Agentweaver CLI. Sign in to the selected Broker:
$env:AGENTWEAVER_PROJECT_ID = $null
$env:AGENTWEAVER_RUN_ID = $null
agentweaver auth loginThe base sign-in requests api.read. The caller must have current project or tenant ReadProjects authority for the run.
For the Platform/default administrator path, sign in with projects.admin:
$env:AGENTWEAVER_PROJECT_ID = $null
$env:AGENTWEAVER_RUN_ID = $null
agentweaver auth login --scope projects.adminThe server requires current Platform/default ReadPlatformRuntimeDefaults authority in addition to that OAuth scope.
Read one page
Run:
agentweaver run egress RUN_IDReplace RUN_ID with the run identifier. The command encodes the identifier as one URL path segment. It uses an unbound credential, then the server resolves the run inside the selected tenant. Do not pass --project-id or --run-id.
To use the administrator path, add the scope:
agentweaver run egress RUN_ID --scope projects.adminTo choose a page size, use an integer from 1 through 100:
agentweaver run egress RUN_ID --limit 25If you omit --limit, the Gateway uses 50.
Continue to the next page
Copy the returned nextCursor value into the next command without changing it:
agentweaver run egress RUN_ID --limit 25 --cursor CURSORKeep the same run and --limit while you page through the result. For the Platform/default administrator path, keep its scope and tenant selection:
agentweaver run egress RUN_ID --scope projects.admin --tenant-id TENANT_ID --limit 25 --cursor CURSORReplace TENANT_ID with the tenant used on the first page. When nextCursor is null, the page has no successor.
If the CLI reports an invalid cursor, rerun the command without --cursor to start from the first page.
Read egress in the web client
Open a run from Orchestrations, then select Egress in the run header. The Run history page opens /projects/:projectId/runs/:runId/history?view=egress.
The web client uses a session bound to that exact project for this view. It confirms the project binding, actor, and tenant before it sends the egress request. Select Sign in for this project when silent sign-in needs user action. The client uses 50 records per page and keeps the server order. Select Load more while a next cursor exists.
Each successful page shows:
Coverage unavailable. This view shows stored records only.
The table shows host, address, port, verdict, firstSeen, lastSeen, and count. First seen and Last seen show UTC timestamps exactly as the API returns them, including fractional seconds when present. An empty successful page says No stored records. A failed load shows the request error and keeps it separate from an empty result. Select Retry for a transient failure.
Read the result
The command writes one JSON object to standard output:
{
"runId": "RUN_ID",
"coverage": "Unavailable",
"delayedUntil": null,
"items": [],
"nextCursor": null
}Each item contains nullable host and address, plus port, verdict, firstSeen, lastSeen, and count. Items retain the server order.
coverage: "Unavailable" is a successful response from the stored-data path. The value describes the stored evidence coverage. The CLI exits with code 0 and writes a clear notice to standard error.
Usage, contract, transport, response-shape, and API errors leave standard output empty and exit with code 1. Cancellation exits with code 130.
Understand the API path
The CLI calls GET /api/v1/runs/{runId}/egress through the Gateway. It verifies the live OpenAPI contract before it authenticates or sends the egress request. For the server data flow, authorization rules, and response limits, see Read stored run egress.
