AG-UI (Agent-User Interaction Protocol) is an open, event-based protocol for connecting AI agents to frontend applications. Unlike messaging platforms that require app setup and webhooks, AG-UI is code-first. Run your agent and connect any compatible frontend.Documentation Index
Fetch the complete documentation index at: https://agno-v2-fix-deploy-docs-restructure.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Install the dependency:
uv pip install 'agno[agui]'The Protocol Stack
AG-UI is one layer of a three-protocol stack adopted by AWS, Google, Microsoft, and major AI frameworks:| Protocol | Purpose |
|---|---|
| MCP | Agents ↔ Tools & Data |
| A2A | Agents ↔ Agents |
| AG-UI | Agents ↔ Users |
Quick Start
Connect a frontend
- Dojo
- CopilotKit
- Other
Features
AG-UI provides bidirectional streaming between your agent and the frontend:| Feature | Description |
|---|---|
| Live streaming | Token-by-token responses with cancel/resume |
| Tool execution | Frontend displays tool calls, arguments, and results |
| Reasoning traces | Chain-of-thought from reasoning models |
| Generative UI | Static and declarative UI rendering from agent output |
| State sync | Bidirectional agent ↔ app state with conflict resolution |
| Human-in-the-loop | Pause, approve, edit, or retry before actions |
| Multimodal | Files, images, audio, and transcripts |
| Custom events | Stream structured data to the frontend |
User Identification
Passuser_id via forwarded_props from your frontend:
run_context.user_id for per-user memory and credentials.