Skip to main content

Live log tail API

This API is not live on Agentbot. The page is kept as an internal roadmap/spec reference and is intentionally not linked from the main docs navigation.
Stream agent gateway logs directly to the browser using Server-Sent Events (SSE). No SSH access needed — see what your agent is doing in real-time from the dashboard.

Stream Logs

Opens an SSE connection that streams log output from the agent’s gateway container.

Response

Event Types

TypeDescription
connectedSSE connection established
lineNew log line from the gateway
exitGateway process exited

Client Example

Get Log History

Returns recent log lines without opening a streaming connection.

Response

Stop Log Stream

Stops the log stream and disconnects all clients.

Response

List Active Streams

Returns all currently active log streams.

Response

Behavior

  • Buffer: Last 500 lines kept in memory
  • Grace period: 30 seconds after last client disconnects before stopping the stream
  • Auto-reconnect: Clients can reconnect and receive buffered lines
  • Authentication model shown here is provisional and may change before release