AG-UI Protocol — Bridge Between Agents and Frontend
ag-ui-protocol/ag-ui — open specification for AI agent ↔ frontend interaction. GitHub Trending: +791 stars/day, 19,712 total.
The Problem
Agents (Claude Code, Codex, Cursor) work in terminal or chat. Complex tasks need rich UI: tables, forms, diagrams, interactive confirmations. AG-UI standardizes this.
Key Features
- Action streaming — agent sends real-time events
- Confirmation requests — modals, checkboxes, selects
- UI rendering — React/Vue/Svelte components in chat
- Bidirectional — user can interrupt, guide, correct
- Transport-agnostic — WebSocket, SSE, HTTP, in-process
Architecture
Agent ↔ AG-UI Protocol ↔ Frontend (React/Vue/Svelte/Vanilla)How to Start
- Docs: GitHub Repo
- NPM:
@ag-ui/client,@ag-ui/core - Examples: Next.js, React, Vue integration
- SDK for building agents with UI
- LangGraph — native support
- CopilotKit — AG-UI adapters
- Custom agent frameworks
Adopters
License: MIT | Language: TypeScript | ⭐ 19,712 (+791/day)
