
CopilotKit
The user-facing half of an agent: what the agent can see on the page, what it can change, and what it renders back
What is CopilotKit?
An agent that only produces text wastes the application it lives in. CopilotKit connects the two: a hook publishes part of your application state so the agent can read it, another registers a frontend function the agent may call, and a third lets the agent answer with a real React component rather than a paragraph — a form to confirm, a chart, a diff to approve. It talks to backends through AG-UI, the protocol the same team publishes, so the agent can be LangGraph, CrewAI, the Claude Agent SDK or several others without changing the frontend. What it does not do is be the agent: you still bring one, and the smooth path is React.
What can you do with CopilotKit?
- Let the agent see what is on the screen — A hook publishes a piece of your application state, so the agent answers about the row the user is looking at rather than asking them to describe it.
- Let the agent press the buttons — Frontend functions can be registered as actions the agent may call, so it can filter a table or open a dialog instead of explaining how to.
- Answer with a component, not a paragraph — The agent can render a React component inside the conversation — a confirmation form, a chart, a diff — so the next step is a click rather than a copy-and-paste.
- Keep the chat or keep your design — Ready-made chat, sidebar and popup surfaces cover the common case; the headless option gives you the runtime with none of the styling.
- Change the agent without changing the UI — The frontend speaks AG-UI, so swapping LangGraph for CrewAI or the Claude Agent SDK behind it does not reach the components.
Before you choose CopilotKit
- It is the front end only. You still need an agent behind it, and the value appears once that agent exists — on its own it adds a chat box to an application that has nothing to say.
- React is the supported path in practice; other frontends and the hosted intelligence features are advertised, but the documentation, examples and component library are written for React.
Star history
27 Aug to 30 Oct · +1.3k
Frequently asked questions
Is CopilotKit free for commercial use?
CopilotKit is released under the MIT licence — OSI-approved open source, which permits commercial use.
How can CopilotKit be deployed?
CopilotKit is available as Self-hosted / Managed cloud.