Loading AgentsKit ecosystem navigation…
AgentsKit Chat
Get started

Ink quick start

Terminal / TUI shell — same definition, keyboard-first UX.

View canonical Markdown

Ink quick start

Terminal is a first-class surface, not a demotion of the web app.

Install

code
pnpm add @agentskit/chat @agentskit/core @agentskit/ink ink react

Shell

code
import { render } from 'ink'
import { AgentChat } from '@agentskit/chat/ink'
import { createSupportChat } from './support-chat'
import { adapter } from './adapter'

render(
  <AgentChat
    definition={createSupportChat(adapter)}
    placeholder="Ask about the product"
  />,
)

Semantic fallbacks keep interactive components usable without graphics. Keyboard flows: arrows / numbers + Enter for choices; /retry, /edit, /regenerate for lifecycle.

Run the monorepo example

code
pnpm --filter @agentskit/chat-example-ink start

Next