Docs Β· Examples Β· CopilotKit Intelligence Β· Discord
Build agent-native applications β on any framework, on any surface.
Generative UI, shared state, and human-in-the-loop workflows for React, Angular, Vue, React Native, and in Slack and Microsoft Teams.
Add CopilotKit Intelligence when it goes to production: rich threads that persist with generative UI, user memories, and agents that automatically learn from real use.
CopilotKit is a best-in-class SDK for building full-stack agentic applications, Generative UI, and chat applications.
What started as a React library is now the horizontal layer between your agents and your users: the same agent can power your web app, your mobile app, and your team's Slack or Microsoft Teams workspace.
We are the company behind the AG-UI Protocol β adopted by Google, LangChain, AWS, Microsoft, Mastra, PydanticAI, and more!
Use your coding agent to add CopilotKit to your app. It will inspect your project and guide the integration.
Give your coding agent this prompt:
Help me get started with CopilotKit. From the root of my project, run this
command and follow the instructions:
npx --yes copilotkit@latest onboard start
Already using CopilotKit or just finished setup? Add our agent skills to help your coding agent build features and debug issues.
npx copilotkit@latest skills installScaffolds a project in its own directory. It does not modify an app you already have.
npx copilotkit@latest createcpk-cli.mp4
Whole.Generative.UI.v5.mp4
Features:
- Chat UI β A fully customizable chat interface that supports message streaming, tool calls, and agent responses.
- Backend Tool Rendering β Enables agents to call backend tools that return UI components rendered directly in the client.
- Generative UI β Allows agents to generate and update UI components dynamically at runtime based on user intent and agent state.
- Shared State β A synchronized state layer that both agents and UI components can read from and write to in real time.
- Human-in-the-Loop β Lets agents pause execution to request user input, confirmation, or edits before continuing.
- Rich Threads β Conversations that survive reloads, devices, and sessions, with their generative UI intact.
- Automatic Learning β Agents that improve from real usage: completed threads become reviewed Skills, with no fine-tuning pipeline.
CopilotKit Intelligence adds rich threads with generative UI, user memories, product analytics, inspection, and automatic learning to your agents. It works with your existing CopilotKit app and agent framework. Use our hosted platform or deploy it in your own infrastructure.
- Rich Threads β Conversations survive reloads, devices, and sessions, with messages, generative UI, and live runs restored as they were.
- User Memories β Durable facts and preferences carried across conversations, recalled semantically rather than by keyword.
- Automatic Learning β Completed threads become evidence-backed Insights and reviewed, reusable Skills you publish yourself. No fine-tuning pipeline.
- Product Analytics β See what your agents do and where users get value, from the same interaction data.
- Self-hosting β The same platform inside your own Kubernetes cluster, VPC, or data boundary.
See the Intelligence overview for what each plan includes.
π Connect Intelligence in 5 minutes β
CopilotKit connects your UI, agents, and tools into a single interaction loop.
This enables:
- Agents that ask users for input
- Tools that render UI
- Stateful workflows across steps and sessions
- One agent, deployed across web, mobile, and chat platforms
One agent backend. Every frontend.
| Platform | Status | Get Started |
|---|---|---|
| βοΈ React / Next.js | β GA | Quickstart |
| β Supported | Source Code & Quickstart | |
| π Vue | β Supported | Source Code - Quickstart coming soon |
| π± React Native | β Supported | Quickstart |
| π¬ Slack / Microsoft Teams | β Supported | Channels Β· Quickstart |
| π¬ Discord / WhatsApp / Telegram | β Channels SDK adapter (managed connection coming soon) | Channels |
| π Google Chat / iMessage / SMS | π‘ On the roadmap | Channels |
Your agent logic stays the same β AG-UI handles the wire protocol, CopilotKit handles the UI layer for each framework and channel.
The Channels SDK takes the agent you already built and drops it into the chat apps your users live in β same tools, same shared state, same human-in-the-loop, no rewrite (Learn more).
- Slack β Agents as first-class Slack apps: threads, tool calls, and human-in-the-loop approvals right in the channel.
- Microsoft Teams β Bring agentic workflows to the enterprise, where your org already lives.
π Explore Channels β
The useAgent hook sits directly on AG-UI, giving you full programmatic control over the agent connection.
// Programmatically access and control your agents
const { agent } = useAgent({ agentId: "my_agent" });
// Render and update your agent's state
return <div>
<h1>{agent.state.city}</h1>
<button onClick={() => agent.setState({ city: "NYC" })}>
Set City
</button>
</div>Check out the useAgent docs to learn more.
CopilotKit.UseAgent.Graphic.Motion_2.mp4
Generative UI is a core CopilotKit pattern that allows agents to dynamically render UI as part of their workflow.
demo-generative-ui.mp4
Generative UI educational repo β
Connect agent workflows to user-facing apps, with deep partnerships and 1st-party integrations across the agentic stackβincluding LangChain, CrewAI, Mastra, PydanticAI, and more.
Start a new AG-UI agent app:
npx create-ag-ui-app my-agent-appLearn more in the AG-UI README β
Join our Discord βRead the Docs β
Try CopilotKit Intelligence β Follow us on LinkedIn β
Follow us on X β
Thanks for your interest in contributing to CopilotKit! π
We value all contributions, whether it's through code, documentation, creating demo apps, or just spreading the word.
Here are a few useful resources to help you get started:
- For code contributions, CONTRIBUTING.md.
- For documentation-related contributions, check out the documentation contributions guide.
- Want to contribute but not sure how? Join our Discord and we'll help you out!
This repository's source code is available under the MIT License.


