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.
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
Clone & open
bashgit clone https://github.com/assistant-ui/assistant-ui.git cd assistant-ui claudeLet Claude read it
Ask β/initβ to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.
How to install assistant-ui in Claude DesktopDesktop app (MCP config)
Clone the repository
bashgit clone https://github.com/assistant-ui/assistant-ui.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install assistant-ui in CursorAI-first code editor
Clone & open in Cursor
bashgit clone https://github.com/assistant-ui/assistant-ui.gitIndex & chat
Open the folder β Cursor indexes it automatically. Use @Codebase in chat to ask about it or scaffold from it.
How to install assistant-ui in Codex CLIOpenAI coding agent
Clone
bashgit clone https://github.com/assistant-ui/assistant-ui.gitPoint Codex at it
Run codex in the repo root; add setup notes to AGENTS.md so the agent knows how to build & test.
How to install assistant-ui in WindsurfCodeium's agentic IDE
Clone & open
bashgit clone https://github.com/assistant-ui/assistant-ui.gitUse Cascade
Windsurf indexes the workspace; ask Cascade to explain or reuse modules from the repo.
How to install assistant-ui in ClineVS Code autonomous agent
Clone the repository
bashgit clone https://github.com/assistant-ui/assistant-ui.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install assistant-ui in VS CodeCopilot / MCP support
Clone the repository
bashgit clone https://github.com/assistant-ui/assistant-ui.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
Documentation
Full READMEProduct Β· 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:
npx assistant-ui@latest create # new project
npx assistant-ui@latest init # add to existing projectOr install the packages directly:
npm install @assistant-ui/react @assistant-ui/ai-sdk aiUsage
"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
- Coding Assistants144k
system-prompts-and-models-of-ai-tools
FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sourced) System Prompts, Internal Tools &β¦
GPL-3.0x1xhlol/system-prompts-and-models-of-ai-tools
- Coding Assistants144k
spec-kit
π« Toolkit to help you get started with SDD or any other process!
PythonMITgithub/spec-kit
- Coding Assistants142k
ui-ux-pro-max-skill
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
PythonMITnextlevelbuilder/ui-ux-pro-max-skill
- Coding Assistants42k
chatbox
Powerful AI Client
TypeScriptGPL-3.0chatboxai/chatbox
- Coding Assistants38k
CopilotKit
The Frontend Stack for Agents & Generative UI. React, Angular, Mobile, Slack, and more. Makers of the AG-UI Protocol
TypeScriptMITCopilotKit/CopilotKit
- Coding Assistants33k
context-mode
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.
TypeScriptmksglu/context-mode
Catalog data refreshed . Something wrong? Report it.