Skip to content
Zachary BENSALEM edited this page Sep 4, 2026 · 6 revisions

API

Fleet exposes two local interfaces with different owners:

  • Web API is the browser-facing HTTP surface. TanStack Start route files under web/app/src/routes/api/ delegate to handlers exported by web/server/src/index.ts. Turns use NDJSON and session events use SSE.
  • Daemon protocol is the local socket protocol between web/server and the pinned Prime Agent daemon. It is an upstream contract, not a Fleet-owned public API.

Use the web API page when changing browser features, routes, or stream handling. Use the daemon protocol page when debugging daemon startup, session workers, or a runtime-pin upgrade. The two interfaces meet in web/server/src/prime-bridge.ts; browser frames use the shared chat stream event vocabulary.

Clone this wiki locally