Technology

AG-UI: The Open Protocol Bringing AI Agents Into Frontend Apps

By Asad Ali ·

26 min read

AG-UI protocol cover — agent backend connected by event dots to a frontend app, with the title and MIT licence, star count and event-based chips

AG-UI is an open protocol that lets an AI agent talk to the inside of a web app — showing what it is doing, asking the user questions, and taking input, all inside your own product instead of in a separate chat window. It is free and open source under the MIT licence, it is backed by the team behind CopilotKit, and on 16 November 2026 it sat at number 2 on GitHub Trending, with 17,804 stars and 1,818 forks. The important part is the word "protocol": AG-UI is a shared set of rules, not a program you download. If you are a developer building an app with an AI agent in it, it may save you weeks of plumbing. If you are looking for an app to install, this is not it.

That distinction is the whole story. The trending charts made AG-UI look like a product launch. It is not — the repository was created on 7 May 2025, and it has shipped near-daily, date-tagged releases since, the latest on 13 November 2026. What changed in November 2026 is attention: developers building agent-powered apps all hit the same problem — every agent framework speaks its own dialect to the frontend — and AG-UI is the attempt to agree on one dialect.

  • AG-UI is not an app you download. It is a protocol — a specification for how an agent and a frontend exchange events. There is nothing to install and use as an end user; it is a building block for developers.
  • It is not a chatbot, and not a product. It does not contain a language model, it does not answer questions on its own, and it has no interface of its own. It is the wiring between an agent you already run and an interface you already build.
  • "Works with Claude Code, Cursor and Gemini CLI" is not what the project says. Neither Claude Code nor Gemini CLI appears in the project's integration list, and Cursor appears in the docs only as an editor tutorial ("Developing with Cursor") — using the Cursor editor while you build with AG-UI. The verified integrations are listed below, and the closest verified items are the community Claude Agent SDK integration and the "Terminal + Agent" client.
  • "Agent Skills-compatible" could not be verified. That phrase appears in some coverage, but it does not appear in the project's README or documentation index, so this article does not repeat it as a fact.
  • Trending number 2 is a one-day snapshot, not a permanent ranking. GitHub Trending is daily; AG-UI held the number 2 spot on 16 November 2026, behind Univer. Stars (17,804 on 16 November 2026) are a popularity signal, not a quality verdict.

The short version

  • What it is: AG-UI — the Agent-User Interaction Protocol — is an open, lightweight, event-based protocol that standardises how AI agents connect to user-facing applications. MIT licence; created 7 May 2025; by the team behind CopilotKit.
  • Why it trended: number 2 on GitHub Trending on 16 November 2026; 17,804 stars and 1,818 forks (GitHub API, 16 November 2026); latest release 13 November 2026; near-daily releases.
  • What it does: an agent backend emits events from about 16 standard event types (text, tool calls, state changes, subagents); a frontend client receives them and renders them — streaming chat, generative UI, shared state, human-in-the-loop approvals — over any transport (SSE, WebSockets, webhooks).
  • What it connects to: LangChain, CrewAI, Microsoft Agent Framework, Google ADK, Google Antigravity, AWS Strands, Mastra, Pydantic AI, Agno, LlamaIndex, AG2, plus community integrations including the Claude Agent SDK and Cloudflare Agents. OpenAI Agents SDK and AWS Bedrock Agents are still in progress.
  • Who it is for: developers building agent-powered apps. End users will never install AG-UI — they will use apps built on it.

AI agents in the terminal: Herdr: tmux Built for AI Agents — Setup & Limits · Anthropic's latest model: Claude Fable 5.2: Anthropic's new model · Command-line AI: Gemini API CLI: the complete guide · Tools: browse all free tools on Asad Webs (no AG-UI or agent-protocol tool exists on the site yet, so there is no direct tool link for this story).

What AG-UI actually is

AG-UI stands for the Agent-User Interaction Protocol. Its own README describes it in one sentence: "an open, lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications." Three words in that sentence do the heavy lifting, and each is worth unpacking.

