CopilotKit is the open-source framework for building AI copilot experiences into React applications. It provides pre-built components for in-app AI chat, AI-assisted text areas, generative UI, and agent-driven interfaces.
CopilotKit lets you build AI copilot experiences into any React application. Instead of a generic chatbot, CopilotKit gives your AI deep context about your app’s state and actions — enabling truly integrated AI assistants.
import { CopilotKit } from "@copilotkit/react-core";
import { CopilotChat } from "@copilotkit/react-ui";
function App() {
return (
<CopilotKit runtimeUrl="/api/copilot">
<YourApp />
<CopilotChat />
</CopilotKit>
);
}
useCopilotAction({
name: "updateChart",
description: "Update the dashboard chart",
handler: async ({ metric }) => setChartData(await fetchMetric(metric)),
});
// User: "Show revenue for Q4" → AI calls updateChart("revenue_q4")
AI agents that work well with CopilotKit.
Injects up-to-date, version-specific documentation into LLM context — eliminates hallucination from stale training data.
AI-powered code review that catches bugs, security issues, and style violations before they reach production.
Semantic code retrieval and editing MCP toolkit — the IDE for your AI agent with symbol-level navigation.