AG-UI is an open, lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications.
Agents don't fit the request/response model. They stream tokens, call tools mid-response, update shared state, pause for a human, and spawn subagents, and every framework does it differently. AG-UI replaces that custom wiring with one bi-directional event stream: the agent emits typed events, and any client can render them, no matter which framework built the agent. The same agent can power a web app, a mobile app, a terminal, or Slack.

[!IMPORTANT]
AG-UI 1.0 is here. The protocol now has a stable, frozen specification backed by a JSON Schema, and the TypeScript, Python, and .NET SDKs are generated from it. 1.0 is backwards compatible in both directions: 0.x agents work with 1.0 clients and vice versa. What changed → · Migration guide →
Quick start
Start a new app. The CLI scaffolds a frontend (CopilotKit on Next.js, or a terminal client) wired to the agent framework you pick:
npx create-ag-ui-app@latest
Then follow the printed next steps. The generated templates call OpenAI, so set your key before npm run dev:
export OPENAI_API_KEY="sk-..."
Where AG-UI fits

AG-UI is one of three open, complementary agentic protocols. MCP gives agents tools and context, A2A lets agents work with other agents, and AG-UI brings agents to users. A single agent often uses all three, and AG-UI can front agents that speak MCP or A2A. Read more →
[!NOTE]
AG-UI or A2UI? They work together. A2UI, MCP Apps, and Open-JSON-UI are generative UI specs: they describe what UI an agent wants to show. AG-UI is the runtime protocol that carries those payloads, along with everything else, between the agent and the app. Learn more →
Integrations
AG-UI is adopted by Google, Microsoft, Amazon, and Oracle, and built into most agent frameworks. Every framework below has a live demo in the Dojo.
Protocols: A2A · MCP · MCP Apps ·
(React, Angular, Vue, React Native) · · ·
Don't see your framework? Build an integration →
Full list of integrations
SDKs
Community SDKs: Kotlin · Go · Java · Dart · Rust · Ruby · C++ ·
Features: what you can build
Each building block maps to events in the spec, and each has a live demo in the AG-UI Dojo.
Tool output streaming, backend tool rendering, activity progress, token usage, and custom events are covered in the docs. Here's a quick tour of the Dojo:
https://github.com/user-attachments/assets/c298eea8-3f39-4a94-b968-7712429b0c49
How it works

Your app starts a run by sending the agent a single RunAgentInput: the conversation, the tools the frontend offers, shared state, and context. The agent answers with a stream of typed events from eight families: run lifecycle, text messages, tool calls, state, reasoning, activity, subagents, and custom events (full list). Only the run lifecycle is required, so a minimal agent emits a handful of events and grows from there.
AG-UI is transport-agnostic. The spec defines HTTP + SSE and a binary HTTP + Protobuf binding, and middleware can adapt events from any source. Read the architecture overview for the full picture.
Event reference
AG-UI 1.0 defines 31 event types in eight families. See the spec for every field.
Community
- Questions and ideas: Discord and GitHub Discussions
- Bugs: GitHub Issues
- What's next: the roadmap and the
Contributing
Contributions are welcome: new integrations, SDKs, docs, and fixes. Start with CONTRIBUTING.md, and use the server starter and middleware starter as templates for new integrations. Report security issues as described in SECURITY.md.
AG-UI was created by CopilotKit and is developed in the open with the community.
License
AG-UI is open source under the MIT License.