Skip to content
Development
MCP

copilotkit-docs

Searches the reference material for an open-source framework that embeds AI copilots and agents into web applications.

From plugin
copilotkit
39k9 skills1 agent2 MCP

Claude Code

> /plugin marketplace add CopilotKit/CopilotKit
> /plugin install copilotkit@copilotkit-plugins

Security report

Found

Low risk

  • Known flaws

    Not published

  • Signed build

    Not published

  • Maintained

    Nov 10, 2026

    Last push

  • Licence

    MIT

  • Runs as

    Remote

    mcp.copilotkit.ai

  • Deprecated

    Not published

Signals from public registries, not an audit. Checked Nov 13, 2026.

copilotkit README

CopilotKit

CopilotKit

Docs · Examples · Intelligence · OpenBot · Discord

Talk to an engineer

npm version

GitHub stars

Discord

License: MIT

CopilotKit/CopilotKit on Trendshift

CopilotKit is the open-source stack for putting AI agents in front of real users. Bring the agent you already built, on any framework, and give it chat, generative UI, shared state, and human-in-the-loop in React, Angular, Vue, React Native, Slack, and Microsoft Teams.

When it goes to production, add CopilotKit Intelligence and your agents keep getting better: conversations that pick up where users left off, memory across sessions, and Continual Learning that turns real use into Skills you review and publish.

We're also the team behind AG-UI, the open Agent–User Interaction protocol adopted by Google, Microsoft, AWS, LangChain, Mastra, PydanticAI, and more.

What's new

What's newWhat it is
🪁 CopilotKit SoarAI coworkers your company owns, running on your own servers. Powered by OpenBot. Now in early access →
🔁 Continual LearningAgents learn from full-stack trajectories (what the agent did and what your users did), captured over AG-UI.
🤖 OpenBotOpen-source AI coworkers that each get a computer of their own. MIT licensed. Source on GitHub.
🧩 AG-UI 1.0 + A2UI 1.0CopilotKit now speaks AG-UI 1.0 and the A2UI 1.0 spec for declarative generative UI.
💬 ChannelsWrite Channels JSX once. Render native Block Kit in Slack and Adaptive Cards in Microsoft Teams.

Full changelog in What's New.

Quick start

Let your coding agent do it. Paste this prompt into Claude Code, Cursor, Codex, or any coding agent running in your project. It inspects your app and walks you through the integration.

Help me get started with CopilotKit. From the root of my project, run this
command and follow the instructions:

npx --yes copilotkit@latest onboard start

Start a new project. Scaffolds a fresh app in its own directory. It won't touch an app you already have.

npx copilotkit@latest create

Give your coding agent CopilotKit skills. Helps it build features and debug issues once you're set up (learn more).

npx copilotkit@latest skills install

Prefer to wire it up by hand? Here's a Next.js app in three files.

npm install @copilotkit/react-core @copilotkit/runtime
# .env.local
OPENAI_API_KEY=your_openai_api_key
// app/api/copilotkit/[[...slug]]/route.ts
import {
  CopilotRuntime,
  createCopilotRuntimeHandler,
  BuiltInAgent,
} from "@copilotkit/runtime/v2";

const runtime = new CopilotRuntime({
  agents: { default: new BuiltInAgent({ model: "openai:gpt-6-luna" }) },
});

const handler = createCopilotRuntimeHandler({
  runtime,
  basePath: "/api/copilotkit",
});
export { handler as GET, handler as POST, handler as PATCH, handler as DELETE };
// app/page.tsx
"use client";
import { CopilotKitProvider, CopilotSidebar } from "@copilotkit/react-core/v2";
import "@copilotkit/react-core/v2/styles.css";

export default function Page() {
  return (
    <CopilotKitProvider runtimeUrl="/api/copilotkit">
      <main>
        <h1>Your App</h1>
        <CopilotSidebar />
      </main>
    </CopilotKitProvider>
  );
}

