# CopilotKit

CreateWithAI Hub page: https://createwithaihub.com/frameworks/copilotkit
Latest version of this file: https://createwithaihub.com/frameworks/copilotkit.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: CopilotKit
- Pricing: Free · License: MIT
- Runs on: Web

Open-source frontend stack for putting agents in front of users: chat, generative UI, shared state and human-in-the-loop.

CopilotKit is an open-source stack for connecting an AI agent to a user-facing app. You bring an agent built on any framework, such as LangGraph, CrewAI or Mastra, or use its built-in agent, and give it chat, generative UI, shared state and human-in-the-loop in React, Angular, Vue or React Native, plus Slack and Microsoft Teams. It is built on AG-UI, the open agent-user interaction protocol the team maintains. CopilotKit Intelligence is a paid add-on for memory across sessions and continual learning.

Useful for: Adding an in-app copilot sidebar to a Next.js product that talks to an existing LangGraph agent and renders its tool calls as UI components.

## Key features

- Chat components such as CopilotSidebar for React and other frameworks
- Generative UI from your components, A2UI specs or sandboxed MCP Apps
- Shared state and human-in-the-loop between agent and app
- Works with agents from LangGraph, CrewAI, Mastra and others over AG-UI
- Channels for Slack Block Kit and Microsoft Teams Adaptive Cards
- Voice and WebMCP support; CLI for scaffolding and coding-agent skills

## Connection

- Language: TypeScript / JS
- Focus: Agents & tool use, Chat UI & streaming

## Before you start

- Node.js and npm

## Install steps from the official documentation

New project:

```
npx copilotkit@latest create
```

Add to a Next.js app:

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

## Limitations

- Memory across sessions and continual learning require CopilotKit Intelligence (free tier, then $49/month pay-as-you-go)

## Official links

- Website: https://www.copilotkit.ai
- Source repository: https://github.com/CopilotKit/CopilotKit
- Documentation: https://docs.copilotkit.ai
- Source: https://github.com/CopilotKit/CopilotKit (README: description, AG-UI, quick start commands, framework integrations, generative UI incl. MCP Apps, channels, license section; LICENSE: MIT)
- Source: https://www.copilotkit.ai/pricing (Intelligence: Free, Pay as you go $49/month, Annual custom)
