Documentation
Welcome to CopilotKit
CopilotKit is the frontend stack for agents and generative UI. Connect any agent framework or model to your React app for chat, generative UI, canvas apps, and human-in-the-loop workflows.
Starting from scratch? Bootstrap a full-stack agent in one command:
npx copilotkit@latest createConcepts
Architecture, gen UI types, OSS vs Enterprise.
API Reference
Hooks, components, and config.
Generative UI
Render tools as React components.
Continue with AG2
We'll render every code snippet using AG2. Pick up where you left off — or switch backends below or from the sidebar.
Switch backend
Pick another backend and the rest of the docs will render with its code.
