← プロジェクト一覧に戻る

AG-UI

3つ目のエージェントプロトコル。ツール向けでも他エージェント向けでもなく、UI向けの取り決め

公式MIT
スター
15.6k
フォーク
1.4k
オープンIssue
332
最終コミット
2026年8月28日

AG-UIとは

数分間動き続け、途中経過を流し、判断を変え、ときに人の確認を必要とするエージェントを、リクエストとレスポンスのAPIでは表現できません。AG-UIはそのやり取りを、HTTPとWebSocket上のイベント列として定義します。トークン、ツール呼び出しとその結果、共有状態、添付ファイル、そして実行を止めて問い合わせる割り込みが含まれます。有用性は既に実装している側の広さに比例し、本カタログ収録のフレームワークを含む公式対応一覧がその根拠です。逆に自分のバックエンドもフロントエンドも未対応なら、利点は大きく下がります。

AG-UIで何ができますか?

  • 待機表示ではなく作業内容を見せる — トークン単位の更新、ツール呼び出し、ツールの結果がそれぞれ別のイベントとして届きます。最終的な応答を待たずに、動いている最中の内容を画面に出せます。
  • 状態を両側で1つにする — エージェントとアプリケーションの間の共有状態がプロトコルに含まれます。フロントエンドは会話履歴を解析してエージェントの状況を推測するのではなく、その状態を直接読みます。
  • 止めて人に尋ねる — 人の判断を挟む割り込みがイベントの語彙に含まれます。承認の手順がアプリごとの自作ではなく、どの実装でも同じ扱いになるプロトコルの機能になります。
  • テキスト以外も送る — ファイル、画像、音声、書き起こしを添付として扱えます。エージェント側から、アプリケーションが描画する宣言的なUI部品を送り出すこともできます。
  • 既に対応しているバックエンドに繋ぐ — 公式対応にはCopilotKit、Microsoft Agent Framework、Google ADK、AWS Strands、Mastra、Pydantic AI、LlamaIndex、AG2が含まれ、LangGraphとCrewAIとは提携関係にあります。

AG-UIを選ぶ前に

  • 利点は既存の実装状況に比例します。自作のフロントエンドと対応一覧外のバックエンドという組み合わせでは、導入する部品ではなく両端で実装する仕様になります。

スター推移

8月21日〜8月28日 · +131

15.5k15.6k

よくある質問

AG-UIは商用利用できますか?

AG-UIはMITライセンスで公開されています。OSI承認のオープンソースライセンスで、商用利用が認められています。

AG-UIはどの形で使えますか?

AG-UIはセルフホスト・ローカル実行の形で利用できます。

ドキュメント

ag-ui-protocol/ag-ui のREADMEより転載(MIT)。 原文を読む ↗

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.


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

🚀 Getting Started

Create a new AG-UI application in seconds:

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

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 Integrations

AG-UI was born from CopilotKit’s initial partnership with LangChain 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
LangChain✅ 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 🎮 Demos
AWS Bedrock Agents🛠️ In Progress–

🌐 Community

FrameworkStatusAG-UI Resources
Claude Agent SDK✅ Supported🎮 Demos
Claude Managed Agents SDK✅ Supported🎮 Demos
Langroid✅ Supported🎮 Demos
OpenAI Agent SDK🛠️ In Progress–
Cloudflare Agents🛠️ In Progress–

Agent Interaction Protocols

ProtocolsStatusAG-UI ResourcesIntegrations
A2A✅ Supported➡️ DocsPartnership

Infrastructure / Deployment

PlatformStatusAG-UI ResourcesIntegrations
Amazon Bedrock AgentCore✅ Supported➡️ Docs1st Party

Specification (standard)

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

Generative UI

FrameworkStatusAG-UI Resources
MCP Apps✅ 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
Ruby✅ Supported➡️ Getting StartedCommunity
C++✅ Supported➡️ GitHub SourceCommunity
.NET✅ Supported➡️ Getting StartedCommunity
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
Chat platforms (Slack, Microsoft Teams)✅ Supported➡️ Channels SDK 🎮 OpenTag example1st Party
React Native✅ Supported➡️ Example1st Party

View all supported integrations →

Examples

Hello World App

Video:

https://github.com/user-attachments/assets/18c03330-1ebc-4863-b2b8-cc6c3a4c7bae

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.

https://github.com/user-attachments/assets/c298eea8-3f39-4a94-b968-7712429b0c49

🙋🏽‍♂️ 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.