AG-UI Protocol

AG-UI Protocol

The Open Protocol for Agent<->User Interaction

AG-UI is an open, lightweight, event-based protocol that defines how AI agents, users, and applications stay in sync. It is the connective layer that transforms agents from background processes into true collaborators — transparent, reliable, and always aligned with the user.

AG-UI, Frameworks and LLMs

AG-UI isn't a siloed solution — it's being developed by the CopilotKit team in collaboration with leading frameworks and platforms developers already trust:

LangGraph
LangGraph
Mastra
Mastra
Pydantic
Pydantic
CrewAI
CrewAI
Autogen 2
Autogen 2
LlamaIndex
LlamaIndex
Agno
Agno

What AG-UI Enables

Shared State: Bi-directional synchronization of agent and application state — either read/write or read-only.

Why AG-UI Matters

For Developers

Build agentic apps faster with a standard interface for agent ↔ UI communication.

For Enterprises

Deploy with confidence, with governance and analytics built in at the boundary.

For the Ecosystem

Prevent fragmentation with a shared protocol designed for broad adoption.

Bringing AG-UI Features into your app with CopilotKit

CopilotKit builds on AG-UI with tools for production-ready agentic apps

CopilotKit AG-UI Clients

First-party React and Angular AG-UI clients, with community clients emerging across Golang, Rust, Java, and more.

// React AG-UI Client import { useAGUI } from '@copilotkit/react'  const MyComponent = () => { const { agent, ui } = useAGUI() // Your component logic }

Copilot Cloud - Hosted AG-UI Platform

Protection

Guardrails at the boundary: prevent prompt injection, block sensitive data leaks, enforce brand and compliance guidelines.

Cockpit

Coming Soon

AI product analytics for visibility into every agent ↔ user interaction.

Learning

Coming Soon

Support for self-improving agents through implicit human feedback (RLiHF).

Frequently Asked Questions

What is AG-UI?

AG-UI is an event-based protocol that synchronizes agents, users, and applications, enabling reliable collaboration.

How does AG-UI compare to MCP or A2A?

While MCP (Model Context Protocol) and A2A (Agent-to-Agent) handle context and agent coordination, AG-UI defines the layer of interaction between the user, the application, and the agent.

Why is AG-UI important for enterprise adoption?

It provides transparency, safety, and control at the most critical boundary — where users interact with agents.

Protocol Comparison

MCP
Model Context Protocol

Handles context and model communication

Focus: Model ↔ Context

A2A
Agent-to-Agent

Agent coordination and communication

Focus: Agent ↔ Agent

AG-UI
Agent ↔ User Interaction

User, application, and agent synchronization

Focus: User ↔ Agent ↔ Application

Ready to Get Started?

Explore the protocol specification and start building agentic applications with CopilotKit and AG-UI.