Skip to content
Agent UI

React components for agent applications

Build interfaces that think, act, and respond.

From a first streamed token to a completed tool run. A component system for agent conversations and generated experiences, built on React and designed to be yours.

React and TypeScript Tailwind CSS Provider agnostic
Agent UI / PlaygroundInteractive preview
Design review assistant
Ready
Can you review the release status?

The component library is in review. The next step is to run checks and verify the responsive layouts before release.

Local interactive demo, no AI backend

The details that make agent interfaces feel complete.

Build the entire interaction, not just the message bubble. Each piece has a clear purpose and composes with the rest.

Browse the catalog

Built for developers

Your model. Your logic. Your interface.

Agent UI doesn't decide how your model works. Pass your own conversation state and callbacks, then replace the sample response with a real stream. The component interface stays the same.

Start with the pieces

Use a primitive, a full chat surface or one of the provider composer examples.

Wire it to your agent

Pass messages, an async streaming iterator, and your existing model backend.

Own the experience

Style the components, register generated-UI blocks and handle actions in your app.

See the streaming API
conversation.tsxReact · TypeScript
tsx
import { ChatShell, useChat } from "@agent-ui/react";
 
export function Conversation() {
const chat = useChat({
onSend: async (text) => {
const response = await fetch("/api/chat", {
method: "POST",
body: JSON.stringify({ text }),
});
if (!response.ok) throw new Error("Request failed");
return response.text();
},
});
 
return (
<ChatShell
messages={chat.messages}
isStreaming={chat.isStreaming}
onSend={chat.send}
onStop={chat.stop}
error={chat.error}
/>
);
}
Source-based workspace exampleDocumentation

Explore the library.

A searchable catalog with examples, API references, and copyable code.

Documentation

84 documented entries, including reference components and 15 provider-specific compose examples.

Generative UI

Responses can become interfaces.

The OpenUI adapter lets you render model-generated structured content using components you register and trust. Keep the chat layout, tools and action policies under your control.

See the integration guide

Structured blocks

Cards, metrics, forms and more, using your approved components.

Controlled actions

Events are handled by your application; generated content doesn't get unrestricted access.

Integration pattern

<ChatShell
  messages={chat.messages}
  renderMessage={(message) =>
    <OpenUIMessage
      renderer={Renderer}
      library={library}
      response={message.content}
    />
  }
/>

Illustrative composition; install and configure the official OpenUI renderer separately.

One foundation. Different conversations.

Adapt the familiar affordances of leading AI products using composable provider blocks.

All 15 provider examples

Frequently asked questions

What is Agent UI?

Agent UI is a React component library for conversation interfaces, tool activity, provider selection, and reusable agent application blocks. The repository includes a component gallery and copyable provider compose examples.

Is a model or backend included?

No. The components work with your existing backend. The public previews use local example responses so you can try the interfaces without API keys.

Can I show generated interfaces in a conversation?

Yes. An optional OpenUI renderer adapter can display a registered component library inside ChatShell. Your app supplies the official OpenUI runtime, component definitions, and explicitly permitted actions.

How do I start using the components?

Browse the live gallery and API documentation, then use the source package within the monorepo or copy provider blocks through the registry. Verify dependency and publishing status before installing from a public package registry.

Build the interface around your agent.

Explore real examples, inspect the source and start composing your own.

Open component gallery