Connect any agent
to any user.
The Enterprise Agentic Frontend Stack. Build rich agentic applications that learn from every interaction. Self-hostable and built to scale with your org.
Trusted by the majority of the Fortune 500s and Global 50.
The company behind AG-UI, the Agent-User Interaction protocol.
First party integrations from the leading agent stacks.
Why CopilotKit.
One: your CopilotKit Agent doesn’t just talk about your product; it deeply interacts with it. Ask a question and get back a real chart or a real form, drawn in your own design, not a wall of text. It works in the app right beside your users, on the same live screen. Whatever it makes, stays made.
Two: it gets better the longer you own it, because it learns from how your users actually work. Most software starts depreciating the day you buy it. This one appreciates.
Three: every action is on the record, fully auditable, and your data stays yours. Fully self-hosted, or Cloud.
Four: choosing CopilotKit isn’t a bet on a vendor. Practically every agent framework and harness on the market already speaks our protocol, AG-UI. It’s the layer the ecosystem already runs on.
Loved by developers.
Build rich agentic applications for any surface.
// pre-built chat, styled with your CSS
<CopilotChat agentId="support"
className="acme-chat" />
// or swap any subcomponent via slots
<CopilotChat
messageView={AcmeMessages}
input={AcmeInput} />
// or fully headless
const { agent } = useAgent();
{ agent.messages.map((m) => (
<AcmeBubble key={m.id}> {m.content} </AcmeBubble>
)) }// Controlled generative UI
useComponent({
name: "showRefundStatus",
description: "Show a refund status card.",
parameters: z.object({
orderId: z.string(),
amount: z.number(),
method: z.string(),
}),
// your component, your design system
render: RefundStatusCard,
});
const RefundStatusCard = ({ orderId, amount }) => (
<Card>…</Card> // breakdown pie, your design system
);useHumanInTheLoop({
name: "chooseRefundMethod",
parameters: z.object({ orderId: z.string() }),
render: ({ respond }) => (
<RefundMethodChoice
options={["original card", "store credit"]}
allowCustomAnswer
onChoose={(answer) => respond?.(answer)}
/>
),
});useFrontendTool({
name: "selectOrder",
description: "Open an order in the dashboard.",
parameters: z.object({ orderId: z.string() }),
handler: async ({ orderId }) => {
openOrder(orderId); // your app code
return { status: "selected", orderId };
},
});const handler = createCopilotRuntimeHandler({
runtime,
hooks: {
onRequest: ({ request }) => {
const jwt = request.headers.get("authorization");
const user = verifyJwt(jwt);
if (!user)
throw new Response(null, { status: 401 });
// agent runs are tied to this user
},
},
});const { agent } = useAgent({ agentId: "support" });
// read the agent's shared state
agent.state.focus // "refunds"
// write it, the agent sees the change
agent.setState({ ...agent.state, focus: "returns" });Use cases & templates
Ready-made templates for many top use cases. Quick to start, fully customizable.
SaaS Agent
Embed a sophisticated agent that knows everything about your product. It works alongside your users, takes complex actions inside your app, and renders generative UI built from your own components. It learns as it works — adapting to each user while the whole agent improves.
Use any agent framework or harness — LangChain, Claude Agents, OpenAI Agents, ADK, Strands, Mastra, and more.
Review our renewals and handle anything at risk.
thought · 3 steps
Scanning the renewals pipeline
read_pipeline()
Pulling usage & ticket history
get_usage()search_tickets()
Drafting actions for 4 accounts
draft_actions()
Done — here's where the book stands:
Northwind flagged · usage −34%
Recent coverage and talks
From a Series A in TechCrunch to a hands-on course on DeepLearning.AI, CopilotKit is shaping the next wave of AI agent interfaces.

CopilotKit raises $27M to help devs deploy app-native AI agents
TechCrunch covers our Series A — scaling the open-source AG-UI protocol and helping developers embed AI agents directly inside their applications.
Read the article
Build Interactive Agents with Generative UI
CEO Atai Barkai teaches a hands-on short course on building fullstack agents that render rich, interactive UI on demand with CopilotKit and AG-UI.
Take the course
Generative UI for any agent, anywhere
Atai joins Google Cloud Tech to walk through A2UI, AG-UI, MCP Apps, and the protocols making in-app generative UI work across any agent.
Watch the talkAutomatic Learning
Your agents automatically get smarter, faster, and cheaper.
User interactions over time
How automatic learning works
Every interaction is captured.
In-chat & in-app.
What users do in your app: clicks, edits, and navigation outside the chat.
The back-and-forth with the agent, plus feedback signals: approvals, edits, retries.
Define learning containers for users, groups of users, or entire organizations.
Your agent automatically improves with every interaction.
Enterprise Ready. Future-proof your organization.
Self-host both the open-source SDK and the enterprise runtime. Nothing leaves your infrastructure. Or use our managed Cloud for added convenience.
AG-UI works with the stacks your teams use today, and whatever they adopt next.
No new data store to trust. Everything persists in the database you already run.
Use observed outcomes and human feedback to improve prompts, routing, workflows, and UI behavior while you own the learning loop.
Product analytics for agentic products.
See what works, what stalls, and which surfaces need better interaction design. Every event stays tied to outcomes, tags, and the user surface where it happened.
Interaction trace · one run, stop by stop
Built with teams shipping agentic products.
“The CopilotKit SDK has accelerated our development processes and enabled us to help our users accomplish their tasks more quickly and with more confidence.”
Mark Peterson, VP of Software Engineering
Docusign
“The AG-UI architecture lets us cleanly decouple our agent framework from the frontend, so we can evolve each independently. The pre-built component library saved us from rolling our own.”
Bryan Godwin, CTO
Evergreen Wealth
Start building
Enhance your applications
with powerful AI capabilities



