Repolode
CopilotKit

CopilotKit/CopilotKit

A TypeScript SDK for building agent-native apps with generative UI, shared state, and human-in-the-loop flows in React, Angular, Vue, and chat apps.

Stars
38,123
Forks
4,751
Open issues
337
Last commit
4 hours ago

What is it?

CopilotKit is a full-stack SDK for building applications where AI agents interact with users through the interface. It provides a chat UI, generative UI that agents can render and update at runtime, a shared state layer that both agents and components read and write, and human-in-the-loop steps where an agent pauses to request input, confirmation, or edits.

The frontend integrations cover React and Next.js, Angular, Vue, and React Native. The Channels SDK lets the same agent run in Slack and Microsoft Teams, with Discord, WhatsApp, and Telegram adapters also listed. The project is the company behind the AG-UI Protocol, which handles the wire protocol between agent frameworks and the UI.

An optional hosted or self-deployed product, CopilotKit Intelligence, adds persistent threads, user memories, and analytics on top of an existing app.

Key features

  • 01Customizable chat UI with message streaming and tool call rendering
  • 02Generative UI that agents create and update at runtime
  • 03Shared state synchronized between agents and UI components
  • 04Human-in-the-loop pauses for user input, confirmation, or edits
  • 05Integrations for React, Angular, Vue, React Native, Slack, and Microsoft Teams

Use cases

  • Adding an AI assistant that can take actions and show results inside a React or Next.js web app
  • Letting an agent ask a user for approval before running a sensitive operation
  • Deploying one agent backend to both a web frontend and a Slack or Teams workspace
  • Building a mobile chat experience with React Native on top of an existing agent

Quick start

  1. 1

    Set up CopilotKit with your coding agent by running the onboarding command

    npx --yes copilotkit@latest onboard start
  2. 2

    Start a new project in its own directory

    npx copilotkit@latest create
  3. 3

    Install agent skills for your coding agent (optional)

    npx copilotkit@latest skills install

Things to know

  • Several platforms like Discord, WhatsApp, and Telegram only have a Channels SDK adapter, with no managed connection yet.
  • Some advanced features such as rich threads, user memories, and automatic learning belong to CopilotKit Intelligence, which has hosted plans and self-hosting options.

Topics

FAQ

What is CopilotKit?
A TypeScript SDK for building agent-native apps with generative UI, shared state, and human-in-the-loop flows in React, Angular, Vue, and chat apps. CopilotKit is a full-stack SDK for building applications where AI agents interact with users through the interface. It provides a chat UI, generative UI that agents can render and update at runtime, a shared state layer that both agents and components read and write, and human-in-the-loop steps where an agent pauses to request input, confirmation, or edits.
Is CopilotKit free to use? What license does it have?
CopilotKit is open source under the MIT license. Check the license terms before using it in commercial products.
Is CopilotKit still maintained?
Actively maintained. The last commit to CopilotKit was on Oct 20, 2026.
What can I use CopilotKit for?
Adding an AI assistant that can take actions and show results inside a React or Next.js web app Letting an agent ask a user for approval before running a sensitive operation Deploying one agent backend to both a web frontend and a Slack or Teams workspace Building a mobile chat experience with React Native on top of an existing agent
How do I install CopilotKit?
Set up CopilotKit with your coding agent by running the onboarding command: npx --yes copilotkit@latest onboard start Start a new project in its own directory: npx copilotkit@latest create Install agent skills for your coding agent (optional): npx copilotkit@latest skills install
Where can I get CopilotKit?
The source code and installation instructions are on GitHub: https://github.com/CopilotKit/CopilotKit

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects