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

  1. Docs: GitHub Repo
  2. NPM: @ag-ui/client, @ag-ui/core
  3. Examples: Next.js, React, Vue integration
  4. SDK for building agents with UI
  5. Adopters

    • LangGraph — native support
    • CopilotKit — AG-UI adapters
    • Custom agent frameworks

    License: MIT | Language: TypeScript | ⭐ 19,712 (+791/day)