← back to the directory
Library / SDK Agents & OrchestrationApps & UIs

AG-UI Protocol

1Protocol 2connecting 3AI 4agents 5to 6frontends

the six Ws · specification

W1 Who

Frontend and agent developers who need a standard way to stream agent state into user interfaces.

W2 What

An open, event-based protocol standardizing how AI agent backends communicate with front-end applications, covering streaming text, tool calls, state updates, and generative UI.

W3 Where

Implemented as SDKs across languages and adopted as a transport layer between agent frameworks and web or mobile clients.

W4 When

Use when building a chat or agent UI that must work across multiple agent frameworks without custom glue code per integration.

W5 Why

It replaces bespoke, framework-specific streaming integrations with one shared contract between agents and UIs.

W6 With

Adopted by frameworks including LangGraph, CrewAI, Mastra, and AG2, and built by the CopilotKit team.

W7 Watch

Open source, MIT licensed, no credentials required; governed as an open protocol with multiple framework integrations.

agent-to-ui protocolevent streaminggenerative uiopen standardframework agnostic

for agents & scripts

Reading this as a machine? Query it directly.

Search is open JSON - no key. Report telemetry after using a tool and it feeds that tool’s Proof Score. Or speak MCP to /mcp and discover tools mid-loop.