Mindket

CopilotKit

Newversion 2 · updated
GitHub trending
Star38.6k

Overview

CopilotKit’s open source frontend stack for AI agents, from the makers of the AG-UI protocol. Bring your own agent or use the built-in one, and give your users a chat inside your app. The notes cover each frontend, models and coding agents.

CopilotKit is an open-source project on GitHub in the Developer category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.

At a glance

Runs in
  • React and Next.js: marked GA, with the Quickstart as the main route
  • Angular, Vue and React Native: marked supported, each with its own quickstart
  • Slack and Microsoft Teams: marked GA on cloud-hosted CopilotKit Intelligence
  • Agent backends: LangGraph, Deep Agents, CrewAI, Mastra, Google ADK, PydanticAI, Microsoft Agent Framework, AWS Strands, Claude Agent SDK, LlamaIndex, Agno, AG2 and A2A, or the built-in agent
Start with
npx create-next-app@latest my-copilot-app
cd my-copilot-app
npm install @copilotkit/react-core @copilotkit/runtime

Platform

ClaudeAI chat
Claude CodeCoding agent
CodexCoding agent
CursorCode editor
Gemini CLICoding agent
WindsurfCode editor

And 2 more in Where to use it

About

What it is

CopilotKit is an open source stack for putting an AI agent in front of the people who use your app. You bring the agent, built on LangGraph, CrewAI, Mastra or another framework, or you use CopilotKit’s built-in one. CopilotKit gives it a chat, generative UI, shared state and human-in-the-loop. Copilot Runtime sits on your server and talks to the agent. A frontend package shows the chat in React, Angular, Vue or React Native. Events between them stream over AG-UI, an open protocol from the same team. The code is under the MIT license.

  1. A user types in the chat inside your app
  2. The frontend sends the run to Copilot Runtime
  3. The runtime calls your agent, or the built-in one
  4. Events stream back over AG-UI as the agent works
  5. Your app shows text, tool UI and shared state

Who it suits

Developers who have an agent, or want one, and need a place inside a real app where users talk to it. React and Next.js developers get the most complete route, since the README marks that surface GA. Angular, Vue and React Native are marked supported. Teams whose graph already runs on LangGraph can keep it where it runs. The LangGraph page says nothing inside the graph changes. They add a runtime route that registers it, and the frontend.

Who uses it, and how
IndustryWho uses itHow they use itExample
SaaS and web appsFront-end and full-stack developersAdd a sidebar or popup chat backed by the built-in agentA developer adds CopilotSidebar to a Next.js page and asks it for a joke, as the Quickstart does.
AI agent teamsDevelopers with a LangGraph graphKeep the graph where it runs and register it in the runtimeA team points LangGraphAgent at its LangGraph Platform deployment and leaves its nodes alone.
Mobile appsReact Native developersBuild their own chat screen from headless hooksA developer runs the chat on an Android emulator that reaches the runtime at 10.0.2.2, as the React Native page shows.
Scheduling and workflow appsProduct teamsLet the agent stop for a person’s choice before it actsAn agent asks the user to pick a call time from a time picker, as the human-in-the-loop demo does.

Skip it if you want a chatbot without writing code. Every route here has you edit an app and host the runtime yourself.

Where to use it

CopilotKit runs inside your own app, on the frontends and agent backends the README lists.

  • React and Next.js: marked GA, with the Quickstart as the main route
  • Angular, Vue and React Native: marked supported, each with its own quickstart
  • Slack and Microsoft Teams: marked GA on cloud-hosted CopilotKit Intelligence
  • Agent backends: LangGraph, Deep Agents, CrewAI, Mastra, Google ADK, PydanticAI, Microsoft Agent Framework, AWS Strands, Claude Agent SDK, LlamaIndex, Agno, AG2 and A2A, or the built-in agent
  • Coding agents: skills for Claude Code, Codex, Cursor and Gemini CLI, and an MCP docs server with steps for Claude Code, Codex, Cursor, Windsurf, Cline, GitHub Copilot and the Claude apps

How to set it up

Get it saves a zip of Mindket’s setup notes in your downloads folder. It holds a file for each frontend, the LangGraph route, models and keys, and each coding agent. Below is Next.js by hand, from the README and the Quickstart.