Open means the specification is public and free to implement, and the reference code is MIT-licensed — anyone can use it, including in commercial products, with no fee and no permission needed. The repository lives at github.com/ag-ui-protocol/ag-ui, and the project runs a public roadmap and a biweekly working group.

Event-based means the agent and the app do not talk in request-and-response turns like a normal API. Instead, the agent emits a stream of small, typed messages called events as it works: a run started, a paragraph of text arrived, a tool call began, a tool returned a result, a piece of shared state changed, a subagent finished. The frontend listens to that stream and updates the screen as each event lands. That is what makes the experience feel live — text streams in word by word, a progress bar moves while a tool runs, a chart appears the moment the agent produces it — instead of the user staring at a spinner until one big answer arrives.

Protocol means AG-UI defines the shape of those events and nothing else. It does not run your agent, it does not host your app, and it does not include a language model. Think of it the way you think of HTTP: HTTP does not build websites, it is the agreed language browsers and servers use to exchange pages. AG-UI is the agreed language agents and frontends use to exchange what an agent is doing. Any agent that emits AG-UI events can talk to any frontend that understands them, and any frontend that understands them can display any AG-UI agent.

That last point is the reason the project exists. Before AG-UI, every agent framework invented its own way of pushing updates to a user interface. AG-UI's bet is that the industry will converge on one event format, so the frontend becomes reusable and the agent becomes swappable.

Why it trended on 16 November 2026

AG-UI reached number 2 on GitHub's daily trending list on 16 November 2026, behind Univer, an open-source office engine. The numbers behind the spike, all from the GitHub API on 16 November 2026: 17,804 stars, 1,818 forks, 593 open issues, written in TypeScript. The repository was created on 7 May 2025, so this is not an overnight project — it is an eighteen-month-old project that found its moment.

Two things explain the timing. First, the project ships constantly: its releases are date-tagged and near-daily, with releases on 6, 9, 10, 12 and 13 November 2026, the latest on 13 November 2026. A project that releases every day or two stays visible. Second, the problem it solves got bigger through 2026. Agent frameworks multiplied — LangChain, CrewAI, Google's ADK, Microsoft's Agent Framework, AWS Strands, Mastra, Pydantic AI, Agno, LlamaIndex — and every team shipping an agent-powered product discovered the same missing piece: a standard way to show the agent's work inside their own app. AG-UI is the CopilotKit team's answer, built from their experience shipping in-app agent interactions, and it arrived with integrations for most of the frameworks developers already use.

What "protocol" means, in plain language

If the word "protocol" sounds abstract, three everyday comparisons make it concrete.

First, HTTP. When you open a website, your browser and the server agree on HTTP: requests look a certain way, responses look a certain way, and because both sides follow the same rules, any browser can talk to any server. Nobody "uses" HTTP directly — you use a browser, and the browser uses HTTP. AG-UI plays the same role for agents: nobody "uses" AG-UI directly, they use an app, and the app uses AG-UI to talk to its agent.

Second, USB. A USB port does not care what you plug in — keyboard, camera, drive — because the connector and the signals are standardised. AG-UI is a USB port for agents.

Third, a restaurant ticket system. In a kitchen, the waiter writes orders on tickets in a fixed format — table number, dish, notes — and the cooks read them without asking the waiter anything. The ticket format is the protocol. AG-UI is the ticket format for agents: the agent writes events in a fixed format, the frontend reads them, and neither side needs to know how the other works internally.

One consequence matters for anyone evaluating it: adopting a protocol is a bet on the future, not a purchase. You adopt AG-UI because you believe more agents and more frontends will speak it over time. If the industry converges elsewhere, the bet loses.

How it works: the event stream

Everything in AG-UI is an event. An event is a small, typed message with a few base properties — a type, an optional timestamp, optional metadata (things like token usage or a trace ID), and optionally the original event it was transformed from. The agent backend emits events as it works; the frontend receives them and renders them. The protocol defines about 16 standard event types, grouped into categories that the documentation spells out.

Lifecycle events track a run from start to finish: RunStarted when the agent begins, StepStarted and StepFinished as it moves through its work, RunFinished when it completes, RunError when something fails. These are what let a frontend show an honest status — "working", "done", "failed" — instead of guessing.

