CopilotKit Docs
Ask anything, explore the stack, or jump straight to what you need.
The Stack
Generative UI
Let your agent generate interactive React components on the fly. Tool-based, controlled, or fully agent-driven.
Tool-Based Approach
Register a frontend tool with useFrontendTool and the
agent calls it to render components in the chat.
When the agent calls this tool, CopilotKit renders your component inline. The user sees an interactive chart appear in the chat.
Agentic Approach
For long-running tasks, the agent orchestrates multi-step workflows and renders progress UI along the way. Try the demo →
Declarative (BYOC)
Use A2UI, Hashbrown, JSON Render, or other declarative renderers. The agent sends a schema, your renderer turns it into components.
API Reference
Key hooks: useFrontendTool,
useRenderTool, useComponent.
Full reference →
Feature Matrix
| Integration | Chat | Gen UI | HITL | State | Streaming | Sub-Agents | MCP | Voice |
|---|---|---|---|---|---|---|---|---|
|
LangGraph (Python) Agent Framework |
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | — | — |
|
Mastra Agent Framework |
○ | ○ | ○ | — | — | — | — | — |
|
Google ADK Enterprise |
○ | ○ | ○ | — | — | — | — | — |