Already running LangGraph, CrewAI, Mastra, or another framework? Swap the Built-in Agent for yours using that framework's quickstart.

https://github.com/user-attachments/assets/4af4c22a-1638-4328-add7-ede088afea64

How it works

Your users on React, Angular, Vue, React Native, Slack and Teams connect through CopilotKit's frontend SDKs and Copilot Runtime, over AG-UI, to your agents on LangGraph, CrewAI, Mastra, Google ADK, PydanticAI and more. CopilotKit Intelligence sits underneath for production.

Your users on React, Angular, Vue, React Native, Slack and Teams connect through CopilotKit's frontend SDKs and Copilot Runtime, over AG-UI, to your agents on LangGraph, CrewAI, Mastra, Google ADK, PydanticAI and more. CopilotKit Intelligence sits underneath for production.

Your agent handles reasoning and execution. CopilotKit turns its work into a product experience. Events stream over AG-UI, so the agent can show its work as it happens, read what the user is looking at, call tools that render UI, and pause for a person to approve the next step. Your agent logic stays the same on every surface.

What you can build

https://github.com/user-attachments/assets/72b7b4f3-b6e7-460c-a932-5746fe3c8db3

FeatureWhat it does
Chat componentsStart with a working chat, replace the parts you need with slots, or go fully Headless UI.
Generative UIAgents render real UI, from your own components to A2UI specs to sandboxed MCP Apps.
Shared stateOne state layer that both the agent and your UI read and write in real time.
Human-in-the-loopAgents pause for input, confirmation, or edits before they act.
Frontend toolsLet the agent take actions inside your app, with your code doing the work.
AG-UI StreamsConversations that survive reloads, devices, and sessions, with generative UI intact.
Voice and WebMCPTalk to your agent, and expose your app's actions to browser agents.
InspectorA localhost overlay that shows threads, agents, and learning as you build.

Full control with useAgent

Every component is built on hooks you can use directly. useAgent sits right on top of AG-UI and gives you programmatic control of the agent connection.

import { useAgent } from "@copilotkit/react-core/v2";

function CityPicker() {
  const { agent } = useAgent({ agentId: "my_agent" });

  return (
    <div>
      <h1>{agent.state.city}</h1>
      <button onClick={() => agent.setState({ city: "NYC" })}>Set city</button>
    </div>
  );
}

More in the programmatic control docs.

Generative UI, three ways

https://github.com/user-attachments/assets/3cfacac0-4ffd-457a-96f9-d7951e4ab7b6

TypeThe agent…Built on
Controlledpicks from components you registeredAG-UI tool calls and state
@copilotkit
Ships withcopilotkit

The Frontend Stack for Agents & Generative UI. React, Angular, Mobile, Slack, and more. Makers of the AG-UI Protocol

39k9 skills1 agent2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
38.6k
Star history of CopilotKit/CopilotKit on GitHub, a chart by star-history.com

More MCP servers from other plugins.

chrome-devtools
Auto-invoked

chrome-devtools

MCP

Connects to Chrome over the DevTools Protocol to inspect the DOM, network requests and console output.

ecc2w293k
@affaan-m@affaan-mInstall MCP
supabase

supabase

MCP

Queries a Supabase project: Postgres tables, auth users, storage and edge functions.

supabase13d114k
@supabase@supabaseInstall MCP

Questions about copilotkit-docs.

Which coding agents can use copilotkit-docs?
copilotkit-docs works in any agent that reads an MCP config file: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf. Each agent reads it from its own file; this page names the file for each one.
How do I add copilotkit-docs to Claude Code?
Run these in order, one at a time. 1. In Claude Code: /plugin marketplace add CopilotKit/CopilotKit 2. In Claude Code: /plugin install copilotkit@copilotkit-plugins
Is copilotkit-docs safe to install?
Low risk. Signals from public registries, not an audit.