CreateWithAIHub

Framework CopilotKit

CopilotKit

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

Chat UI toolkitFreeOpen source
Visit website ↗
Save

What it is

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.

What it's 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

How to use it

Before you start

  • Node.js and npm
New project
npx copilotkit@latest create
Add to a Next.js app
npm install @copilotkit/react-core @copilotkit/runtime

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

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

Alternatives

Open-source TypeScript/React library of composable primitives for building ChatGPT-style chat interfaces.

FreeOpen source

Vercel's provider-agnostic TypeScript toolkit for AI apps and agents, with UI hooks for React and other frameworks.

FreeOpen source

MCP servers for this

Figma's MCP server that gives coding agents design context from Figma files and can write back to the canvas.

Free plan + paid

Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.

Free plan + paidOpen source

Skills for this

Anthropic skill that steers Claude toward deliberate, non-generic visual design when building or reshaping UI.

FreeOpen source

Design skill for coding agents with 24 commands to steer, critique and audit UI, plus a rule-based detector for AI-slop patterns.

FreeOpen source

Meng To's collection of 200+ agent skills for landing pages, Three.js 3D scenes, games, illustration and design workflows.

FreeOpen source

Related resources

StackBlitz's in-browser AI builder that creates websites, web apps and mobile apps from text prompts.

Free plan + paidDeal

Figma's prompt-to-app tool that turns prompts and Figma designs into code-backed prototypes and web apps you can publish.

Free plan + paid

Browser-based AI builder that turns plain-language descriptions into full-stack web apps backed by editable code.

Free plan + paid

Type to search. Use ↑ ↓ and Enter.