LibreAI / Dev Tools / ag-ui
// devtools · ag-ui-protocol/ag-ui

ag-ui

Open, event-based protocol that connects AI agents to user-facing apps with streaming and shared state.

★ 16.4k stars⑂ 1.5k forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

ag-ui is an open-source dev tools project by ag-ui-protocol (ag-ui-protocol/ag-ui on GitHub). It has 16,391 GitHub stars and 1,492 forks, is released under the MIT license, and was last updated on GitHub on 8 October 2026.

GitHub stars
16,391
Forks
1,492
License
MIT
Last updated on GitHub
8 October 2026
Category
Dev Tools
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Decide what your agent should show users

    Pick the interaction you need first: streaming chat, shared state between agent and UI, frontend tool calls, or human-in-the-loop approval steps.

  2. Create a starter app

    Scaffold a new AG-UI application with the create-ag-ui-app tool, or add AG-UI to an existing agent built on a supported framework such as LangGraph or CrewAI.

  3. Wire the event stream

    Connect your agent backend to the frontend over a transport such as SSE or WebSockets, using the reference HTTP implementation and the standard event types.

  4. Run and iterate in the Dojo

    Open the AG-UI Dojo examples to see each building block in 50-200 lines of code, then adapt one to your own agent and UI.

// features

Why people love it

Standard event types

Agent backends emit events compatible with roughly 16 standard AG-UI event types, so any compliant frontend can render agent runs consistently.

Real-time agentic chat

Streaming chat is a core feature, letting users watch tokens and progress as the agent works rather than waiting for a final answer.

Bi-directional state sync

Application state is synchronized in both directions, so the agent and the user can both read and update a shared view of the work.

Generative UI

The protocol supports generative UI and structured messages, letting agents render rich components instead of plain text only.

Frontend tool integration

Agents can call tools that live in the frontend, so an agent can trigger actions in the app the user is already looking at.

Human-in-the-loop

Built for collaboration patterns where a person reviews, edits or approves agent steps before the agent continues.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Clone the protocol repo to explore the spec, SDKs and the Dojo example apps locally.

    git clone https://github.com/ag-ui-protocol/ag-ui.git
    cd ag-ui
  2. Scaffold a new app

    Create a fresh AG-UI application in seconds with the official scaffolding command from the README.

    npx create-ag-ui-app my-agent-app
  3. Explore the Dojo

    Run or browse the Dojo building-block examples in the repo to see each AG-UI feature in a small, focused app.

    cd apps/dojo  # see README for the exact command
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains AG-UI?

The ag-ui-protocol open-source organization maintains it; it grew out of CopilotKit's agent-interactivity work and has first-party and community contributors across many frameworks.

Is AG-UI free to use?

Yes. It is open source under the MIT license, which permits commercial use, modification and distribution.

Does AG-UI need a paid API key?

AG-UI itself is just a protocol and needs no key. The agent you connect behind it will use whatever model provider you choose, which may require your own API key.

How does AG-UI compare with MCP or A2A?

They are complementary: MCP gives agents tools, A2A lets agents talk to other agents, and AG-UI brings agents into user-facing applications.

How do I get started?

Run npx create-ag-ui-app my-agent-app, or open the AG-UI Dojo to copy a small working example for your framework.

// keep exploring

Similar tools

Dev Tools

ai

Vercel's AI SDK: the TypeScript toolkit for building AI apps and agents with any model provider

★ 27.2k starsNOASSERTION
View guide →
Dev Tools

rust-sdk

rmcp: the official Rust SDK for the Model Context Protocol — tokio-based servers and clients

★ 4.0k starsNOASSERTION
View guide →
Dev Tools

CopilotKit

The frontend stack for AI agents and generative UI in React, Angular, mobile and chat apps

★ 37.8k starsMIT
View guide →
Dev Tools

cocoindex-code

Lightweight AST-based semantic code search CLI (ccc) that makes coding agents faster and cheaper

★ 2.8k starsApache-2.0
View guide →
Dev Tools

memorax-code

Shared memory for coding agents: lessons, repo knowledge, and your preferences, carried across sessions.

★ 2.1k starsMIT
View guide →
Dev Tools

cavemem

Persistent memory for coding agents — frozen, but its core lives on in Caveman.

★ 678 starsMIT
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if ag-ui is not the right fit.

Get ag-ui

Free and open — grab the source, star the repo, and start creating.