CopilotKit
Frontend stack for agents

CopilotKit connects agent backends to real product interfaces.

Build chat, generative UI, shared state, canvas apps, and human-in-the-loop workflows on top of LangGraph, Google ADK, Mastra, PydanticAI, CrewAI, the built-in agent, or any AG-UI compatible backend.

Start with the built-in agent
npx copilotkit@latest create
Frontend
React UX primitives

Chat, generative UI, shared state, and HITL controls.

Runtime
AG-UI transport

Event streams, tools, state snapshots, and observability.

Agent
Any backend

LangGraph, ADK, Mastra, CrewAI, PydanticAI, and more.

LangGraphGoogle ADKMastraPydanticAICrewAIAG-UI

Continue with CopilotKit's Built-in Agent

Code examples and generated snippets are scoped to CopilotKit's Built-in Agent. Switch the backend whenever you want a different stack.

Active backend

Switch backend

Pick another backend and the rest of the docs will render with its code.