AG-UI Protocol Explained in 60 seconds

By Anmol Baranwal and Eli Berman
October 5, 2026

The agent ecosystem has grown fast, and three core open protocols have become the standard way to connect agents to everything around them:

  • MCP connects agents to external tools
  • A2A lets agents coordinate with other agents
  • AG-UI connects agents to user-facing applications
__wf_reserved_inherit

AG-UI just hit 1.0 with a stable specification. If you're building agents that people interact with, AG-UI is how they reach them.

Here's your guide to understanding the AG-UI Protocol in 60 seconds!

Agents break the request-response model

For decades, software has run on HTTP's simple rule: one request gets one complete response. If you search something on Google, your browser sends a request and gets the whole results page back in one go.

Agents don't work that way. Most are long-running, and along the way they:

  • stream their answer token by token
  • call external tools mid-response (like Notion)
  • spawn subagents that run in parallel
  • return more than just text: JSON, markdown, even UI
  • stop to ask for your approval or let you steer them mid-run

Each agent run has a whole lifecycle, from the first token to the final answer, and your frontend has to stay in sync with every step as it happens.

__wf_reserved_inherit

But every agent framework streams these updates in its own format, so developers write custom code to parse the stream, track what the agent is doing and map it to the UI. That's boilerplate you have to maintain and since agent frameworks change fast, it can break with any update. And every surface, whether it's a web app, Slack or Teams, needs its own version of that code as well.

What is AG-UI

AG-UI (Agent-User Interaction Protocol) standardizes how agents communicate with user-facing applications.

Put simply, it's a framework-agnostic way to connect agentic backends to agentic frontends, and the user-facing layer that was missing from the agent stack.

It's adopted by Google, Microsoft, Amazon, Oracle, and most of the agent ecosystem already supports it, including Anthropic's Claude Managed Agents, LangChain, Mastra, Microsoft Agent Framework, TanStack, Google ADK, Pydantic AI, CrewAI, and many more.

__wf_reserved_inherit

Under the hood, your app sends one request and gets a stream of events back. The spec defines two sides:

  • The agent endpoint receives the request. A framework bridge turns your agent's native output into AG-UI events, and the endpoint streams them back.
  • The AG-UI client, usually an SDK in your app, sends the request, checks every event against the spec, and hands each one to your UI.

The protocol is transport-agnostic and language-agnostic. Official SDKs cover TypeScript, Python, and .NET, and you can send AG-UI events to Rust, Go or anywhere else you need them.

Generative UI specs like A2UI and MCP Apps also travel over AG-UI.

Notion Example

AG-UI events cover the complete agent lifecycle, grouped into eight categories like text messages, tool calls, state and subagents. Say you ask an agent to summarize your Notion notes. The agent:

  • starts the run (RUN_STARTED)
  • calls the Notion tool (TOOL_CALL_START)
  • gets the notes back (TOOL_CALL_RESULT)
  • updates shared state, like marking the task in progress (STATE_DELTA)
  • writes the summary, token by token (TEXT_MESSAGE_CONTENT)
  • finishes the run (RUN_FINISHED)

Your UI can react to each event the moment it happens (like showing "Searching Notion..." while the tool runs), instead of waiting for the whole run to finish.

__wf_reserved_inherit

What AG-UI 1.0 adds

AG-UI 1.0 introduces a stable specification backed by a JSON Schema, and the TypeScript, Python and .NET SDKs are now generated from it.

It also brings subagent support, metadata, multimodal tool results and more. Read more about all of them in the launch blog.

__wf_reserved_inherit

Why it matters

  1. Switch frameworks without touching your UI. Every framework sends the same events, so your frontend remains the same.
  2. One agent, any surface. Each client decides how to display the events, so the same agent can work in a web app, mobile, terminal or even chat platforms like Slack.
  3. Build once, run everywhere. Anything new added to AG-UI, like A2UI support, automatically works with every AG-UI compatible framework.
__wf_reserved_inherit

Your agent can learn from its mistakes with Automatic Learning

Since AG-UI captures every interaction between your agent and your users, each run becomes a signal your agent can learn from. CopilotKit Intelligence uses Automatic Learning to extract insights from conversations and turn them into Skills your agent uses next time.

conversations → learning → proposed Skills → agent → better conversations...

You review and approve each Skill, and Skill delivery loads the published ones into your agent. You can also download them with the CLI for any other agent. Read more in the docs.

__wf_reserved_inherit

Get started

Spin up your first AG-UI app with a single command.

npx create-ag-ui-app@latest

Learn more:

If you have ideas for the next version, jump into GitHub Discussions and tell us what you want to see.

If you're building an agent framework or SDK and want to add AG-UI support, we'd love to work with you. Just reach out in the AG-UI or CopilotKit communities, or on GitHub.

Want to bring CopilotKit into your stack? Talk to our engineers and we'll help you set it up.

Follow CopilotKit on Twitter for updates.

Top posts

See All
Introducing OpenDots: the Open-Source Alternative to OpenAI Dots
Anmol Baranwal and Eli BermanOctober 1, 2026
Introducing OpenDots: the Open-Source Alternative to OpenAI DotsToday we're releasing OpenDots, the open-source alternative to OpenAI Dots. Every Dot is an always-on AI coworker with its own computer. Work with your Dots in Spaces and Pages, call them, or mention them in Slack. Host it yourself, bring any agent through AG-UI and use any OpenAI-compatible model. It's available on web and mobile.
Introducing AG-UI 1.0: a stable spec for connecting any agent to any application
Anmol Baranwal and Eli BermanSeptember 30, 2026
Introducing AG-UI 1.0: a stable spec for connecting any agent to any applicationWe're releasing AG-UI 1.0, the open protocol that connects AI agents to user-facing applications, with a full specification and a JSON Schema that the TypeScript, Python and .NET SDKs are now generated from. It also adds subagents, metadata, multimodal tool results, human-in-the-loop interrupts, token usage and more, all fully backwards compatible.
The Developer's Guide to the AG-UI Protocol
Anmol Baranwal September 29, 2026
The Developer's Guide to the AG-UI ProtocolAG-UI 1.0 is here, the open protocol for connecting any agent to any app. This developer's guide covers everything you need to know: the problem with the existing agent ecosystem, how AG-UI adds the user-facing layer that was missing, its core components, supported frameworks and SDKs, how events are encoded and decoded, all 31 events across 8 categories with examples and flows, and a real-world flight booking example. It also covers what's new in AG-UI 1.0, like subagents, interrupts, metadata, multimodal tool results and token usage, plus capabilities and transports.
Are you ready?

Stay in the know

Subscribe to our blog and get updates on CopilotKit in your inbox.