Text message events carry the streaming reply: TextMessageStart opens a message, TextMessageContent carries each chunk of text as it arrives, TextMessageEnd closes it. This is the mechanism behind the familiar word-by-word streaming in AI chat interfaces — each chunk is an event, and the frontend appends it to the message on screen.

Tool call events describe the agent using tools: ToolCallStart when it calls one, ToolCallArgs with the arguments, ToolCallEnd when the call finishes, ToolCallResult with what came back. A frontend can turn these into visible activity — "searching your files…", "running the query…" — instead of hiding the agent's work behind a spinner. That visibility is one of AG-UI's main selling points: users can see what the agent is doing and why.

State management events keep the agent and the interface in sync: StateSnapshot sends the whole shared state at once, StateDelta sends only what changed, MessagesSnapshot sends the conversation so far. This is how an agent and an app can share one view of the world — the agent updates a value, the interface updates with it, and the user can edit a value and have the agent see the change. That shared state is what separates AG-UI from a plain chat stream: the agent is not just talking at the app, it is working on the same state the app displays.

There are more categories — activity events for ongoing progress, reasoning events for the model's thinking steps, subagent events for tracking agents the main agent spawns, and special events (Raw and Custom) for anything the standard types do not cover. A middleware layer sits between the agent and the client: it keeps the events compatible across environments, lets implementations match event formats loosely rather than exactly, and works with any transport — server-sent events, WebSockets, webhooks. The project also ships a reference HTTP implementation and a default connector so teams can start without building the plumbing themselves.

How an AG-UI event travelsAgent backendLangChain, ADK…→AG-UI events~16 event types→Middlewarekeeps formats compatible→Frontend appchat, UI, stateLifecycleText messagesTool callsState syncSubagentsEvents stream from the agent to the app; the middleware keeps them compatible.Any transport: SSE, WebSockets, webhooks. Event types per the AG-UI documentation.

Two design choices deserve attention. The middleware allows loose event matching, so an agent and a client need not implement events identically to interoperate — good for adoption, and a reason to validate what you receive. And the protocol is transport-agnostic: SSE, WebSockets or webhooks all work, so it fits an existing stack instead of forcing a new one.

The three-protocol stack: MCP, A2A and AG-UI

AG-UI's README places it in a stack with two other protocols, and the comparison is the clearest way to understand what it does not do. The three are complementary, not competing — each one standardises a different conversation.

MCP, the Model Context Protocol, gives agents tools. It standardises how an agent reaches outside itself: reading files, querying databases, calling APIs. If an agent needs to do something in the world, MCP is the wire it uses.

A2A, the Agent-to-Agent protocol, lets agents communicate with other agents. It standardises how one agent delegates work to another, asks for a result, or hands off a task. If agents need to collaborate, A2A is the wire they use.

AG-UI brings agents into user-facing applications. It standardises how an agent shows its work to a human and takes input back. If an agent needs to work with a person inside an app, AG-UI is the wire it uses.

Put together: MCP gives the agent hands, A2A gives agents colleagues, AG-UI gives the agent a face. A product that uses only AG-UI still needs its own way of giving the agent tools and its own model — AG-UI supplies neither. That is not a flaw; it is the point of a layered standard. But it is why AG-UI alone does not build you an agent: it is one layer of three.

What you can build with it: real use cases

The project's Dojo demo site shows the same handful of patterns, and each maps to a real product need.

The first is the in-app assistant that can see and touch the app. A support dashboard where the agent reads the ticket the user is looking at, drafts a reply in place, and asks for approval before sending it. The shared-state events make this work: the agent and the interface look at the same ticket, and the human stays in the loop through an interrupt — the agent pauses, the user approves or edits, the agent continues. The documentation has a dedicated concept page for interrupts, which is the mechanism behind that pause-and-approve flow.

The second is generative UI: the agent does not just reply in text, it renders interface. It runs a query and the result appears as a table; it compares two plans and the comparison appears as cards; it drafts a report and the report appears as a formatted document inside the app. The tool-call and state events carry the data; the frontend decides how to draw it. This is the use case that makes AG-UI different from a chatbot pasted into a sidebar: the output lives in the product's own interface, styled by the product.

