AI chat, in the terminal.
Thread, Composer, and Message primitives for Ink. The same runtime and adapters as the web SDK, rendered in ANSI.
The setup
demo-agent ~/acme-app
model: assistant-ui · 2 messages · streaming
> what is assistant-ui?
A React library for AI chat
with the same runtime as the
web, rendered in ANSI:
## In the terminal
• markdown and tables
• syntax-highlighted code
• tool calls with live status
> search_docs · done
The primitives
19ThreadThreadListThreadListItemMessageMessagePartComposerTextInputActionBarAttachmentBranchPickerChainOfThoughtChecklistDiffErrorLoadingQueueItemStatusBarSuggestionToolCall
Composable and unstyled — the web component model, adapted to rows, cells, and ANSI.
Built for Ink
React components, ANSI color, and terminal layout. Same component model as the web SDK.
ANSI markdown
Headings, tables, links, and syntax-highlighted code via @assistant-ui/react-ink-markdown.
Shared runtime
The same engine as the web and React Native SDKs. Tools and adapters carry over.