AgentOS serves your agents as a FastAPI application. Every agent gets run, session, and memory endpoints. Your product surfaces call those endpoints.
Calling it from a surface
Every run endpoint takes the same shape, whether the caller is a browser widget or a backend job.| Want | Pass |
|---|---|
| Token stream for a live UI | stream=true (Server-Sent Events) |
| Long job, poll later | background=true |
| Per-user isolation | user_id and a per-thread session_id |
What you get without building it
| Endpoint group | Covers |
|---|---|
| Runs | Create, stream, cancel, run in background, resume disconnected streams |
| Sessions | Create, list, rename, delete, pull every run in a session, scoped per user |
| Memory | Create, update, delete, search user memories |
| Traces and metrics | Per-run spans, token usage, model breakdown |
/docs endpoint of your running AgentOS.
Custom routes
AgentOS is a FastAPI app. Add routes for webhooks, dashboards, or product-specific endpoints. The agent is a regular Python object you can call from anywhere.
Auth
Setauthorization=True and every endpoint except /health and /openapi.json requires a valid JWT.
user_id, session_id, and scope claims into the run. RBAC scopes are enforced per endpoint.
Next steps
| Task | Guide |
|---|---|
| Add Slack or browser surfaces | Interfaces |
| Lock down endpoints | Security and auth |