Product · Documentation · Examples · Discord Community · Contact Sales
assistant-ui is an open source Typescript/React library for AI chat.
The library handles essential chat features such as auto-scrolling, accessibility, and real-time updates, while providing easy integration with LangGraph, AI SDK and custom backends.
The API of assistant-ui is inspired by libraries like shadcn/ui and cmdk. Instead of a single monolithic chat component, developers get primitive components that can be fully customized.
We have wide model provider support (OpenAI, Anthropic, Mistral, Perplexity, AWS Bedrock, Azure, Google Gemini, Hugging Face, Fireworks, Cohere, Replicate, Ollama) out of the box and the ability to integrate custom APIs.
You can get started by running npx assistant-ui create
(new project) or npx assistant-ui init
(existing project) in your terminal.
- shadcn/ui
- Radix UI-inspired primitives for AI Chat
- Beautiful shadcn/ui theme to get you started
- Chat UI
- Streaming, Auto-scrolling, Markdown, Code Highlighting, File Attachments, and more
- Keyboard shortcuts and accessibility features
- Generative UI
- Map LLM tool calls and JSONs to custom UI components
- Frontend tool calls
- Let LLMs take action in your frontend application
- Human tool calls
- Human approvals and input collection
- Chat history and analytics
- Sign up for assistant-cloud and configure by simply setting an environment variable
- AI SDK
- First class integration into AI SDK by Vercel. Connect to any LLM provider supported by AI SDK.
- LangGraph
- First class integration into LangGraph and LangGraph Cloud. Connect to any LLM provider supported by LangChain.
- Custom
- Use assistant-ui as the visualization layer on top your own backend/streaming protocols.
The API of assistant-ui is inspired by libraries like Radix UI and cmdk. Instead of a single monolithic chat component, we give you composable primitives and a great starter configuration. You have full control over the look and feel of every pixel while leaving auto-scrolling, LLM streaming and accessibility to us.
Sample customization to make a perplexity lookalike:
Hundreds of projects use assistant-ui to build in-app AI assistants, including companies like LangChain, AthenaIntelligence, Browser Use, and more.
With >50k+ monthly downloads, assistant-ui is the most popular UI library for AI chat.
- Assistant Cloud
- Chat Persistence
- React 19, Tailwind v4, NextJS 19 support
- Improved Markdown rendering performance
- LangGraph
interrupt()
support - Open in v0 support
- Improved documentation (work in progress)
- OpenAI Realtime Voice (work in progress)
- Resume interrupted LLM calls (work in progress)
- Native PDF attachment support
- Follow-up suggestions