ag-ui

AG-UI: the Agent-User Interaction Protocol. Bring Agents into Frontend Applications.

What is ag-ui?

AG-UI: the Agent-User Interaction Protocol. Bring Agents into Frontend Applications.

Overview of ag-ui

What it is

AG-UI is an open, lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications. It is designed for simplicity and flexibility, enabling seamless integration between AI agents, real-time user context, and user interfaces. During agent executions, agent backends emit events compatible with one of approximately 16 standard event types, and can accept a few simple AG-UI compatible inputs as arguments. The protocol includes a flexible middleware layer that ensures compatibility across diverse environments, works with any event transport (SSE, WebSockets, webhooks, etc.), and allows for loose event format matching. It ships with a reference HTTP implementation and a default connector.

Key features

  • Real-time agentic chat with streaming
  • Bi-directional state synchronization
  • Generative UI and structured messages
  • Real-time context enrichment
  • Frontend tool integration
  • Human-in-the-loop collaboration

Use cases

  • Bringing AI agents into user-facing frontend applications
  • Enabling real-time chat and interaction between users and agents
  • Implementing human-in-the-loop workflows where users can review and intervene in agent actions
  • Building applications that require generative UI components driven by agent outputs
  • Integrating agents with various frontend frameworks and platforms (e.g., LangChain, CrewAI, Microsoft Agent Framework, Google ADK, etc.)

Getting started

npx create-ag-ui-app my-agent-app

License and pricing

AG-UI is open source software licensed under the MIT license. It is free to use.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/ag-ui-protocolag-ui.svg)](https://yunodb.com/tools/ag-ui-protocolag-ui?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/ag-ui-protocolag-ui?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/ag-ui-protocolag-ui.svg" alt="Featured on YunoDB" height="20"></a>