What you need first
NeedDetail
A model keyAn OpenAI key for the Quickstart. Anthropic, Google and MiniMax keys work too, and OPENAI_BASE_URL reaches other OpenAI-compatible endpoints
Node.js20 or newer for Next.js, Vue and React Native, 20.6 or newer for a React single-page app, 22 for Angular, and 20.9.0 or newer for the npx copilotkit@latest CLI (its npm engines field)
A frontendReact 18 or newer for a single-page app, Vue 3.3 or newer, Angular 22, or React Native 0.70 or newer (0.72 or newer for the /headless route, with the Metro flag below 0.79)
A package managerThe docs show npm, pnpm, yarn and bun
  1. Create a Next.js app. Skip this step in an app you already have.
  2. Install the two CopilotKit packages.
  3. Put your OpenAI key in .env.local. That is the README’s file name, and the Quickstart uses .env.
  4. Add the runtime route. It registers CopilotKit’s built-in agent under the name default.
  5. Add the provider and the sidebar. In the README’s version, app/page.tsx wraps the page in CopilotKitProvider and imports the stylesheet.
  6. Start the dev server and ask something. The Quickstart suggests “Can you tell me a joke?”
npx create-next-app@latest my-copilot-app
cd my-copilot-app
npm install @copilotkit/react-core @copilotkit/runtime

The README’s runtime route:

// 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-5.4-mini" }) },
});

const handler = createCopilotRuntimeHandler({
  runtime,
  basePath: "/api/copilotkit",
});
export { handler as GET, handler as POST, handler as PATCH, handler as DELETE };

And its page:

// 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>
  );
}

If you would rather not wire it by hand, paste the README’s prompt into your coding agent. It has the agent run npx --yes copilotkit@latest onboard start and walk you through the setup. The create command below scaffolds a new app in its own folder and leaves an existing app alone.

npx copilotkit@latest create

How to use it

You talk to the agent in the chat, and your own code decides what else it can reach in the app. These React pieces come from the README and the docs pages Mindket read.

The pieces you use most
PieceWhat it does
CopilotChat, CopilotSidebar, CopilotPopupThree layouts of the same chat: placed anywhere, a collapsible side panel, or a floating bubble
useAgentReads and writes the agent’s state and gives you direct control of the agent connection
useFrontendToolLets the agent call functions in your app, with your code doing the work
useHumanInTheLoopShows your own component when the model asks the user something, then returns the answer to the agent
useInterruptRenders the pause when a LangGraph node calls interrupt(), then resumes the run

In a development build, an Inspector button sits in the corner of the app. It lists your agent, the AG-UI events of each run and the tools registered in the browser. Each web quickstart ends by checking that the agent shows up there and that events move when you send a message. React Native has no Inspector, since it is a browser overlay.

Example

Your app shows a todo list that reads agent.state.todos, with CopilotChat beside it, as on the Shared State page. You type this into the chat.

Add a task to buy groceries

The agent updates the shared state, and the todo list shows the new item at once. You write no backend code for this, because the Built-in Agent has the state tools AGUISendStateSnapshot and AGUISendStateDelta by default. The runtime sends each update to the browser over SSE, and useAgent re-renders the list.

For newcomers and experts

If you are new. An agent is a language model that can call tools and work through steps. CopilotKit is the part your users see. The runtime is a small server piece that holds your model key and talks to the agent, so the key stays out of the browser. AG-UI is the stream of events between the agent and your page: text, tool calls and state changes. Human-in-the-loop means the agent stops and waits for a person’s answer. Start with the Next.js steps above and the built-in agent. It needs only an OpenAI key.

For experts. The Built-in Agent runs on AI SDK 6 from Vercel. A model string is provider:model, and the id goes to the provider unchanged. With OPENAI_BASE_URL set to a host that is not OpenAI or Azure, it switches to the Chat Completions API, and COPILOTKIT_OPENAI_API lets you pick the API yourself. A custom model is any AI SDK model from a provider package on its ai-v6 line. For OpenAI-compatible services, call provider.chat(model), since the bare call goes to the Responses API.

