CopilotKit connects agents built on any framework to user-facing apps, adding chat, generative UI, shared state and human-in-the-loop approvals in React, Angular, Vue, React Native, Slack and Teams. It is built on the AG-UI protocol.
Overview
CopilotKit is an open-source stack for putting AI agents in front of real users. You bring an agent you have already built, on a framework such as LangGraph, CrewAI, Mastra, Google ADK or PydanticAI, or use its Built-in Agent. CopilotKit turns the agent's work into a product experience. Events stream over the AG-UI protocol, so the agent can show its progress, read what the user is looking at, call tools that render UI, and pause for a person to approve the next step.
The frontend side offers ready-made chat components that can be restyled through slots or replaced with a fully headless approach. A useAgent hook gives programmatic control of the agent connection. Generative UI comes in three forms: controlled (the agent picks from components you registered), declarative (the agent describes UI as an A2UI spec) and open-ended (a sandboxed MCP App). Other capabilities include shared state between agent and UI, frontend tools, voice and WebMCP, and a local Inspector overlay.
Supported surfaces include React and Next.js, Angular, Vue, React Native, and Slack and Microsoft Teams. Discord and WhatsApp are available through Channels SDK adapters. Channels JSX is written once and renders as native Block Kit in Slack and Adaptive Cards in Teams.
CopilotKit Intelligence is an optional production layer, available cloud-hosted or self-hosted on your own infrastructure such as a Kubernetes cluster, VPC or air-gapped environment. It adds Continual Learning that turns real use into reviewable Skills, conversation streams that survive reloads, user memories, and product analytics. The same team also builds OpenBot, an open-source agent workspace, and CopilotKit Soar, an early-access product for company-owned AI coworkers.
Key features
- Chat components with slots or headless mode
- Generative UI (controlled, A2UI, MCP Apps)
- Shared state between agent and UI
- Human-in-the-loop approvals
- Frontend tools
- useAgent hook for programmatic control
- Slack and Microsoft Teams channels
- Intelligence: continual learning, memories, analytics
Use cases
- Embedding an AI agent chat in a SaaS product
- Rendering agent-driven UI inside an app
- Approval workflows where agents pause for human input
- Slack and Teams agents
- Customer support agents with human handoff