
Framework CopilotKit
CopilotKit
Open-source frontend stack for putting agents in front of users: chat, generative UI, shared state and human-in-the-loop.
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
npx copilotkit@latest createnpm install @copilotkit/react-core @copilotkit/runtimeCommands 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.
Vercel's provider-agnostic TypeScript toolkit for AI apps and agents, with UI hooks for React and other frameworks.
MCP servers for this
Figma's MCP server that gives coding agents design context from Figma files and can write back to the canvas.
Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.
Skills for this
Anthropic skill that steers Claude toward deliberate, non-generic visual design when building or reshaping UI.
Design skill for coding agents with 24 commands to steer, critique and audit UI, plus a rule-based detector for AI-slop patterns.
Meng To's collection of 200+ agent skills for landing pages, Three.js 3D scenes, games, illustration and design workflows.
Related resources
StackBlitz's in-browser AI builder that creates websites, web apps and mobile apps from text prompts.
Vercel's open-source Next.js and AI SDK template for building a full chatbot app with auth and saved history.
Figma's prompt-to-app tool that turns prompts and Figma designs into code-backed prototypes and web apps you can publish.
Browser-based AI builder that turns plain-language descriptions into full-stack web apps backed by editable code.