
CopilotKit
Add in-app AI copilot chat and actions to any React application
Replaces Vercel Ai Sdk, Microsoft Copilot Studio, Google Vertex Ai Agent Builder

Who it's for
Use CopilotKit to wire chat, state, and tool actions into an existing React or Angular product.
Skip if your AI feature is only a backend batch job with no user-facing assistant.
Use shared state and generative UI patterns when agents need to change interface elements during work.
Skip if plain chat completion is enough.
The problem
Embedding AI into an app takes more than streaming text from an LLM. The assistant needs UI state, tool calls, confirmation flows, generated interface updates, and a frontend that feels native to the product.
How it works
CopilotKit provides chat UI, message streaming, tool calls, and agent responses for frontend applications.
Agents can generate and update UI components dynamically while reading and writing shared application state.
The README describes flows where agents pause to request user input, confirmation, or edits before continuing.
Features
- Agent-native UI components
- Generative UI and shared state
- Human-in-the-loop workflows
How to install
Start with the official CopilotKit scaffold when you want a frontend wired to an AG-UI compatible backend quickly.
npx copilotkit@latest createAfter the scaffold finishes, add your model provider key and connect the generated app to the agent runtime you want to use.
Recommended for this setup
Strengths
- Purpose-built for in-app copilots: CopilotKit handles app context, frontend components, and agent interaction patterns that generic LLM APIs leave to the product team.
- MIT-licensed React and Angular stack: The MIT license makes it practical for commercial product teams building assistant interfaces into their own apps.
Trade-offs
- Frontend-focused layer: CopilotKit helps build the user-facing agent experience, but teams still need model providers, backend tools, permissions, and production safety design.
Tech stack
FAQ
CopilotKit is an SDK for building agentic applications, generative UI, and chat features in frontend apps.
The README positions CopilotKit for React and Angular applications.
CopilotKit replaces custom in-app AI assistant plumbing around chat UI, shared state, tool rendering, and confirmation flows.