ag-ui-langgraph
Implementation of the AG-UI protocol for LangGraph.
What it is and what it does
ag-ui-langgraph is a protocol adapter that connects LangGraph agent workflows to the AG-UI (Agent User Interface) protocol standard. It provides an integration layer that automatically exposes LangGraph graphs as HTTP endpoints, handling the translation between LangChain's message format and the AG-UI event model. The package handles comprehensive event streaming—including agent thinking, tool invocations, and state updates—so frontend applications can display live agent execution without building custom endpoint logic.
The package sits between your LangGraph workflow and a web client, managing protocol conversion and event delivery. It depends on langchain, langgraph, pydantic, and ag-ui protocol libraries. Installation is straightforward (pure wheel, low friction), and the API is minimal: pass your graph and a path to add_langgraph_fastapi_endpoint() and the endpoint is ready. It's designed for teams building agent UI applications that need a standard protocol bridge rather than custom streaming logic.
Use it for:
- Expose LangGraph agent workflows as HTTP endpoints without manual endpoint scaffolding.
- Stream agent thinking, tool calls, and state updates to a frontend using the AG-UI event protocol.
- Convert between LangChain message formats and AG-UI protocol automatically during request/response cycles.
- Build agent UI applications that display real-time agent execution events and state changes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Bridges LangGraph agent workflows to the AG-UI protocol, automatically generating HTTP endpoints with event streaming for agent interactions.
Yes, if you are building a web-based agent UI on top of LangGraph and want to adopt the AG-UI protocol standard. The package eliminates boilerplate for endpoint creation and event streaming. Install with confidence: MIT license, active maintenance, no known vulnerabilities, and low dependency friction. Not necessary if you are not using LangGraph or the AG-UI protocol.
Install
ag-ui-langgraph on PyPI
pip
pip install ag-ui-langgraphuv
uv add ag-ui-langgraphpoetry
poetry add ag-ui-langgraphInstalling ag-ui-langgraph
Before you install
Low install friction with a pure-wheel distribution. Marked active with a recent release cycle (56 days since last update). Depends on established packages: langchain, langgraph, pydantic, and ag-ui protocol libraries.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
from ag_ui_langgraph import add_langgraph_fastapi_endpoint
add_langgraph_fastapi_endpoint(app, graph, "/agent")
Requires Python 3.10 or later (supports up to <3.15); a LangGraph workflow graph object must be provided.
Verify before relying
- Whether the package handles concurrent agent requests or has scaling limitations
- What AG-UI protocol versions are supported and whether breaking changes are documented
- Whether message translation between AG-UI and LangChain formats covers all message types
- Whether the endpoint creation requires a specific web framework or is framework-agnostic
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — ag-ui-a2ui-toolkit, ag-ui-protocol, langchain-core, langchain, langgraph, pydantic |
| Maintenance | actively maintained — 56 days since the last release |
| First released | |
| Downloads | 801,337/month — #5,022 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ag_ui_langgraph-0.0.42-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
ag_ui_adkBridges Google ADK agents to the AG-UI…
permissive · top 15,000 on PyPI
ag-ui-protocolProvides strongly-typed Python data structures…
permissive · top 5,000 on PyPI
langchain-protocolProvides Python type definitions (TypedDict,…
permissive · top 1,000 on PyPI
agent-framework-ag-uiConnects Agent Framework agents and workflows…
permissive · top 15,000 on PyPI
aegra-apiAegra API is a self-hosted Agent Protocol…
permissive · top 15,000 on PyPI
langgraph-swarmBuilds multi-agent swarm systems where…
permissive · top 15,000 on PyPI
langgraphLangGraph is a low-level orchestration…
permissive · top 1,000 on PyPI
langgraph-supervisorBuilds hierarchical multi-agent systems where a…
permissive · top 15,000 on PyPI
langgraph-sdkPython SDK for building and deploying agentic…
permissive · top 1,000 on PyPI
ag-ui-a2ui-toolkitProvides framework-agnostic helper functions…
permissive · top 15,000 on PyPI