CopilotKit
Documentation

CopilotKit

The frontend stack for agentic user experience.

Build production chat, generative UI, shared state, and human-in-the-loop workflows on any AG-UI compatible backend.

Build your agent's user experience

Pick the UI primitive that matches the product surface you are building.

Drop in a chat surface where your users already work.

Use CopilotChat, CopilotSidebar, or CopilotPopup when you want a complete agent UI out of the box.

example.tsxtsx
import { CopilotChat } from "@copilotkit/react-core/v2";export function SupportAssistant() {  return (    <CopilotChat      labels={{        modalHeaderTitle: "Product assistant",        welcomeMessageText: "What should we work on?",      }}    />  );}

Build with any agent backend

Start with CopilotKit's default agent or open the docs for a partner framework.