TL;DR
A2UI (Agent-to-User Interface, a2ui-project/a2ui) is Google’s open-source generative UI framework. It lets an agent answer with an interactive screen (a form, a card, a chart, a picker) instead of a wall of text. The agent never sends code. It sends JSON that describes which components to show, drawn from a catalog the app owner controls. The app then renders those components natively in React, Angular, Lit, Flutter, SwiftUI or Jetpack Compose.
Last verified: December 1, 2026, against the GitHub repository, PyPI, npm and Google’s 1.0 announcement.
Facts as of December 1, 2026:
- 19,135 GitHub stars, 1,521 forks; repository created September 24, 2025
- Apache-2.0 license, started by Google
- Protocol 1.0 became the current version on November 11, 2026. v0.9 and v0.9.1 are listed as “previous” and v0.8 as deprecated in the repo’s
specification/versions.json - Latest packages:
a2ui-agent-sdk0.12.1 anda2ui-core0.7.1 on PyPI (both released November 23, 2026),@a2ui/reactand@a2ui/web_core0.16.1 and@a2ui/agent0.2.1 on npm, plus A2UI CLI v0.5.0 and Swift 0.12.0 - 312 open issues (not counting pull requests)
- It is on GitHub’s weekly trending list this week
We ran the Python agent SDK in a throwaway container (details below). Install, building a screen, generating the system prompt and parsing a model reply all worked. The README’s own v1.0 builder example, copied as written, fails the SDK’s own validator. The fix is one argument.
Our verdict: A2UI is the most serious attempt so far to standardize “the agent answers with UI” without letting the model write executable code. The security model (data, not code, against a whitelist catalog) is right. The multi-platform renderers are real, and Atlassian, Alation, ByteDance and Bloomberg are named adopters. Adopt it if the same agent must reach web and mobile, or if a third-party agent renders inside your app. Wait if you have one React frontend and a tool-call-to-component mapping already works. The SDKs are still pre-1.0 and the docs lag behind the code.
What problem A2UI solves
Today most agents answer in Markdown. That’s fine for an explanation. It’s poor for comparing three flights, approving a plan with ten line items, or filling a form. Google’s 1.0 announcement compares agents to computers in the terminal era: capable, but answering almost everything in text.
The obvious workaround is to let the model write HTML or React and run it in a sandbox. A2UI rejects that. The README states the principle: “A2UI expresses UI using data, not code.” The app developer publishes a catalog of components (Text, Button, Card, TextField, ChoicePicker and so on, or their own design-system pieces). The agent can only compose components from that catalog. The renderer validates every message against the schema before drawing anything.
The README recommends it when parts of your app are agent-driven, when the same agent must stream UI to several platforms, when you want native rendering without WebViews, and when the agent is remote or third-party and must not touch card numbers, PII or functions it wasn’t granted. That last case sets it apart: A2UI is built for agents you don’t fully trust.
How it works
The README describes three layers:
- Inference. A model (or a “decision model” that picks components instead of writing text) produces a UI description in an inference format. The default is A2UI Express, a compact notation that the SDK compiles to JSON. Direct JSON is the alternative.
- Transport. The agent SDK parses the model’s output, validates it, expands macros and converts it into wire messages:
createSurface,updateComponents,updateDataModelanddeleteSurface. - Rendering. A core library (
@a2ui/web_core,a2ui_corefor Dart) keeps an in-memory model of the UI and its data. A framework adapter (@a2ui/react,a2ui_flutterand others) maps it to native widgets. The catalog defines what may appear.
Components arrive as a flat list in which parents reference children by ID, rather than a nested tree. That makes streaming and partial updates simple: the agent can send a new value for one component, or a new data model path, without resending the whole screen. Data binding uses paths like /user/email, so values can be bound on the server and, as Google’s announcement puts it, “sensitive values never reach the model.”
What 1.0 added, per the announcement: bidirectional function calls (a picker can call back to check availability on the spot), accessibility attributes, extensions for extra metadata, and support for several catalogs on one surface.
The smallest real example
The Python packages are the most complete agent-side SDK. a2ui-core holds the protocol models and validation; a2ui-agent-sdk adds catalogs, prompt generation and parsing.
pip install a2ui-agent-sdk # pulls in a2ui-core
Building a screen from code
The builder API lets you write the UI as nested Python objects. flatten() assigns IDs and turns it into the flat wire format. This is the v1.0 example from the builder README, with one change we had to make (see the hands-on section): the top component gets id="root".
from a2ui.builder.v1_0 import (
Action, ActionEvent, Button, Card, Column, DataBinding, Text, TextField,
)
from a2ui.core.schema.v1_0 import CreateSurface, CreateSurfaceMessage
from a2ui.core.basic_catalog import BasicCatalog
from a2ui.core.schema import ProtocolVersion
from a2ui.utils import validate_payload
cat = BasicCatalog(ProtocolVersion.V1_0)
tree = Card(
id="root", # the renderer looks for a component with this id
child=Column(children=[
Text(text="Account Overview", variant="body", weight=1.0),
TextField(label="Email", placeholder="[email protected]",
value=DataBinding(path="/user/email")),
Button(child=Text(text="Save"),
action=Action(event=ActionEvent(
name="save_profile", user_message="Profile saved"))),
]),
)
msg = CreateSurfaceMessage(create_surface=CreateSurface(
surface_id="surface_main",
catalog_id=cat.catalog_id,
components=tree.flatten(),
)).model_dump(by_alias=True, exclude_none=True, mode="json")
validate_payload([cat], [msg]) # raises if a renderer would reject it
validate_payload checks the message the way a renderer holding that catalog would: schema, unknown components, unresolved references and reachability from the root.
Letting a model write the UI
The more common path: give the model a system prompt that describes the catalog, then parse and validate what it writes. Each request gets a processor negotiated from the capabilities the client sent:
from a2ui.core.basic_catalog import BasicCatalog
from a2ui.core.schema import ProtocolVersion
from a2ui.processor import A2uiGenerator, CatalogConfig
cat = BasicCatalog(ProtocolVersion.V1_0)
generator = A2uiGenerator([CatalogConfig(cat)]) # once, at startup
# per request: capabilities from the client, keyed by protocol version
processor = generator.create_processor(
{"1.0": {"supportedCatalogIds": [cat.catalog_id]}}
)
system_prompt = my_instructions + "\n\n" + processor.prompt_snippet
reply = call_your_llm(system_prompt, user_message) # any model
for part in processor.parse_response(reply):
... # TextPart for prose, A2uiPart for validated UI messages
Two details cost us a run each: for v1.0 the capabilities key is "1.0", not "v1.0" (the agent guide’s example uses the v0.9 form), and a v1.0 Button requires an action.
The SDK doesn’t depend on any model provider or agent framework. Integrations ship separately (a2ui-a2a for A2A, a2ui-adk for Google’s ADK), and TypeScript and Dart agent SDKs mirror the Python one.
Hands-on test (December 1, 2026)
We ran the Python SDK in a fresh python:3.12-bookworm container on a GitHub-hosted runner (x86_64, 2 CPUs, 8 GB RAM, no GPU), with the repository at commit 780bb6f0803d. No API key and no model were involved: we tested the parts of the SDK that run without one. The recorded run had five steps, four passed, and the whole run took 6.9 seconds.
- Install: passed, 4.4 s.
pip install a2ui-agent-sdk==0.12.1pulled ina2ui-core0.7.1. Nothing to compile. - README v1.0 builder example as written: failed, 0.7 s. The builder flattened the tree into six components with generated IDs (
root__text_1,root__textfield_1,root__text_2,root__button_1,root__column_1,root__card_1). Then the SDK’s ownvalidate_payloadrejected it:A2uiIntegrityError: Missing root component: No component has id='root'. The README shows how to build and package the message but never says the top component must be namedroot. We left this failing step in the record on purpose. - Same surface with
id="root"on the Card: passed, 0.6 s. The six components validated, and thecreateSurfacemessage came to 913 bytes on the wire. - Generate the agent system prompt: passed, 0.6 s. The default format turned out to be
ExpressFormat. The prompt snippet for the basic catalog alone was 23,054 characters (3,544 words). It starts with “A2UI Express DSL Output Contract” and grammar rules such as “The interface tree must have a single entry point assigned to the reserved variable ‘root’.” - Parse a model reply, then a bad one: passed, 0.6 s. A reply with prose plus a valid
<a2ui-json>block parsed into['TextPart', 'A2uiPart']. We then swapped the Button for a component the catalog doesn’t have,CreditCardForm. The parser rejected it:A2uiValidationError ... Unrecognized component type 'CreditCardForm'. That is the security model working: the agent can’t invent UI that the app owner didn’t register.
How we got there: this is our fourth run. The first used the README example as written and hit the root failure in step 2. The second and third failed on our own mistakes: we keyed capabilities "v1.0" instead of "1.0", and we left the required action off a Button. All earlier runs are listed in the record.
What the project’s own pages don’t tell you:
- The prompt is big. About 23,000 characters of grammar and catalog description go into every system prompt before your own instructions. A custom catalog adds more.
ComponentPruningTransformercan cut unused components, and it’s worth using. - The docs disagree with the code about the default format. The agent development guide calls Direct JSON “the default” and says it is the only format that streams. The
A2uiGeneratorsource and our run both default to Express, and the SDK README says both formats stream. Setinference_format_factoryexplicitly rather than relying on either. - We didn’t test a model. Whether your model reliably writes valid Express or JSON is the real question. Our run says only that the validator catches it when it doesn’t.
Ecosystem and adoption
Renderers listed in the README and the 1.0 post: React, Angular and Lit on the web; Flutter for mobile, web and desktop; SwiftUI on iOS; Jetpack Compose on Android. Compose is at protocol 0.9.1 with 1.0 “coming soon”. ByteDance shipped a renderer for its Lynx framework in June 2026, which supports 0.9 for now.
Google’s 1.0 post names adopters: Atlassian (Jira agents ask follow-up questions as interactive cards in the work item), Alation (metric and chart feeds that render the same in Alation and inside Claude), ByteDance (the Lynx renderer), Bloomberg (named, no details), and Google itself: Gemini Enterprise renders registered A2UI agents (0.9.1 for now).
A2UI also runs inside MCP Apps. The web and Flutter renderers work there, so an A2UI screen can appear in assistants that host MCP Apps, such as Claude and Gemini. Transport is separate: A2UI describes what to draw, and AG-UI (CopilotKit’s event protocol) or A2A can carry it. CopilotKit hosts the A2UI Playground and builds on 1.0.
Community reactions
The Hacker News launch thread (“A2UI: A Protocol for Agent-Driven Interfaces”, December 2025) was skeptical: cross-platform UI has defeated developers for decades. One commenter: “Maybe this works for simple use cases but beyond that I’m skeptical.” Others asked whether agents need UI at all, rather than just finishing the task.
On Reddit the tone is more builder-oriented. Launch threads in r/LocalLLM and r/AI_Agents explained the catalog model. Later posts show people wiring A2UI into their own agents (one r/AI_Agents post turned a self-hosted assistant into a CRM with generative UI), and the 1.0 release was shared in r/FlutterDev under the headline of agent-generated UI rendered as native widgets.
Our read: the skepticism fits “the agent designs your app” but not what A2UI actually is. A2UI is closer to server-driven UI with an LLM as the server. The app team still designs the components, and the agent arranges them inside rules.
Honest limitations
- The SDKs are pre-1.0 even though the protocol is 1.0.
a2ui-agent-sdkis 0.12.1 and@a2ui/agentis 0.2.1. Expect API churn: the Python core already dropped v0.8 support. - Docs lag the code, as our hands-on run showed (the
rootrule, the default format, the capabilities key). - Version spread across renderers. Compose, Lynx and Gemini Enterprise are still on 0.9.x. If you target several hosts you’ll negotiate versions for a while. The SDK supports that, but it’s extra work.
- Model quality is your problem. The validator rejects bad output; it can’t make a weak model produce good layouts. Express exists partly because JSON is expensive and error-prone for models to write.
How it compares
| A2UI | AG-UI | MCP Apps | Model writes HTML/React | |
|---|---|---|---|---|
| What the agent sends | JSON (or Express) describing catalog components | Typed events (text, tool calls, state) | A UI resource rendered in a sandboxed iframe | Code |
| Rendering | Native, using the app’s own components | Whatever your frontend does | HTML in the host | Sandboxed web view |
| Agent can run code in the client | No | No | Inside the iframe | Yes |
| Cross-platform native | Web, Flutter, SwiftUI, Compose | Transport only | Web-first | Web only |
| Best for | Untrusted or remote agents, multi-platform apps | Streaming agent state into your own UI | Tool UIs inside assistants like Claude | Prototypes |
These are layers more than rivals: AG-UI or A2A can carry A2UI messages, and A2UI screens can live inside an MCP App.
FAQ
Is A2UI made by Google?
Yes. Google started it and publishes it under Apache-2.0 in the a2ui-project GitHub organization. Other companies build on it: CopilotKit hosts the A2UI Playground, and ByteDance maintains a renderer for its Lynx framework.
Is A2UI safe to use with third-party agents?
That is its design goal. The agent sends data, not code, and can only use components from catalogs the app registered. In our test the parser rejected a component outside the catalog (Unrecognized component type 'CreditCardForm'). You still have to decide which actions and functions you expose. A button that calls a dangerous function is dangerous whoever drew it.
What is the difference between A2UI and AG-UI?
AG-UI is a transport: an event stream between an agent backend and a frontend (text tokens, tool calls, state patches). A2UI describes UI. AG-UI can carry A2UI payloads through middleware, so you can use both.
Do I need Gemini or Google Cloud?
No. The agent SDKs don’t depend on any model provider. The system prompt is plain text that you send to any model. Google’s ADK and Gemini Enterprise integrations are optional.
Which renderer should I start with?
React or Lit on the web, Flutter for mobile and web from one codebase, SwiftUI on iOS. Compose on Android is still on protocol 0.9.1.
Does A2UI stream?
Yes, at the protocol level: components and data model updates arrive incrementally. On the agent side, the Python SDK README says both Direct JSON and Express stream through open_stream, though the agent guide says only Direct JSON does. Test with your chosen format before you rely on token-by-token rendering.
Verdict
A2UI gets the hard part right: an agent can produce a rich interface without the app ever running code the agent wrote, and the same output renders natively on web and mobile. The renderers are broad, the validation is strict (it caught our mistakes and an invented component in under a second), and the adopter list is credible for a protocol barely a year old.
The rough edges are on the developer side: SDKs still in 0.x, docs that disagree with the code, and a large system prompt. Use it now if you build agent features into an existing product, especially across platforms or with agents you don’t control. Pin SDK versions and set the inference format explicitly. If you only need a chat UI with a few custom widgets in one React app, a direct tool-call-to-component mapping is still less work today.
Sources
- A2UI GitHub repository
- A2UI website and documentation
- A2UI v1.0 specification
- A2UI 1.0 announcement, Google Developers Blog (November 11, 2026)
- Python agent SDK README
- Python agent development guide
- a2ui-agent-sdk on PyPI
- @a2ui/react on npm
- A2UI roadmap
- Hacker News: A2UI: A Protocol for Agent-Driven Interfaces