Skip to main content

Overview

Crewship provides real-time event streaming so you can:
  • Monitor crew execution as it happens
  • Build responsive UIs that update live
  • Debug issues by watching the event flow
  • Log events to external systems

Streaming via CLI

The simplest way to stream events:
Output updates in real-time:

Streaming via API

Server-Sent Events (SSE)

Connect to the events endpoint with SSE:

JavaScript/TypeScript

Python

Event Types

Run Lifecycle Events

Agent Events

Tool Events

Log Events

Artifact Events

Event Format

Each SSE event follows this format:
Example:

Reconnection

SSE supports automatic reconnection. Use the Last-Event-ID header:

Building a Live UI

Example React component:

Filtering Events

Request specific event types:

Webhooks

Trigger runs and receive notifications

Invoke Command

CLI streaming options

API Reference

Events API docs