The third is the agent that works while the user watches. A research agent that streams its sources as it finds them, a data agent that shows each step of an analysis, a coding agent that shows each file it touches. The lifecycle and activity events exist for exactly this: progress the user can follow, and a failure the user can see instead of a silent timeout.

None of these requires AG-UI specifically — each can be built with a custom WebSocket protocol. The argument for AG-UI is that you do not have to design the event format, the state sync, or the interrupt flow yourself, and the frontend you build can later talk to a different agent framework without a rewrite. If your app has one agent and no plans to change frameworks, the saving is small. If your app will outlive its first agent framework, it is large.

Setup: build your first AG-UI app

AG-UI's documentation offers an automatic setup, and it is genuinely quick — this is the honest version of "getting started", not a one-click install for end users. You need Node.js and npm on your machine, and you should be comfortable in a terminal. The steps below follow the official quickstart for building applications.

Step 1 — scaffold an app. The project provides a CLI that creates a new application with a client and a server already wired together:

npx create-ag-ui-app@latest

Answer the prompts it asks — the CLI scaffolds the project for you. The quickstart's own example uses the CopilotKit client, which is the reference client for the protocol.

Step 2 — start the server. Move into the project folder and start the development server:

cd my-agent-app
npm run dev

Step 3 — open the app. For the CopilotKit example, open http://localhost:3000 in your browser and you will see the app in action: a working agent interface, streaming events from the agent to the page.

Step 4 — look at the Dojo before writing your own code. The AG-UI Dojo (dojo.ag-ui.com) demonstrates the protocol's building blocks through small, focused examples, each about 50 to 200 lines of code. The source for the Dojo and for all framework integrations is in the repository under apps/dojo.

