# AG-UI 1.0: The Open Protocol That Connects Any AI Agent to Any App

> Source: <https://explainx.ai/blog/ag-ui-protocol-1-0-agent-user-interaction-copilotkit-github-trending-guide-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog>
> Published: 2026-11-30 00:00:00+00:00

**Key takeaway:** AG-UI 1.0 freezes a 31-event spec in eight families — runs, text messages, tool calls, state, reasoning, activity, subagents and passthrough — with only the run lifecycle required, so a minimal agent emits a handful of events and adds features as needed.

**AG-UI is an open, MIT-licensed protocol that lets any AI agent stream text, tool calls, state and approval requests to any front end, and it just reached a frozen 1.0 specification.** The [ag-ui-protocol/ag-ui repository](https://github.com/ag-ui-protocol/ag-ui?ref=explainx) is trending on GitHub this week with roughly 1,000 new stars and shows about 22.2k stars and 2.2k forks. It was created by CopilotKit and developed in the open.

If you build agent features into an app, this is the layer between your agent framework and your screen. This guide covers what AG-UI standardizes, how it relates to [MCP](https://explainx.ai/blog/what-is-mcp-model-context-protocol-guide) and [A2A](https://explainx.ai/blog/what-is-a2a-agent2agent-protocol-mcp-comparison-guide-2026), how to run the quick start, and what to check before you adopt it. Numbers below come from the repository README as of November 30, 2026.

## TL;DR: AG-UI answers in one table

| Question | Answer | 
|---|---|
| **What is it?** | An event-based protocol between an agent and a user-facing app | 
| **Who made it?** | CopilotKit, developed in the open with the community | 
| **License?** | MIT | 
| **Version?** | 1.0 with a frozen spec and a JSON Schema | 
| **How many events?** | 31 event types in eight families | 
| **Official SDKs?** | TypeScript, Python, .NET | 
| **Transport?** | HTTP with server-sent events, plus a binary HTTP and Protobuf binding | 
| **Does it replace MCP?** | No. MCP is for tools and context; AG-UI is for the user interface | 

## Why agents do not fit the request and response model

A normal web API takes a request and returns a response. Agents behave differently. They stream tokens, call tools in the middle of an answer, update shared state, stop to ask a human, and sometimes spawn subagents. The README puts it plainly: every framework does this differently, and AG-UI replaces custom wiring with one bi-directional event stream.

The practical pain is familiar to anyone who has wired an agent to a chat window. Each framework invents its own streaming format. Your React component learns one shape for LangChain, another for a Google agent, another for a home-grown loop. Change the backend and the front end breaks. AG-UI proposes that the agent emits typed events and the client renders them, whichever framework built the agent. The same agent can then power a web app, a mobile app, a terminal or Slack.

## What AG-UI standardizes: 31 events in eight families

The 1.0 spec defines 31 event types. The README groups them like this:

| Family | Events (examples) | What it carries | 
|---|---|---|
| Runs and steps | RUN_STARTED, RUN_FINISHED, RUN_ERROR, STEP_STARTED | Lifecycle of one agent run | 
| Text messages | TEXT_MESSAGE_START, TEXT_MESSAGE_CONTENT, TEXT_MESSAGE_END | Token-by-token assistant text | 
| Tool calls | TOOL_CALL_START, TOOL_CALL_ARGS, TOOL_CALL_RESULT | Tool use, including streamed arguments | 
| State | STATE_SNAPSHOT, STATE_DELTA (JSON Patch), MESSAGES_SNAPSHOT | Shared state between agent and app | 
| Reasoning | REASONING_START, REASONING_MESSAGE, REASONING_ENCRYPTED_VALUE | Visible and encrypted reasoning | 
| Activity | ACTIVITY_SNAPSHOT, ACTIVITY_DELTA | Progress indicators | 
| Subagents | SUBAGENT_STARTED, SUBAGENT_FINISHED, SUBAGENT_ERROR | Nested delegation | 
| Passthrough | RAW, CUSTOM | Anything the spec does not cover | 

Only the run lifecycle is required. A minimal agent emits a handful of events and grows from there. That design matters: a small agent does not pay for features it does not use.

### The building blocks you get

The README maps each feature to events and to a live demo in its Dojo app:

- **Streaming chat** with cancel and resume across multi-turn sessions.
- **Generative UI** , where agents render typed components or declarative UI through A2UI and MCP Apps.
- **Shared state** , a typed store that both agent and app read and write, synced by snapshots and JSON Patch deltas.
- **Frontend tools** , where the agent calls a tool that runs in the app and gets the result back.
- **Human in the loop** , where a run ends with an interrupt outcome, the user approves, edits or rejects, and the next run resumes.
- **Multimodal** input and tool results for images, audio, video and documents.

For product teams, human in the loop is the feature to study. Approval steps are where agent products usually turn into custom code. Having an interrupt outcome in the spec means a client can implement approval once and reuse it for every agent behind it.

## How AG-UI relates to MCP, A2A and A2UI

The README calls AG-UI one of three open, complementary agentic protocols. The split is simple:

| Protocol | Connects | Question it answers | 
|---|---|---|
| MCP | Agent to tools and context | What can the agent use? | 
| A2A | Agent to other agents | Who can the agent work with? | 
| AG-UI | Agent to the user's app | How does the person see and steer it? | 

Our guides to [MCP](https://explainx.ai/blog/what-is-mcp-model-context-protocol-guide) and to [A2A versus MCP](https://explainx.ai/blog/what-is-a2a-agent2agent-protocol-mcp-comparison-guide-2026) cover the first two. AWS shows A2A in a real stack in its [multi-agent write-up with LangChain and Strands](https://explainx.ai/blog/aws-a2a-multi-agent-langchain-strands-agentcore-2026).

The README also answers a common mix-up. A2UI, MCP Apps and Open-JSON-UI are generative UI specs: they describe what interface an agent wants to show. AG-UI is the runtime that carries those payloads, along with everything else, between agent and app. For a concrete example of an interface spec built on events, see [Microsoft Flint and its clickable charts](https://explainx.ai/blog/microsoft-flint-interactive-agents-clickable-charts-semantic-events-mcp-apps-2026).

## Quick start: two ways to run it

### Option 1: scaffold a full app

```
npx create-ag-ui-app@latest
export OPENAI_API_KEY="sk-..."
```

The CLI scaffolds a front end, either CopilotKit on Next.js or a terminal client, wired to the agent framework you choose. The generated templates call OpenAI, so set your key before `npm run dev`.

### Option 2: speak the protocol directly

The README shows a 30-line agent server and client that needs no API key. The Python side is a FastAPI endpoint that accepts a `RunAgentInput` and streams events back:

```
pip install ag-ui-protocol fastapi uvicorn
uvicorn server:app --port 8000
```

The server yields `RunStartedEvent`, then `TextMessageStartEvent`, a few `TextMessageContentEvent` chunks, `TextMessageEndEvent` and `RunFinishedEvent`. The TypeScript client uses `HttpAgent` from `@ag-ui/client`, adds a user message and prints each text delta as it arrives. The README says you should see "Hello from AG-UI!" stream in, and that swapping the server for any supported framework leaves the client unchanged.

That last claim is the test of the whole idea, so run it with your own agent before you commit. The protocol is transport-agnostic: it defines HTTP with server-sent events and a binary HTTP and Protobuf binding, and middleware can adapt events from other sources.

## Who is behind it, and what adoption claims can you check?

The README says AG-UI is "adopted by Google, Microsoft, Amazon, and Oracle, and built into most agent frameworks." It lists partners LangChain and CrewAI, and built-in support in Microsoft Agent Framework, Google ADK, Google Antigravity, AWS Strands Agents, Mastra, Pydantic AI, Agno, LlamaIndex and AG2. It also lists the Claude Agent SDK, Claude Managed Agents, IBM watsonx Orchestrate, Spring AI, Cloudflare Agents, and the OpenAI Agents SDK among other frameworks, and Amazon Bedrock AgentCore for deployment.

Treat this as the maintainers' claim. "Adopted" can mean a full first-party integration or a community adapter, and the repository says the source for every integration lives in its `integrations/` and `middlewares/` folders. Open the folder for your framework and read the code before you assume parity.

Community SDKs exist for Kotlin, Go, Java, Dart, Rust, Ruby, C++ and Swift. Official SDKs for TypeScript, Python and .NET are generated from the JSON Schema, which is the technical reason a frozen spec is useful: the schema is the source of truth and the SDKs follow.

CopilotKit is also the client most people will use first, which is a point to weigh. Our write-up of [Fynk replacing a large custom stack with CopilotKit and AG-UI](https://explainx.ai/blog/fynk-copilotkit-ag-ui-vue-port-11000-lines-removed-62517-line-pull-request-build-vs-adopt-2026) shows the build-versus-adopt trade-off in practice, and [CopilotKit's OpenBot](https://explainx.ai/blog/copilotkit-openbot-open-source-grok-bot-august-2026) shows a bot client on the same protocol.

## What 1.0 changes for builders

The README says "AG-UI 1.0 is here" with a stable, frozen specification, and that 1.0 is backwards compatible in both directions: 0.x agents work with 1.0 clients and the reverse. For builders this removes the biggest reason to wait. A frozen spec with generated SDKs means you can write a client against it without expecting the event names to move.

It also changes the shape of the lock-in question. If your UI speaks AG-UI, replacing the agent framework behind it is an integration task, not a UI rewrite. If your agent speaks AG-UI, you can serve a web app, a terminal and a chat tool from the same run.

## Limits and open questions

- **Another protocol to carry.** Teams already run MCP and often A2A. AG-UI adds a third surface to test and secure.
- **Adoption is self-reported.** The list of adopters is on the README. Independent confirmation per vendor is not in the repository.
- **A front-end vendor wrote the spec.** CopilotKit created AG-UI and sells the most complete client. The MIT license and open governance help, but check how much of the roadmap is shaped outside that company.
- **Security is yours to design.** The README points to a`SECURITY.md` for reporting issues. A protocol that lets an agent call tools that run in your app (frontend tools) means you must decide which tools it may call and what the user must approve.-**Defaults call OpenAI.** The scaffolded templates need an OpenAI key. Swap the model deliberately if you use another provider.

## What to do this week

1. Run the no-key quick start and watch the raw event stream. It takes minutes and teaches the vocabulary.
2. Pick one of your agents and map its outputs to the eight families. Note which events you would emit.
3. Prototype one approval flow with the interrupt outcome.
4. Read your framework's folder under `integrations/` before deciding.
5. If your team needs to train people on building agent features, see the [agent skills guide](https://explainx.ai/blog/what-are-agent-skills-complete-guide) and our[workshops](https://explainx.ai/workshops) .

The wider trend is that the agent stack is splitting into standard layers, a theme also visible in the [Agentic AI Foundation project list](https://explainx.ai/blog/aaif-10-projects-openenv-open-responses-opensandbox-agent-skills-agntcon-2026). AG-UI is the bid to own the layer nearest the user.

## Related reading

*Star counts, version and adopter claims are accurate as of November 30, 2026 and come from the repository README. Check the repository for current numbers.*
