Skip to content

ag-ui-protocol/ag-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ag-ui Logo AG-UI: The Agent-User Interaction Protocol

AG-UI is a lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications. Built for simplicity and flexibility, it enables seamless integration between AI agents, real time user context, and user interfaces.


📅 Upcoming Event: August 6th - AG-UI + Mastra: Build a Project Management Canvas


Version MIT Discord

Join our Discord →     Read the Docs →     Follow us → Your application-AG-UI protocol

🚀 Getting Started

Create a new AG-UI application in seconds:

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

Building AG-UI Integrations (new frameworks):

What is AG-UI?

AG-UI is an open, lightweight, event-based protocol for agent-human interaction, designed for simplicity & flexibility:

  • During agent executions, agent backends emit events compatible with one of AG-UI's ~16 standard event types
  • Agent backends can accept one of a few simple AG-UI compatible inputs as arguments

AG-UI includes a flexible middleware layer that ensures compatibility across diverse environments:

  • Works with any event transport (SSE, WebSockets, webhooks, etc.)
  • Allows for loose event format matching, enabling broad agent and app interoperability

It also ships with a reference HTTP implementation and default connector to help teams get started fast.

Learn more about the specs →

Why AG-UI?

AG-UI was developed based on real-world requirements and practical experience building in-app agent interactions.

Where does AGUI fit in the agentic protocol stack?

AG-UI is complementary to the other 2 top agentic protocols

  • MCP gives agents tools
  • A2A allows agents to communicate with other agents
  • AG-UI brings agents into user-facing applications

🚀 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

🛠 Supported Frameworks

AG-UI was born from CopilotKit's initial partnership with LangGraph and CrewAI - and brings the incredibly popular agent-user-interactivity infrastructure to the wider agentic ecosystem.

Framework Status AG-UI Resources Integrations
No-framework ✅ Supported ➡️ Docs coming soon
LangGraph ✅ Supported ➡️ Demo Partnership
CrewAI ✅ Supported ➡️ Demo Partnership
Mastra ✅ Supported ➡️ Demo 1st party
AG2 ✅ Supported ➡️ Demo 1st party
Agno ✅ Supported ➡️ Docs 1st party
LlamaIndex ✅ Supported ➡️ Docs 1st party
Pydantic AI ✅ Supported ➡️ Docs 1st party
Vercel AI SDK 🛠️ In Progress Community
Google ADK 🛠️ PR Community
OpenAI Agent SDK 🛠️ In Progress Community
AWS Bedrock Agents 🛠️ In Progress 1st party
Cloudflare Agents 💡 Open to Contributions Community
Strands Agents SDK 💡 Open to Contributions Community

View all supported frameworks →

Language SDK Status AG-UI Resources
Kotlin ✅ Supported ➡️ GitHub Source
.NET 🛠️ In Progress ➡️ PR
Nim 🛠️ In Progress ➡️ PR
Golang 🛠️ In Progress ➡️ Issue
Rust 🛠️ In Progress ➡️ Issue
Java 🛠️ In Progress ➡️ GitHub Source

View all supported frameworks →

✨ Hello World App

Video:

agui-hello-world-2.mp4

https://agui-demo.vercel.app/

🧩 AG-UI Showcase: The AG-UI Dojo (Building-Blocks Viewer)

The AG-UI Dojo showcases many of the building blocks that AG-UI supports (AG-UI Dojo Source Code).

The building blocks are designed to be simple and focused -- between 50-200 lines of code.

dojo-hello.mp4

🙋🏽‍♂️ Contributing to AG-UI

Check out the Contributing guide

Roadmap

Check out the AG-UI Roadmap to see what's being built and where you can jump in.

📄 License

AG-UI is open source software licensed as MIT.

About

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

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published