stream-first Agent Runtime.

$pnpm add apeira
Stream-first

Submit a turn and consume its lifecycle and model events as a ReadableStream.

Plugin-first

Only install what you need. Plugins, runners, and storage adapters keep optional capabilities outside the core runtime.

xsAI-based

Model calls, tools, steps, and streaming events are powered by xsAI and work with any OpenAI-compatible endpoint.

Append-only history

Every turn forks the input log, runs on a working copy, and merges only successful episodes back.

Session branches

Optional tree-shaped durable history with checkout, fork, and rebase via @apeira/session.

Interrupt

Cancel individual turns, interrupt active work while preserving context, or reset the agent to a clean baseline.