Get started
React quick start
Render an AgentsKit Chat definition with the native React shell.
React quick start
Define once. Render with @agentskit/chat/react.
Install
code
pnpm add @agentskit/chat @agentskit/core @agentskit/react reactDefinition
code
import { defineChat } from '@agentskit/chat'
import type { AdapterFactory } from '@agentskit/core'
export const createSupportChat = (adapter: AdapterFactory) =>
defineChat({
id: 'support',
chat: {
adapter,
systemPrompt: 'Help users understand the product.',
},
})Shell
code
import { AgentChat } from '@agentskit/chat/react'
import { createSupportChat } from './support-chat'
import { adapter } from './adapter'
import '@agentskit/react/theme'
export const Support = () => (
<AgentChat
definition={createSupportChat(adapter)}
placeholder="Ask about the product"
/>
)AgentChat passes definition.chat to useChat from @agentskit/react. Streaming, tools, memory, retry, edit, regenerate, confirmation, and cancel remain AgentsKit behavior.
Live on this site
Hi — this is a live AgentsKit Chat shell. Ask anything about multi-surface chat.
Adapter
Adapters come from AgentsKit providers: currently 25 native adapters spanning 140+ catalog providers and 5k+ models — Chat does not reimplement them.