CopilotKit is a free, open source ai interaction & interfaces project written in TypeScript and released under MIT. It has 37,396 GitHub stars, 4,638 forks and 295 open issues, and was last pushed 3 hours ago. On this registry it ranks #14 of 76 tracked projects in AI Interaction & Interfaces, with 5 head-to-head comparisons available. It gained 68 stars over the last 6 tracked days.

CopilotKit — Build AI copilots for your product in hours, not months

What is CopilotKit?

What it is

CopilotKit is a frontend SDK for building agent-native applications and generative UI experiences. It provides tooling and protocols to connect AI agents—regardless of backend framework—to user interfaces across web, mobile, and messaging platforms. It lives in the agentic AI ecosystem, specifically targeting developers who need to embed intelligent assistants into products without rebuilding agent logic for each surface.

It solves the fragmentation problem in AI-assisted interfaces: previously, teams had to write custom integrations for each frontend (React, Angular, etc.) and each messaging channel (Slack, Teams, etc.). CopilotKit abstracts this with a unified agent-to-client protocol (AG-UI) and framework-specific wrappers, enabling a single agent backend to power multiple UIs and channels.

Key capabilities

  • Generative UI: Agents dynamically generate and update UI components at runtime based on intent and state
  • Backend tool rendering: Agents invoke backend functions that return UI components rendered client-side
  • Shared state layer: Real-time synchronization between agent state and UI components
  • Human-in-the-loop workflows: Agents pause execution to request user input, confirmation, or edits
  • Multi-framework support: Official SDKs for React, Angular, Vue, and React Native
  • Cross-channel deployment: Deploy the same agent to Slack, Microsoft Teams, and other chat platforms via the Channels SDK
  • Agent skill installation: Prebuilt CLI and documentation skills for coding assistants like Claude Code and Cursor

Who uses it and how

  • Product teams integrate CopilotKit to embed AI assistants into internal tools, customer support portals, and SaaS dashboards using React or Vue frontends
  • Platform engineers deploy agents across multiple communication channels (e.g., Slack for internal teams, Teams for enterprise clients) without duplicating agent logic
  • Mobile app developers add conversational AI to React Native apps using the shared CopilotKit SDK

Getting started

Install via npx copilotkit@latest create to scaffold a new project; requires an LLM API key (OpenAI, Anthropic, or Google). The Channels SDK is added separately for messaging integrations. Documentation and quickstarts are at https://docs.copilotkit.ai.

When to use it — and when not to

Use CopilotKit when you need to deploy the same agent across multiple UIs or channels with minimal duplication. It replaces costly custom integrations but requires managing your own LLM infrastructure, database (for shared state persistence), and SMTP (for human-in-the-loop notifications if used). It is not suitable for simple chat widgets where no agent orchestration, dynamic UI generation, or cross-channel consistency is needed—lighter libraries like LangChain’s chat models may suffice.

project readme (upstream, from github) — read inline
FavIcon

CopilotKit

Docs · Examples · CopilotKit Intelligence · Discord

Build agent-native applications — on any framework, on any surface.

Generative UI, shared state, and human-in-the-loop workflows for React, Angular, Vue, React Native — and in Slack and Microsoft Teams.

Bring Your Own Agent. Any Channel. — CopilotKit and AG-UI connect any agent framework to Slack, Microsoft Teams, Discord, WhatsApp, Telegram, Google Chat, iMessage, and SMS.

NPM Discord

CopilotKit%2FCopilotKit | Trendshift


What is CopilotKit?

CopilotKit is a best-in-class SDK for building full-stack agentic applications, Generative UI, and chat applications.

What started as a React library is now the horizontal layer between your agents and your users: the same agent can power your web app, your mobile app, and your team's Slack or Microsoft Teams workspace.

We are the company behind the AG-UI Protocol — adopted by Google, LangChain, AWS, Microsoft, Mastra, PydanticAI, and more!

Quick Start

Up and running in under five minutes. All you need is an LLM key (OpenAI, Anthropic, Gemini, etc.).

npx copilotkit@latest create

Agent Skills