Generative UI comes three ways. Controlled UI picks from components you registered, declarative UI renders an A2UI spec, and open-ended UI runs a full interface in a sandbox through MCP Apps. For pauses, useHumanInTheLoop is a tool the model chooses to call, while useInterrupt follows an interrupt() inside a LangGraph node. The docs say the Built-in Agent does not support interrupts.

In the React SPA, Vue, Angular and React Native quickstarts, the runtime is its own Node server built with createCopilotNodeListener. Its CORS is off by default, so a browser app on another port needs cors: true and an absolute runtimeUrl. The docs note that the Express and Hono adapters default to permissive CORS. The /v2 subpaths need moduleResolution set to bundler in tsconfig.json, or type checking fails while the app still runs.

Good to know

The open-source packages run in your app and on your server. A few parts reach out, and one is commercial.

  • License: MIT. The LICENSE file reads “Copyright (c) Atai Barkai”
  • The CLI: npx copilotkit@latest runs the copilotkit npm package. Its npm page lists its repository as CopilotKit/Intelligence and its license as “SEE LICENSE IN LICENSE”, not the MIT text above
  • Hosted layers: CopilotKit Intelligence adds saved threads, memory, learning, analytics and Slack or Teams channels, cloud-hosted or self-hosted. The README says its Developer plan is free, and the pages Mindket read give no prices. The README marks CopilotKit Soar as commercial, and it is in early access
  • Usage data: the packages send metadata-only telemetry, and the docs say it holds no prompts, messages, agent state or tool data. COPILOTKIT_TELEMETRY_DISABLED=true in the runtime’s environment turns it off for the runtime and the Inspector
  • Your model provider: your server sends the conversation to the provider you choose. Keep the key on the server and out of VITE_ variables, which reach the browser
  • Coding agent extras: the MCP docs server runs at mcp.copilotkit.ai. The Build with agents page installs the skills with Vercel Labs’ skills tool (npx skills add CopilotKit/CopilotKit/skills -y). That tool needs Node.js 22.20 or later and collects anonymous usage data. DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 turns off its telemetry and security-audit requests
  • Removal: the quickstarts give no uninstall steps for the packages. Use your package manager, and claude mcp remove copilotkit-mcp -s project for the Claude Code server

README and files

README

CopilotKit: setup notes

This kit holds setup notes only. Mindket wrote them. CopilotKit's packages, runtime and docs come from its maker's repository and site: https://github.com/CopilotKit/CopilotKit and https://docs.copilotkit.ai

These notes are not made or endorsed by CopilotKit. The README opens with "CopilotKit is the open-source stack for putting AI agents in front of real users." It adds "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." The documentation is at https://docs.copilotkit.ai

