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.
What is CopilotKit?
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!
Quick Start
Setup with your coding agent
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
Want to use our agent skills?
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 install
Start a new project
Scaffolds a project in its own directory. It does not modify an app you already have.
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
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.
Your agent logic stays the same — AG-UI handles the wire protocol, CopilotKit handles the UI layer for each framework and channel.
💬 Channels: One Agent, Every Chat App
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.
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>
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.