CopilotKit ships agent skills that teach your coding agent (Claude Code, Codex, Cursor, Gemini, and others) how to work with CopilotKit. There are two: copilotkit, which searches the current documentation and source instead of answering from training data, and copilotkit-cli, which drives the CLI and proves a project's wiring with copilotkit verify.

Install them into any project directory:

npx copilotkit@latest skills install

Run it again any time to refresh to the latest skills.

Bring Your App to Life

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

Add AI to your app in 1 minute

Features:

  • Chat UI – A fully customizable chat interface that supports message streaming, tool calls, and agent responses.
  • Backend Tool Rendering – Enables agents to call backend tools that return UI components rendered directly in the client.
  • Generative UI – Allows agents to generate and update UI components dynamically at runtime based on user intent and agent state.
  • Shared State – A synchronized state layer that both agents and UI components can read from and write to in real time.
  • Human-in-the-Loop – Lets agents pause execution to request user input, confirmation, or edits before continuing.
  • Self-Learning (early access) – Agents that continuously improve from user feedback via in-context reinforcement learning (CLHF).

🧩 Works With Your Stack

One agent backend. Every frontend.

Platform Status Get Started
⚛️ React / Next.js ✅ GA Quickstart
🅰️ Angular ✅ Supported Source Code & Quickstart
💚 Vue ✅ Supported Source Code - Quickstart coming soon
📱 React Native ✅ Supported Quickstart
💬 Slack / Microsoft Teams ✅ Supported Channels · Quickstart
🔜 Discord / WhatsApp / Telegram / Google Chat / iMessage / SMS 🟡 Coming soon Channels

Your agent logic stays the same — AG-UI handles the wire protocol, CopilotKit handles the UI layer for each framework and channel.

💬 Channels: One Agent, Every Chat App

Write it once, run every channel

The Channels SDK takes the agent you already built and drops it into the chat apps your users live in — same tools, same shared state, same human-in-the-loop, no rewrite (Learn more).

  • Slack – Agents as first-class Slack apps: threads, tool calls, and human-in-the-loop approvals right in the channel.
  • Microsoft Teams – Bring agentic workflows to the enterprise, where your org already lives.

👉 Explore Channels →

🧠 Self-Learning Agents

Improve your product by learning over time.

With Continuous Learning from Human Feedback (CLHF), part of CopilotKit Intelligence, agents improve with every interaction:

  • In-context reinforcement learning – Agents automatically improve from user interactions, no model fine-tuning required.
  • Automatic prompt augmentation – Agent behavior adapts based on recent interactions and outcomes.
  • Per-user adaptation – Agents learn individual preferences and get better for each user over time.
  • Threads & persistence – Full interaction history — generative UI, human-in-the-loop, shared state — captured across sessions.

Available via CopilotKit Cloud or self-hosted.

🔒 Early access: We're onboarding teams now.

👉 Request early access →

https://github.com/user-attachments/assets/7372b27b-8def-40fb-a11d-1f6585f556ad

What this gives you:

  • CopilotKit installed – Core packages are fully set up in your app
  • Provider configured – Context, state, and hooks ready to use
  • Agent UI connected – Agents can stream actions and render UI immediately
  • Deployment-ready – Your app is ready to deploy

Complete getting started guide →

How it works:

CopilotKit connects your UI, agents, and tools into a single interaction loop.

CopilotKit Diagram — Motion x2 6 sec version

This enables:

  • Agents that ask users for input
  • Tools that render UI
  • Stateful workflows across steps and sessions
  • One agent, deployed across web, mobile, and chat platforms

⭐️ useAgent Hook

The useAgent hook sits directly on AG-UI, giving you full programmatic control over the agent connection.

// Programmatically access and control your agents
const { agent } = useAgent({ agentId: "my_agent" });

// Render and update your agent's state
return 
<h1>{agent.state.

readme truncated — read the full docs on github

Frequently asked questions

Is CopilotKit free to use?

CopilotKit is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does CopilotKit do?

Build AI copilots for your product in hours, not months

What is CopilotKit written in?

CopilotKit is primarily written in TypeScript. Its source is publicly available at https://github.com/CopilotKit/CopilotKit, and it has 37,396 GitHub stars.