# assistant-ui

> React primitives and runtime for production AI chat: streaming, threads, tool UI, attachments.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/assistant-ui

free

React primitives and runtime for production AI chat: streaming, threads, tool UI, attachments.

by Simon Farshid[GitHub](https://github.com/assistant-ui/assistant-ui)[npm](https://npmjs.com/package/@assistant-ui/react)

[visit](https://www.assistant-ui.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://www.assistant-ui.com](https://www.assistant-ui.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [AI Elements (shadcn/ui)](https://tastebase.ehsanulsiam.workers.dev/browse/ai-elements)

shadcn/ui patterns for agent interfaces: chat, messages, reasoning, tool calls, plans, citations.

no preview

### [prompt-kit](https://tastebase.ehsanulsiam.workers.dev/browse/prompt-kit)

Small shadcn registry of AI chat parts: prompt input, markdown, code block, reasoning, loaders.

no preview

### [shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)

Copy-in React components on Tailwind, built on Base UI, Radix or React Aria, plus a registry CLI.

no preview

### [affectUI](https://tastebase.ehsanulsiam.workers.dev/browse/affect-ui)

React components, screens and illustrations for AI agent products, each one self-contained .tsx file with no dependencies.

## For your agent

##### Install

`npx assistant-ui@latest init`

##### Use it for

- a full ChatGPT-style assistant with thread list, branching, edit, retry and attachments
- rendering tool calls as React components and collecting human approval inline
- a chat front end for a non-Vercel backend (LangGraph, AG-UI, A2A, custom streams) through runtime adapters

##### Skip it when

- a single chat box or one streamed answer: shadcn ai-elements or prompt-kit are less machinery
- you want every piece as plain components you wire to useChat yourself: use ai-elements
- non-React: none of the agent kits here cover Vue or Svelte; build on nuxt-ui or shadcn-svelte

##### What's inside135 free

- Action Bar
- Assistant Modal
- Attachment
- Branch Picker
- Chain Of Thought
- Composer
- Error
- Message
- Selection Toolbar
- Suggestion
- Thread List
- Thread
- Activity Graph
- Agent Card
- Handoff
- Agent Plan
- Agent Status
- Approval Card
- Artifact Card
- Assistant Sidebar
- Background Runs
- Canvas
- Chart
- Chat Panel
- Checkpoints
- Code Diff
- Code Runner
- Command Palette
- Comparison
- Attachments
- Context
- Mentions
- Models
- Slash Commands
- Composer Trigger Popover
- Dictation
- Computer Use
- Confidence
- Connection State
- Context Breakdown
- Context Display
- Search In Conversation
- Cost Meter
- Data Table
- Timestamps
- Diagram
- Directive Text
- Document Reference
- Draft Restore
- Edit A Sent Message
- Elicitation Form
- Empty State
- Error State
- Feedback Dialog
- File Tree
- File
- Flow Graph
- Follow-up Suggestions
- Generative UI
- Geo Map
- Guardrail Notice
- Heat Graph
- Image Gallery
- Image Generation
- Image
- Inline Citation
- Job Progress
- Launcher
- Link Preview
- Loader
- Model Logos
- Map
- Markdown Text
- Math
- MCP Config Dialog
- Server Panel
- Media Player
- Memory
- Mermaid Diagram
- Message Actions
- Message Branches
- Message Pair
- Message Queue
- Message Timing
- Mobile Composer
- Model Selector
- Number Ticker
- Onboarding
- Option List
- Orb
- Permission Grant
- Prompt Library
- Question Flow
- Quota Banner
- Quote
- Read Aloud
- Reasoning Effort
- Reasoning
- Recommendation Card
- Regenerate With
- Research Report
- Retrieval Chunks
- Reviewable Diff
- Run Activity
- Schedule
- Score Breakdown
- Scroll Anchor
- Settings
- Shared Conversation
- Shiki Highlighter
- Sources
- Speaker Identity
- Spec Sheet
- Stopped Run
- Streaming Text
- Subagent List
- Syntax Highlighter
- Task Card
- Terminal Block
- Thinking Indicator
- Thread List Sidebar
- Thread Search
- Timeline
- Todo List
- Tool Call
- Tool Failure
- Tool Fallback
- Tool Group
- Tool Timeline
- Tooltip Icon Button
- Trace Waterfall
- Typing Indicator
- Voice Conversation
- Web Preview
- Web Search

##### Facts

**Frameworks**
react

**Styling**
copy-in

**Weight**
medium

**Accessibility**
ok

**Maturity**
stable

**License**
MIT

**Price**
Free

##### Pairs with

[shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)

##### Alternatives

[AI Elements (shadcn/ui)](https://tastebase.ehsanulsiam.workers.dev/browse/ai-elements)[prompt-kit](https://tastebase.ehsanulsiam.workers.dev/browse/prompt-kit)

[Compare assistant-ui with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/assistant-ui-alternatives)

```
"use client"
import { AssistantRuntimeProvider } from "@assistant-ui/react"
import { useChatRuntime } from "@assistant-ui/ai-sdk"
import { Thread } from "@/components/assistant-ui/elements/thread.aui"

export function Chat() {
  const runtime = useChatRuntime()
  return (
    <AssistantRuntimeProvider runtime={runtime}>
      <Thread />
    </AssistantRuntimeProvider>
  )
}
```

https://www.assistant-ui.com/examples

This site doesn't allow being shown inside another page. Here is how it looks.

[Open in a new tab](https://www.assistant-ui.com/examples?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

[Visit](https://www.assistant-ui.com/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
