All Repos
Coding AssistantsTypeScriptMIT

assistant-ui

assistant-ui/assistant-ui Β· Updated

Typescript/React Library for AI Chat πŸ’¬πŸš€

assistant-ui/assistant-ui is a TypeScript repository in the Coding Assistants category with 12,812 stars and 1,281 forks on GitHub, released under the MIT license, last updated today.

#ai-chatbot#base-ui#chatbot#conversational-ai#copilot#radix-ui#react-chatbot#shadcn
View on GitHub 13kGitHub stars

How to install assistant-ui in your AI client

Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code β€” copy-paste ready.

How to install assistant-ui in Claude CodeAnthropic's agentic CLI

  1. Clone & open

    bash
    git clone https://github.com/assistant-ui/assistant-ui.git
    cd assistant-ui
    claude
  2. Let Claude read it

    Ask β€œ/init” to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.

Documentation

Full README

Product Β· Documentation Β· Examples Β· Discord Β· Contact Sales

The UX of ChatGPT in your React app πŸ’¬πŸš€

assistant-ui is an open-source TypeScript/React library to build production-grade AI chat experiences fast.

Installation

The fastest path is the CLI, which scaffolds a Next.js app or adds the styled components to an existing project:

bash
npx assistant-ui@latest create   # new project
npx assistant-ui@latest init     # add to existing project

Or install the packages directly:

bash
npm install @assistant-ui/react @assistant-ui/ai-sdk ai

Usage

tsx
"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>
  );
}

useChatRuntime connects to the Vercel AI SDK out of the box. Swap it for useLangGraphRuntime, useDataStreamRuntime, or any custom runtime to integrate with your own backend.

What you get

  • Composable primitives: build any chat UX from Thread, Message, Composer, ThreadList, ActionBar, and friends. Style every pixel yourself, or start from a polished shadcn/ui theme that the CLI copies into your project.
  • Production UX out of the box: streaming, auto-scroll, retries, attachments, markdown, code highlighting, voice dictation, keyboard shortcuts, and accessibility.
  • Generative UI: render tool calls and JSON as React components, collect inline human approvals, and expose safe frontend actions to the model.
  • Strong TypeScript: typed runtime APIs, tool schemas, message parts, and adapters end to end.

Backends

More Coding Assistants repositories

Catalog data refreshed . Something wrong? Report it.