-
Notifications
You must be signed in to change notification settings - Fork 2
api
Zachary BENSALEM edited this page Sep 4, 2026
·
6 revisions
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 byweb/server/src/index.ts. Turns use NDJSON and session events use SSE. -
Daemon protocol is the local socket protocol between
web/serverand 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.