What it is
AG-UI standardizes the connection between an agent backend and the app a person is using. Instead of each framework inventing its own streaming format, the agent emits a stream of typed events — text deltas, tool calls, state updates, interrupts — that any AG-UI client can render. CopilotKit created it in May 2025 out of partnerships with LangChain and CrewAI; it is supported by Microsoft Agent Framework, Google ADK, AWS Bedrock AgentCore, Mastra, Pydantic AI and others, and reached a stable 1.0 spec in September 2026. It is still governed by CopilotKit rather than a foundation.
How it works
The client sends one POST with a RunAgentInput (thread and run IDs, messages, available frontend tools, current state) and listens to an event stream, usually over Server-Sent Events. A run starts with RUN_STARTED and ends with RUN_FINISHED or RUN_ERROR; in between the agent streams text, tool-call and reasoning events, and keeps shared state in sync with full snapshots plus JSON Patch deltas. A run can finish with an interrupt so a person can approve or edit before a new run resumes it.
Key concepts
- Event
- A typed message in the stream, such as TEXT_MESSAGE_CONTENT, TOOL_CALL_START or STATE_DELTA.
- Run
- One agent invocation, bracketed by RUN_STARTED and RUN_FINISHED or RUN_ERROR.
- Shared state
- A typed store synced between agent and app via STATE_SNAPSHOT and STATE_DELTA (JSON Patch) events.
- Frontend tool
- A tool the agent calls that executes in the user's app, with the result sent back to the agent.
- Interrupt
- A run outcome that pauses for human input; the next run supplies a resume answer.
Use it when
- You are building an in-app copilot or agent UI and want streaming chat, tool progress and shared state without a custom protocol.
- You want to swap agent backends (LangGraph, Mastra, ADK, Microsoft Agent Framework) without rewriting the front end.
- Agents need human-in-the-loop approvals or generative UI inside your product.
Look elsewhere when
- You need to connect an agent to tools or data — use MCP.
- You need agents to delegate work to other agents — use A2A.
Who uses it
Microsoft Agent Framework exposes agents over AG-UI, and Microsoft contributed the official .NET SDK.
Evidence: learn.microsoft.com
- Amazon Web Services
Bedrock AgentCore Runtime hosts AG-UI servers with auth, session isolation and scaling.
Evidence: aws.amazon.com
- Mastrasupports
Mastra agents can drive CopilotKit/AG-UI front ends.
Evidence: mastra.ai
- Pydanticintegrates
Pydantic AI ships an AG-UI adapter for streaming agents to front ends.
Evidence: pydantic.dev
Milestones
- AG-UI 1.0 released with a stable, JSON-Schema-defined spec, subagents, interrupts and multimodal tool results. (copilotkit.ai)
- Amazon Bedrock AgentCore Runtime added AG-UI support alongside MCP and A2A. (aws.amazon.com)
- CopilotKit launched AG-UI with day-one integrations for LangGraph, CrewAI, Mastra and AG2. (copilotkit.ai)
Start learning
docs.ag-ui.com
docs.ag-ui.com
docs.ag-ui.com