License: MIT. The README says "The source code in this repository is available under the MIT License". The LICENSE file (https://github.com/CopilotKit/CopilotKit/blob/main/LICENSE) is the standard MIT text and reads "Copyright (c) Atai Barkai".

Two things sit next to the open-source packages. CopilotKit Intelligence is the production layer the README describes (threads, memory, learning, analytics, channels), cloud-hosted or self-hosted, and the README says its Developer plan is free. CopilotKit Soar is a commercial product in early access. These notes cover the open-source packages and the way coding agents learn them. They do not cover Intelligence or Soar beyond the places the quickstarts mention them.

What the notes cover

CopilotKit has a frontend that shows the chat and a runtime that sits on a server and talks to the agent. The docs give a separate quickstart for each frontend and each agent backend:

  • setup/next-js.md: React with Next.js, where the app and the runtime share one server.
  • setup/react-spa-vite.md: a React single-page app, which needs its own runtime server.
  • setup/vue.md: Vue 3.
  • setup/angular.md: Angular.
  • setup/react-native.md: React Native, bare CLI or Expo.
  • setup/langgraph-python.md: connecting a LangGraph agent instead of the built-in one.
  • setup/models-and-keys.md: model strings, provider keys, OpenAI-compatible endpoints, custom models.
  • setup/chat-layouts-and-features.md: the three chat components, shared state and human-in-the-loop.
  • setup/claude-code.md, setup/codex.md, setup/cursor.md, setup/other-agents.md: the skills and the MCP docs server that teach a coding agent CopilotKit.
  • setup/inspector-and-telemetry.md: the development overlay, and the telemetry and how to turn it off.

What you need first

  • A model provider key: an OpenAI key in the quickstart, or Anthropic, Google or MiniMax. Source: https://docs.copilotkit.ai/quickstart and https://docs.copilotkit.ai/model-selection
  • Node.js: 20 or newer for the Next.js, Vue and React Native quickstarts, 20.6 or newer for the React SPA quickstart, and 22 for the Angular one. The npx copilotkit@latest CLI needs 20.9.0 or newer, by its npm engines field.
  • A package manager. The docs show npm, pnpm, yarn and bun.
  • A frontend that fits: React 18 or newer for a single-page app, Vue 3.3 or newer, Angular 22, React Native 0.70 or newer (0.72 or newer for the /headless route, with the Metro flag below 0.79).

Main install commands

The README gives three starting routes.

A coding agent walks you through it. Paste this prompt into Claude Code, Cursor, Codex or another coding agent running in your project:

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

A new project, scaffolded in its own directory. The README says it won't touch an app you already have:

npx copilotkit@latest create

Skills that teach your coding agent CopilotKit:

npx copilotkit@latest skills install

Or install the packages by hand into an existing app:

npm install @copilotkit/react-core @copilotkit/runtime

Source for all four: https://github.com/CopilotKit/CopilotKit/blob/main/README.md

What gets installed

  • @copilotkit/react-core is the React package: the provider, the chat components, the hooks and the stylesheet.
  • @copilotkit/runtime is the server-side package: CopilotRuntime, the built-in agent and the HTTP handlers.
  • @copilotkit/vue, @copilotkit/angular and @copilotkit/react-native are the packages for those frontends.
  • The copilotkit npm package is the command-line tool that npx copilotkit@latest runs. Its npm page lists its repository as https://github.com/CopilotKit/Intelligence and its license as "SEE LICENSE IN LICENSE", so it is not the MIT text of the repository these notes come from. Mindket did not read that license.

Update or remove

The pages Mindket read give no update or uninstall steps for the packages. Use your package manager's own commands. For the MCP docs server in Claude Code, the docs give claude mcp remove copilotkit-mcp -s project (setup/claude-code.md). Skills installed with npx skills add come from Vercel Labs' skills tool, whose README lists npx skills list, npx skills update and npx skills remove.

Usage data

The open-source packages send metadata-only telemetry. The docs say it holds no prompts, messages, agent state or tool data, and that setting COPILOTKIT_TELEMETRY_DISABLED=true turns it off. Details and the page: setup/inspector-and-telemetry.md.

Other outbound connections

Your server sends the conversation to the model provider you choose. The CLI talks to a CopilotKit workspace, and the MCP docs server runs at https://mcp.copilotkit.ai. CopilotKit Intelligence is a separate hosted or self-hosted service you opt into.

Sources

Files
README.md  6 KB
setup/angular.md  3 KB
setup/chat-layouts-and-features.md  3 KB
setup/claude-code.md  2 KB
setup/codex.md  1 KB
setup/cursor.md  1 KB
setup/inspector-and-telemetry.md  2 KB
setup/langgraph-python.md  4 KB
setup/models-and-keys.md  3 KB
setup/next-js.md  5 KB
setup/other-agents.md  2 KB
setup/react-native.md  5 KB
setup/react-spa-vite.md  4 KB
setup/vue.md  3 KB

14 files, 44 KB, downloaded as a zip.

What’s new

  • Version 2 · 2026-11-09

    Updated by Mindket to the current version of this kit.

  • Version 1 · 2026-11-03

Compare with similar

Listed GitHub projects in the same category that share the most topics with this one.

ProductStarsActivityLanguageLicenseLast change
CopilotKit This page38,557ActiveTypeScriptMIT
RufloShares ai-assistant · agentic-ai · agents81,187——MIT—
DifyShares agent · agentic-ai · ai160,579————
闲鱼智能监控系统Shares ai-assistant · ai18,425QuietPythonMIT
Hermes AgentShares ai-agent · ai261,224——MIT—
Spec KitShares copilot · ai148,439ActivePythonMIT
Numbers as Mindket last read them, from 2026-11-07 to 2026-11-09. Activity is read from each project’s last change on GitHub: Active within 30 days, Quiet within 180, Stale after that.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

LeonTungShow HN: PromptDoggy – Prompt Management for Product and Engineering TeamsHi HN, We’re Leon and Jingrui, and we’re excited to share our project: PromptDoggy. It’s a prompt management tool designed to streamline collaboration between product and engineering teams when building LLM apps. Key features: - Prompt management dashboard for product managers: Product managers…2 pointsEdy | Indie BuilderToday's GitHub trending: AI agents getting their own computer. - CopilotKit/OpenBot: AI coworkers with their own browser, files, tools (+706 today) - thedotmack/claude-mem: cross-session agent memory (+1,140) - lightpanda-io/browser: headless browser built for AI (+626) #buildinpublic #AI10 likes · 3 replies@zujingpgg给 agent 做界面,有一个开源标准了:AG-UI。 配套的前端库 CopilotKit,MIT 协议,38.6k star。 https://t.co/Yhk4WGR5Zar/SATNA_PROJECTThe Claude Code Resource Bible: 54 links covering MCP servers, skills, agents, and automationmikeryan52Show HN: The Channels SDK – Bring Any Agent to Any Channel (Slack, MS Teams)Not necessarily wrong, but that's just a maturity problem on our end right now. We're aiming to take the same approach as our web SDKs: it works great for open-source deployments and works even better with Enterprise Intelligence. We had some back-and-forth over webhook vs. WebSocket in the last…Rainer HahnekampToday at DevFest Karlsruhe, I presented on Agentic UI and showed how AG-UI and A2UI work with CopilotKit. First things first. Thanks to @martinakraus11.bsky.social and the whole DevFest Karlsruhe team for having me. It was really great to see so many people at the talk.3 likes · 1 reply@perry_weijieAgent 后端跑通了,聊天界面还是裸的——用户看不到、产品交不出。想把对话嵌进产品、先有个能交出去的聊天壳,先收藏这 6 个开源前端: 1 → NextChat(约 8.9 万星 · MIT) 零配置多模型聊天壳,改改皮肤就能交 Demo https://t.co/eL6xB5yUYk 2 → CopilotKit(约 3.8 万星 · MIT) Agent / Generative UI 前端栈,直接嵌进你的产品页 https://t.co/RLHOIxkHXamikeryan52Show HN: The Channels SDK – Bring Any Agent to Any Channel (Slack, MS Teams)WhatsApp is only supported on the open-source side of the SDKs right now. Full support for WhatsApp in the hosted service is on the roadmap. Point your agent at github.com/copilotkit/copilotkit, where the Channels SDKs live, and it should be able to pick it up.Rainer HahnekampToday at 17:00 CET, Dariusz Kalbarczyk is hosting me for NgRx and AI Agents, a free webinar. One Angular app, one SignalStore. In the browser we’ll use Prompt API, Laya and WebMCP. On the server we’ll use CopilotKit, AG-UI and OpenRouter. ai-poland.pl/free-worksho...2 likes@KTee95d$7csuhas_rndShow HN: Ikuyo a Travel Planning Web ApplicationFriend (co-worker) had a similar ideas around travel management and he built this. Fully open sourced https://github.com/CopilotKit/CopilotKit/tree/main/examples/... In case you find it useful. https://examples-coagents-ai-travel-app-git-main-copilot-kit...@aidev44.bsky.socialCopilotKit open-sources OpenBot: AI coworkers that each get their own computer (browser, files, and tools) with governed and recorded actions Gives each AI coworker its own isolated environment with dedicated tools, files, and a browser instance → aideveloper44.com/product/open... #OpenSource #AI2 likes

Searched

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar projects

See all in Developer

Dify

langgenius · Kit

LangGenius’s open-source platform for building LLM apps: visual workflows, RAG, model management and agents with a sandbox. Its difyctl tool and skill let Clau…

New161k

Ruflo

ruvnet · Kit

ruvnet’s free, MIT-licensed layer that adds agent swarms, shared memory, a console and an MCP server to Claude Code and Codex. It was called Claude Flow. The s…

New81.2k

Khoj

khoj-ai · Kit

Khoj’s AGPL-3.0 personal AI app that answers from the web and from your own notes and documents. The setup notes cover running it with Docker or pip, picking a…

New38.1k