← Back to all projects

AG-UI

The third agent protocol — not agent to tool, nor agent to agent, but agent to user interface

OfficialMIT
Stars
16.9k
Forks
1.5k
Open issues
544
Last commit
30 Oct 2026

What is AG-UI?

A request-and-response API cannot describe an agent that runs for minutes, streams partial work, changes its mind and occasionally needs a person. AG-UI defines that exchange as a stream of events over HTTP and WebSockets: tokens, tool calls and their results, shared state, attachments, and interrupts where the run stops to ask. Its usefulness scales with what already implements it — a first-party list that includes several frameworks in this catalogue — and drops sharply if neither your backend nor your frontend does.

What can you do with AG-UI?

  • Show the work, not a spinner — Token-level updates, tool calls and tool results arrive as separate events, so an interface can display what the agent is doing while it is still doing it instead of waiting for a final payload.
  • Keep one state on both sides — State is shared between the agent and the application as part of the protocol, so the frontend reads it directly rather than reconstructing the agent's view by parsing the transcript.
  • Stop and ask the person — Human-in-the-loop interrupts are part of the event vocabulary, which means approval steps are a protocol feature every implementation handles the same way rather than something each application invents.
  • Send more than text — Files, images, audio and transcripts are carried as multimodal attachments, and the agent can emit declarative UI components for the application to render.
  • Connect a backend that already speaks it — First-party implementations include CopilotKit, Microsoft Agent Framework, Google ADK, AWS Strands, Mastra, Pydantic AI, LlamaIndex and AG2, with partnerships covering LangGraph and CrewAI.

Before you choose AG-UI

  • The payoff is proportional to what already implements it: with a hand-built frontend and a backend outside the supported list, this is a specification to implement at both ends, not a component to install.

Star history

21 Aug to 30 Oct · +1.5k

15.5k16.9k

Frequently asked questions

Is AG-UI free for commercial use?

AG-UI is released under the MIT licence — OSI-approved open source, which permits commercial use.

How can AG-UI be deployed?

AG-UI is available as Self-hosted / Runs locally.