AG-UI 1.0: One Open Protocol That Connects Any AI Agent to Any App
Every AI agent framework has its own way of talking to a screen. LangGraph streams one way, CrewAI another, Mastra a third. If you build the frontend, you end up writing custom glue for each one — a parser here, loading states there, and a different idea of what "done" means in every framework. AG-UI 1.0 is the attempt to end that. It is an open protocol that gives every agent the same event language for talking to any app, and in mid-November it went from a quiet spec to one of the fastest-growing projects on GitHub.
AG-UI stands for Agent-User Interaction Protocol. It was created by CopilotKit, it is MIT-licensed, and version 1.0 — a frozen specification backed by a JSON Schema — shipped on September 17, 2026.
The 1.0 release froze the rules in September. Then, on November 16 and 17, adapters landed for LangGraph, CrewAI and Mastra, and developers noticed: the project gained 1,444 GitHub stars in a single day, roughly 3,600 in a week, and sat eighth on GitHub Trending. It now has nearly 21,000 stars.
How it works: one request in, one stream out
The model is small. Your app sends one HTTP POST carrying a RunAgentInput — the conversation so far, the tools the frontend offers, shared state, and context. The agent answers with an event stream over Server-Sent Events: the run starting, the reply arriving token by token, tool calls, reasoning, state updates, and a terminal event when the run ends — RUN_FINISHED or RUN_ERROR. Only the run-lifecycle events are mandatory, so a minimal agent emits five events and grows from there.
One request in, one ordered stream of typed events out, carrying everything the user sees of the agent.
— The AG-UI 1.0 specification
Two details make it more than a chat stream. First, frontend tools run in the browser: the app lists them in the request, the agent calls one, and the app runs it and returns the result. Second, shared state is a typed store both sides read and write — a full STATE_SNAPSHOT sets it, and STATE_DELTA patches it with JSON Patch, so a long-running agent can update one field without resending the whole document.
The 31 events, in 8 families
| Family | Events | What the app gets |
|---|---|---|
| Runs and steps | RUN_STARTED, RUN_FINISHED, RUN_ERROR, STEP_STARTED, STEP_FINISHED | When a run begins, ends or fails |
| Text messages | TEXT_MESSAGE_START, _CONTENT, _END, _CHUNK | The reply, streamed as it is generated |
| Tool calls | TOOL_CALL_START, _ARGS, _END, _RESULT, _CHUNK | A tool the agent calls, its arguments, its result |
| State | STATE_SNAPSHOT, STATE_DELTA, MESSAGES_SNAPSHOT | Shared state, full or patched |
| Reasoning | REASONING_START, REASONING_MESSAGE_*, REASONING_ENCRYPTED_VALUE, REASONING_END | The model's thinking, plus encrypted provider data |
| Activity | ACTIVITY_SNAPSHOT, ACTIVITY_DELTA | Progress indicators |
| Subagents | SUBAGENT_STARTED, SUBAGENT_FINISHED, SUBAGENT_ERROR | Work handed to subagents, kept separate |
| Passthrough | RAW, CUSTOM | Anything app-specific |
MCP, A2A, AG-UI: three protocols, three jobs
AG-UI is the third piece of a set, and mixing the three up is the most common mistake. Each one solves a different boundary:
| Protocol | Job | Connects |
|---|---|---|
| MCP | Tools and context | Agent to tools |
| A2A | Agent-to-agent work | Agent to agent |
| AG-UI | Everything the user sees | Agent to user |
MCP came from Anthropic in November 2024, A2A from Google in April 2025, AG-UI from CopilotKit in May 2025. A single agent can use all three at once. And AG-UI is not a UI description format — A2UI, MCP Apps and Open-JSON-UI describe what interface an agent wants to show. AG-UI is the runtime pipe that carries those payloads, along with everything else, between the agent and the app.
Try it in five minutes
The fastest path is the CLI scaffold, which generates a frontend wired to the agent framework you pick. The hand-built example is about 30 lines — a Python server and a short TypeScript client — and it needs no API key.
npx create-ag-ui-app@latest pip install ag-ui-protocol fastapi uvicorn npm install @ag-ui/client tsx
The scaffold templates call OpenAI, so those need an OPENAI_API_KEY. The hand-built server does not. And the human-in-the-loop part is worth noting: when an agent needs approval, the run ends with an interrupt outcome instead of holding a connection open, and the client starts a new run with the answer. No connection sits open waiting for a human who went to lunch.
The catches
Now the part that keeps this honest.
First, the ecosystem still leans on CopilotKit in practice. The protocol is MIT and the integrations are real, but the scaffolder outputs a CopilotKit frontend and the docs point to CopilotKit for most framework guides. If the company changes direction, the spec stays frozen, but the SDKs and integrations depend on its team.
Second, there is no stream resumption over SSE. A broken stream cannot be re-entered — a retry is a new run with a new run ID. Mobile clients on flaky networks will need app-level handling.
Third, the deprecation clock is already ticking. The 0.x shapes stop working after September 17, 2027. If you built on early AG-UI, migration is due within the next ten months. And this is a big monorepo moving fast — 317 open issues and 282 open pull requests as of November 21, with dated releases shipping several times a week.
None of that makes 1.0 a bad bet. It makes it a young one. The spec is frozen, the SDKs are generated from it, and the adapters for the big frameworks are landing now. If you build agent UIs, this is the week to try it — before your next custom streaming layer becomes the thing you have to maintain.
Frequently asked questions
Is AG-UI the same as MCP?
No. MCP gives an agent tools and context. AG-UI carries what the user sees — streamed text, tool calls, state, approvals. One agent can use both.
Do I have to rewrite my agent?
No. 0.x agents work with 1.0 clients and vice versa. Adapters exist for LangGraph, CrewAI, Mastra, Pydantic AI, Google ADK and more.
Does it work with my framework?
The project lists integrations for LangChain/LangGraph, CrewAI, Microsoft Agent Framework, Google ADK, AWS Strands Agents, Mastra, Pydantic AI, LlamaIndex and others. The AG-UI Dojo runs a live demo per framework so you can compare before committing.
Do I need an API key to try it?
Not for the hand-built example — the 30-line Python server and TypeScript client need none. The CLI scaffold templates call OpenAI, so those need an OPENAI_API_KEY.
Sources: AG-UI on GitHub, andrew.ooo review, Everpod guide, TechLogHub, Tech AI Magazine, Hyscaler tutorial.