Skip to content

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

License

Notifications You must be signed in to change notification settings

jasonkneen/ag-ui

Repository files navigation

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

AG-UI is an open, 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.



VersionMITDiscord

Join our Discord → Read the Docs → Go to the AG-UI Dojo → Follow us →

1600x680

🚀 Getting Started

Create a new AG-UI application in seconds:

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

Useful Links:

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
The Agent Protocol Stack

🚀 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 Integrations

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.

1st party = the platforms that have AG‑UI built in and provide documentation for guidance.

Frameworks

FrameworkStatusAG-UI Resources
Built-in Agent✅ Supported➡️ Docs

🤝 Partnerships

FrameworkStatusAG-UI Resources
LangGraph✅ Supported➡️ Docs 🎮 Demos
CrewAI✅ Supported➡️ Docs 🎮 Demos

🧩 1st Party

FrameworkStatusAG-UI Resources
Microsoft Agent Framework✅ Supported➡️ Docs 🎮 Demos
Google ADK✅ Supported➡️ Docs 🎮 Demos
AWS Strands Agents✅ Supported➡️ Docs 🎮 Demos
Mastra✅ Supported➡️ Docs 🎮 Demos
Pydantic AI✅ Supported➡️ Docs 🎮 Demos
Agno✅ Supported➡️ Docs 🎮 Demos
LlamaIndex✅ Supported➡️ Docs 🎮 Demos
AG2✅ Supported➡️ Docs
AWS Bedrock Agents🛠️ In Progress

🌐 Community

FrameworkStatusAG-UI Resources
OpenAI Agent SDK🛠️ In Progress
Cloudflare Agents🛠️ In Progress

Agent Interaction Protocols

ProtocolsStatusAG-UI ResourcesIntegrations
A2A✅ Supported➡️ DocsPartnership

Specification (standard)

FrameworkStatusAG-UI Resources
Oracle Agent Spec✅ Supported➡️ Docs 🎮 Demos

SDKs

SDKStatusAG-UI ResourcesIntegrations
Kotlin✅ Supported➡️ Getting StartedCommunity
Golang✅ Supported➡️ Getting StartedCommunity
Dart✅ Supported➡️ Getting StartedCommunity
Java✅ Supported➡️ Getting StartedCommunity
Rust✅ Supported➡️ Getting StartedCommunity
.NET🛠️ In Progress➡️ PRCommunity
Nim🛠️ In Progress➡️ PRCommunity
Flowise🛠️ In Progress➡️ GitHub SourceCommunity
Langflow🛠️ In Progress➡️ GitHub SourceCommunity

Clients

ClientStatusAG-UI ResourcesIntegrations
CopilotKit✅ Supported➡️ Getting Started1st Party
Terminal + Agent✅ Supported➡️ Getting StartedCommunity
React Native🛠️ Help Wanted➡️ GitHub SourceCommunity

View all supported integrations →

Examples

Hello World App

Video:

agui-hello-world-2.mp4

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

The AG-UI Dojo (Building-Blocks Viewer)

The AG-UI Dojo demonstrates AG-UI's core building blocks through simple, focused examples—each just 50-200 lines of code.

View the source code for the Dojo and all framework integrations here.

dojo.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

Languages

  • TypeScript29.9%
  • Python25.0%
  • Kotlin14.4%
  • Java10.1%
  • Go7.7%
  • Dart7.0%
  • Other5.9%