API
| Interface | Use |
|---|---|
| Python runtime | Embed SAgents v2 and own its lifecycle. |
| Server HTTP | Authenticate users and manage models, Agents, Skills, MCP, and Runs. |
| Platform and observability | Inspect health, logs, and storage boundaries. |
Server v2 and the Desktop sidecar are different APIs. Server chat uses AG-UI SSE at POST /api/agent; Desktop uses authenticated local /api/v2/... routes and native runtime events. Do not copy routes from the legacy server into a v2 client.