Step 5 — pick your agent framework and wire it in. The quickstart for building integrations covers the server side, and the middleware quickstart covers the compatibility layer. Your agent backend emits AG-UI events (or you add a thin adapter that translates your framework's own stream into AG-UI events), and the client renders them. Which framework you choose matters less than it used to — that is the point of the protocol — but the integration is still real work: you are connecting a live agent to a live interface, and the edge cases live in your agent's behaviour, not in AG-UI's event list.

A note on honesty: the commands above are the verified happy path from the official docs. They scaffold a demo. Turning that demo into a production app — authentication, deployment, error handling, rate limits, cost controls — is a separate job; the scaffold is the start, not the finish.

Integrations: what actually works with it

The README's integration tables are the authoritative list, and they are worth reading carefully because they distinguish three tiers. First-party integrations are the platforms with AG-UI built in and documented guidance: the built-in agent, LangChain and CrewAI (the partnerships AG-UI was born from), Microsoft Agent Framework, Google ADK, Google Antigravity, AWS Strands Agents, Mastra, Pydantic AI, Agno, LlamaIndex and AG2. Two more first-party entries are marked in progress rather than supported: AWS Bedrock Agents and the OpenAI Agents SDK. That "in progress" label matters — if your stack is OpenAI's Agents SDK, AG-UI does not yet have a finished integration for it.

Community integrations are supported but maintained by the wider ecosystem: the Claude Agent SDK, the Claude Managed Agents SDK, Langroid, Omnara, and Cloudflare Agents. Clients include CopilotKit itself, a Terminal + Agent client, chat platforms (Slack and Microsoft Teams, through the Channels SDK), React Native, and OpenBot. The project also lists SDKs in Kotlin, Go, Dart, Java, Rust, Ruby, C++ and .NET as supported, with Nim, Flowise and Langflow in progress.

Two things stand out. First, the breadth is real: most of the agent frameworks a team might plausibly use in 2026 are on the list. Second, the list is a snapshot, not a promise — integrations move between "in progress" and "supported", so check the status row for your framework on the day you decide. The list in this article is dated 16 November 2026.

And to repeat the correction from the top of this article, because it is the one most likely to mislead: Claude Code and Gemini CLI are not on that list. The Claude Agent SDK is — a different thing, an SDK for building agents with Claude, not the Claude Code command-line tool. Cursor is not on it either; the docs mention Cursor in a tutorial about developing with AG-UI inside the Cursor editor. If a post tells you AG-UI "works with Claude Code, Cursor and Gemini CLI", it is describing an aspiration, not the project's integration list.

AG-UI vs the alternatives

There are four honest ways to connect an agent to a frontend, and the table below compares them on the facts the project itself publishes. The right choice depends on what you are building, not on which one is trending.

ApproachWhat it standardisesWho talks to whomBest for
AG-UIAgent-to-frontend events (~16 types)Agent backend ↔ user-facing appApps where the agent works inside the product, across frameworks
MCPAgent-to-tool accessAgent ↔ files, databases, APIsGiving an agent something to do in the world
A2AAgent-to-agent messagesAgent ↔ agentAgents delegating to other agents
Custom WebSocket JSONNothing — you design the formatYour agent ↔ your frontendOne agent, one app, no plans to change either

MCP, A2A and AG-UI do not replace each other; a serious agent product in 2026 plausibly uses all three. The custom route is AG-UI's real competitor: if you control both ends and will never swap frameworks, a format you design yourself is less to learn. If the framework will change, or several agents must share one interface, the standard pays for itself. Choose on that basis — expected change, not hype.

Honest limitations

AG-UI's limits are the limits of a young protocol, and the project does not hide most of them. The first is maturity. The repository is eighteen months old, it has 593 open issues as of 16 November 2026, and its releases are date-tagged and near-daily — the sign of a project still moving fast. Event types are still being drafted (the docs list draft events and deprecated thinking events), and the documentation has a whole page for migrating to 1.0. If you build on AG-UI today, budget time for keeping up with its changes.

The second is scope. AG-UI standardises events, not everything around them. It does not give your agent tools (that is MCP's job), it does not make agents talk to each other (that is A2A's job), and it does not include a model, hosting, authentication, or billing. A team that adopts AG-UI expecting an agent platform will be disappointed; a team that adopts it expecting an event format will get exactly what it signed up for.

The third is the ecosystem gap. Two notable integrations are still in progress — the OpenAI Agents SDK and AWS Bedrock Agents — and community SDKs for Nim, Flowise and Langflow are also unfinished. If your stack is one of those, check the status before committing; "in progress" in an open-source README can mean weeks or quarters.

The fourth is the bet itself. A protocol is only as useful as the number of things that speak it. AG-UI's integration list is broad, but the standard is young, and the industry has not finished choosing. If adoption stalls, early adopters carry the cost of a format nobody else uses. That risk is normal for a standard at this age, and it is the main reason to prototype with AG-UI before rebuilding a product around it.

Security and privacy: what the protocol does and does not do

Security is the section where a protocol article must be careful, because AG-UI's own documentation does not publish a dedicated security guide — its "Production support" link leads to a contact page, not a hardening checklist. So here is what can be said honestly, from the architecture the project does document.

AG-UI itself carries no authentication. The protocol defines event shapes; it does not define who may emit them, who may subscribe to them, or how a client proves its identity. Those decisions belong to your transport and your server: TLS on the connection, authentication on the endpoint, authorisation on what a given user may see. If you expose an AG-UI event stream on a public endpoint with no auth, anyone who finds it can watch your agent work. That is not a vulnerability in AG-UI — a protocol cannot authenticate for you — but it is the first mistake a team can make with it, so it belongs at the top of this section.

Second, events carry content. Text events carry the agent's words, tool-call events carry arguments and results, state events carry shared state. Anything the agent emits can reach the client, and anything in the shared state is visible to the frontend by design. Before streaming, decide what the agent is allowed to put in events: secrets, API keys, internal identifiers and other users' data must never enter the event stream. Treat the stream as a public surface, even when it is authenticated, because frontends log, cache and display what they receive.

Third, the human-in-the-loop mechanism is a safety feature, not a decoration. Interrupts let the agent pause and ask before acting — approving a send, confirming a deletion, reviewing a change. Use them for every irreversible action. An agent that can act without asking is an agent that can cause damage without asking, and no protocol removes that risk; AG-UI at least gives you the pause button, so use it.

On privacy, the relevant fact is where data flows: conversation content, tool results and state travel to the user's device as the agent works. What leaves your server, where it is stored on the client, and how long it is kept are decisions for your app, not the protocol. If your agent handles personal data, review that flow before you stream it anywhere.

Verdict

AG-UI is a real, well-built answer to a real problem: an eighteen-month-old project, MIT-licensed, backed by the CopilotKit team, with a broad integration list and a clear place in the agent protocol stack. If you are a developer building an app where an AI agent works inside the product — streaming its reasoning, rendering results as interface, sharing state, pausing for approval — AG-UI is the most credible standard for that wire in November 2026, and the Dojo's short examples make it cheap to evaluate.

But judge it as a protocol, not a product. It will not give you an agent, a model, tools, hosting, or security — and the claims that it "works with Claude Code, Cursor and Gemini CLI" do not survive a check against the project's own integration list. Adopt it for what it is: a shared event format that makes your frontend reusable across frameworks, at the price of betting on a young standard that is still changing. For a team whose framework will change, that bet is worth making. For a team with one agent and one app, a custom format may still be simpler.

Frequently Asked Questions

What is AG-UI?

AG-UI is the Agent-User Interaction Protocol: an open, lightweight, event-based protocol that standardises how AI agents connect to user-facing applications. An agent backend emits events from about 16 standard types, and a frontend client receives them and renders them — streaming chat, tool activity, shared state and generative UI. It is MIT-licensed, created on 7 May 2025, and backed by the team behind CopilotKit.

Is AG-UI an app I can download?

No. AG-UI is a protocol — a specification for how an agent and a frontend exchange events — not a program. There is nothing to install and use as an end user. Developers use it as a building block when they put an AI agent inside their own app; end users meet it only through apps built on it.

Does AG-UI work with Claude Code, Cursor or Gemini CLI?

Not according to the project's own integration list. Neither Claude Code nor Gemini CLI appears in it, and Cursor appears in the docs only as an editor tutorial for developing with AG-UI. The verified integrations include LangChain, CrewAI, Microsoft Agent Framework, Google ADK, Google Antigravity, AWS Strands, Mastra, Pydantic AI, Agno, LlamaIndex and AG2, plus community integrations such as the Claude Agent SDK and Cloudflare Agents. The OpenAI Agents SDK and AWS Bedrock Agents are still in progress.

How is AG-UI different from MCP and A2A?

They standardise different conversations and are complementary. MCP gives agents tools — it is how an agent reads files or calls APIs. A2A lets agents talk to other agents. AG-UI brings agents into user-facing apps — it is how an agent shows its work to a human and takes input back. A complete agent product can use all three at once.

How do I try AG-UI?

If you are a developer, scaffold the demo with the official CLI — npx create-ag-ui-app@latest — then run npm run dev and open http://localhost:3000. The AG-UI Dojo (dojo.ag-ui.com) has small examples of about 50 to 200 lines of code for each building block. Turning the demo into a production app — authentication, deployment, error handling — is separate work the protocol does not do for you.

Is AG-UI free?

Yes. The protocol and the reference code are MIT-licensed, which means free to use, including commercially. The costs of using it are the costs around it: the language model your agent calls, the server you run, and the development time to integrate it. AG-UI itself charges nothing.

Sources

Related reading: Herdr: tmux Built for AI Agents — Setup & Limits · Claude Fable 5.2: Anthropic's new model · Gemini API CLI: the complete guide

Want a website that markets itself? Asad Webs builds fast, search-ready websites and web apps — talk to us about yours: asadwebs.com/#contact.

Category: Technology

Tags: technology

About Asad Ali

Asad Ali is a graphics designer with over 20 years of experience — designing since 2003 — and the founder of Asad Webs, based in Pakistan. He builds the free online tools on this site and writes the guides published here.

LinkedIn Facebook Website
KEEP READING

Next guide

Best PS5 Controllers for GTA 6 (10 products) →

Related articles

Join the conversation

No account needed. Comments appear only after approval. Your email address will not be published.

Be the first to share a useful question or thought.

You won’t be subscribed to any mailing list.
WELCOME BACK

Sign in

Access your orders, saved products and account.