ag_ui_adk
ADK Middleware for AG-UI Protocol
What it is and what it does
ag-ui-adk is a Python middleware that connects Google's ADK (Agent Development Kit) agents to the AG-UI Protocol, a framework for building agent-driven UIs. It translates between ADK's agent execution model and AG-UI's event-streaming interface, allowing ADK agents to power interactive frontends. The middleware handles async execution, tool invocation, and human-in-the-loop workflows where agents pause for user approval before resuming.
The package provides two main integration paths: direct usage for embedding agents in Python code, and a FastAPI endpoint for server-based deployments. It depends on fastapi, aiohttp, uvicorn, pydantic, and other async-capable libraries. The middleware is actively maintained, has no known vulnerabilities, and is designed for developers building agent-driven applications that need to bridge ADK's agent capabilities with AG-UI's protocol.
Use it for:
- Deploying a Google ADK agent as a FastAPI service that streams events to an AG-UI frontend.
- Building human-in-the-loop workflows where an ADK agent pauses for user approval before executing tools.
- Integrating Gemini-powered agents into web applications using AG-UI's protocol and Dojo interface.
- Running multiple ADK agents with session management and per-user context isolation.
- Developing agent-driven UIs that combine ADK's tool calling with AG-UI's event-driven architecture.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Bridges Google ADK agents to the AG-UI Protocol, enabling ADK-built agents to run within AG-UI's framework via middleware that handles async event streaming and tool integration.
Yes. The package is actively maintained, has no security vulnerabilities, low install friction, and a permissive MIT license. Install it if you are building an agent application that needs to bridge Google ADK agents with AG-UI's protocol—it is purpose-built for that integration. If you are not using both ADK and AG-UI, it is not applicable.
Install
ag-ui-adk on PyPI
pip
pip install ag-ui-adkuv
uv add ag-ui-adkpoetry
poetry add ag-ui-adkInstalling ag_ui_adk
Before you install
Low friction install with a pure-Python wheel. Active maintenance (last commit 2026-08-14) and recent releases. Depends on 10 runtime packages including fastapi, aiohttp, and uvicorn; all are standard, well-maintained libraries.
License in practice
MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install ag-ui-adk
from ag_ui_adk import ADKAgent
from google.adk.agents import Agent
my_agent = Agent(name="assistant", instruction="You are helpful.")
agent = ADKAgent(adk_agent=my_agent, app_name="my_app", user_id="user123")
async for event in agent.run(input_data):
print(f"Event: {event.type}")
Requires Python 3.10 or later (supports up to 3.14). Requires a Gemini API key exported as GOOGLE_API_KEY environment variable to run examples.
Verify before relying
- Whether the 271 comprehensive tests mentioned in the description are included in the PyPI distribution or only in the source repository.
- Performance characteristics and scalability limits for concurrent agent runs or high-volume tool calls.
- Whether ResumabilityConfig (HITL workflows) requires google-adk >= 1.16.0 as stated, and what happens if an older version is installed.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 10 — ag-ui-protocol, ag-ui-a2ui-toolkit, a2ui-agent-sdk, aiohttp, asyncio, fastapi, google-adk, pydantic, sse-starlette, uvicorn |
| Maintenance | actively maintained — 52 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 169,213/month — #10,427 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ag_ui_adk-0.7.0-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-langgraphBridges LangGraph agent workflows to the AG-UI…
permissive · top 15,000 on PyPI
ag-ui-protocolProvides strongly-typed Python data structures…
permissive · top 5,000 on PyPI
agent-framework-ag-uiConnects Agent Framework agents and workflows…
permissive · top 15,000 on PyPI
google-adkA Python framework for building, testing, and…
permissive · top 5,000 on PyPI
toolbox-adkEnables Google ADK agents to natively use tools…
permissive · top 15,000 on PyPI
openinference-instrumentation-google-adkAuto-instruments Google ADK applications to…
permissive · top 15,000 on PyPI
a2ui-agent-sdkProvides Python SDK components for building…
unclear · top 15,000 on PyPI
ag-ui-a2ui-toolkitProvides framework-agnostic helper functions…
permissive · top 15,000 on PyPI
google-agents-cliA CLI toolchain that equips coding agents…
permissive · top 15,000 on PyPI
vertexaiPython SDK for building, deploying, and…
permissive · top 5,000 on PyPI