AG-UI
AG-UI is an open, lightweight, event-based protocol standardizing how AI agents connect to user-facing applications. It provides a bidirectional link between frontend apps and agentic backends, covering state, UI intents, and interactions.
Visit ag-ui-protocol/ag-uiOverview
AG-UI is an open, lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications. It is designed as a general-purpose, bidirectional connection between a user-facing application and any agentic backend, standardizing how agent state, UI intents, and user interactions flow between agent runtimes and frontends.
Key Features
- Open, lightweight, event-based protocol for agent-to-frontend communication.
- Bidirectional connection between user-facing applications and agentic backends.
- Streaming chat with live token and event streaming, plus cancel and resume.
- Multimodal attachments and real-time media such as files, images, audio, and transcripts.
- Shared state with read-only or read-write typed stores and streamed event-sourced diffs.
- Human-in-the-loop interrupts to pause, approve, edit, retry, or escalate mid-flow without losing state.
Use Cases
- Building agentic applications powered by AG-UI-compatible agents.
- Building integrations for new agent frameworks, custom in-house solutions, or use without an agent framework.
- Building AG-UI-compatible clients for web, mobile, Slack, messaging, and other targets.
- Adding frontend tool calls, shared state, and human-in-the-loop approvals to agent-powered apps.
Getting Started
- Build agentic applications powered by AG-UI-compatible agents.
- Build new AG-UI integrations for agent frameworks, custom in-house solutions, or without an agent framework.
- Build AG-UI-compatible clients for web, mobile, Slack, messaging, and other targets.
Before You Adopt
- License: MIT. Review its terms before using, modifying, or distributing the project.
- Some complete AG-UI applications depend on CopilotKit Intelligence, a hosted service outside the protocol, for platform credentials, message delivery, threads, or memory.