assistant-ui

www.assistant-ui.com

Open-source TypeScript/React library for building ChatGPT-style AI chat UIs with streaming, tool-call UI and approvals.

GitHub stars
13,385
License
MIT
Language
TypeScript
Pricing
Open source
Published
Nov 16, 2026

Next steps

What it does

assistant-ui is an MIT-licensed TypeScript/React library for production AI chat experiences. Composable primitives (Thread, Message, Composer, ThreadList, ActionBar) let you build any chat layout or start from a shadcn/ui theme copied in by the CLI. Streaming, auto-scroll, retries, attachments, markdown, code highlighting, voice dictation, keyboard shortcuts and accessibility come built in, and generative UI renders tool calls and JSON as React components with inline human approvals. Runtime adapters cover the Vercel AI SDK, LangGraph, AG-UI/A2A, Google ADK and custom backends; React, Vue, React Native and Ink are supported. assistant-cloud is an optional hosted backend for thread persistence.

assistant-ui · Image from the official website
Image from the official website

Use cases

  • Add a ChatGPT-style chat interface with streaming, attachments and markdown to an existing React or Next.js app
  • Render an agent's tool calls as React components and collect inline human approvals
  • Reuse one chat runtime across web (React, Vue), React Native and terminal (Ink) front ends

Frequently asked questions

What is assistant-ui?
assistant-ui is an open-source TypeScript/React library for building production-grade AI chat interfaces, with composable primitives such as Thread, Message, Composer and ThreadList.
Which backends does it work with?
It ships adapters for the Vercel AI SDK, LangGraph/LangChain, AG-UI and A2A protocols, Google ADK, OpenCode and custom data-stream backends.
Is it free?
The library is MIT licensed and free, including for commercial products. assistant-cloud is an optional hosted backend for thread history and storage, with a free tier.
How do I start?
Run npx assistant-ui@latest create for a new Next.js project, or npx assistant-ui@latest init to add the components to an existing project.
Log in to join the discussion