assistant-ui
React library for building composable AI chat interfaces with streaming support and flexible runtime adapters.
- Layered architecture with UI primitives (ThreadPrimitive, MessagePrimitive, ComposerPrimitive), context hooks, runtime layer, and pluggable backend adapters
- Supports multiple runtime options: Vercel AI SDK, LangGraph, external state stores (Redux/Zustand), AG-UI protocol, A2A protocol, or custom APIs
- Core packages include
@assistant-ui/reactfor primitives,@assistant-ui/react-ai-sdkfor AI SDK v6 integration, and@assistant-ui/react-markdownfor rendering - Built-in state access via
useAui()anduseAuiState()hooks for thread management, message appending, and run control - Designed for production use with optional cloud persistence, multi-thread management, and custom message types (tools, images, files)
assistant-ui
Always consult assistant-ui.com/llms.txt for latest API.
React library for building AI chat interfaces with composable primitives.
References
- ./references/architecture.md -- Core architecture and layered system
- ./references/packages.md -- Package overview and selection guide
When to Use
More from assistant-ui/skills
streaming
Guide for assistant-stream package and streaming protocols. Use when implementing streaming backends, custom protocols, or debugging stream issues.
1.5Kprimitives
Guide for assistant-ui UI primitives - ThreadPrimitive, ComposerPrimitive, MessagePrimitive. Use when customizing chat UI components.
1.5Ktools
Guide for tool registration and tool UI in assistant-ui. Use when implementing LLM tools, tool call rendering, or human-in-the-loop patterns.
1.5Kruntime
Guide for assistant-ui runtime system and state management. Use when working with runtimes, accessing state, or managing thread/message data.
1.4Kthread-list
Guide for multi-thread management in assistant-ui. Use when implementing thread lists, switching threads, or managing conversation history.
1.4Ksetup
Setup and configure assistant-ui in a project. Use when installing packages, configuring runtimes, setting up chat UI, or troubleshooting setup issues.
1.4K