CopilotKit: An open-source stack for putting AI agents in front of real users.
What problem it solves
Developers need a consistent way to expose agents through user-facing interfaces without rewriting agent logic for every frontend. They also need chat, generative UI, shared state, and human approval to work together across web, mobile, and messaging surfaces.
Key features
Agent-powered interfaces — Transform agent activity into interactive product experiences that show progress, access application context, render tools, and request human approval.
Source: README
Multiple generative UI approaches — Support agents that select registered components, describe interfaces with structured specifications, or provide complete sandboxed interfaces.
Source: README
Shared state and frontend tools — Let agents and application interfaces read and write the same state while enabling agents to perform actions through application code.
Source: README
Broad frontend and framework support — Connect one agent backend to React, Next.js, Angular, Vue, React Native, Slack, Microsoft Teams, and other supported surfaces.
Source: README
Production continuity and learning — Extend agent applications with resumable conversations, cross-session memories, analytics, continual learning, and self-hosted deployment options.
Source: README
Quick start
Copied verbatim from the project's README.
npm install @copilotkit/react-core @copilotkit/runtime// app/api/copilotkit/[[...slug]]/route.ts
import {
CopilotRuntime,
createCopilotRuntimeHandler,
BuiltInAgent,
} from "@copilotkit/runtime/v2";
const runtime = new CopilotRuntime({
agents: { default: new BuiltInAgent({ model: "openai:gpt-6-luna" }) },
});
const handler = createCopilotRuntimeHandler({
runtime,
basePath: "/api/copilotkit",
});
export { handler as GET, handler as POST, handler as PATCH, handler as DELETE };// app/page.tsx
"use client";
import { CopilotKitProvider, CopilotSidebar } from "@copilotkit/react-core/v2";
import "@copilotkit/react-core/v2/styles.css";
export default function Page() {
return (
<CopilotKitProvider runtimeUrl="/api/copilotkit">
<main>
<h1>Your App</h1>
<CopilotSidebar />
</main>
</CopilotKitProvider>
);
}Who it may suit
This project may suit frontend and agent developers who want to connect an existing agent backend to conversational and generative interfaces across multiple application surfaces.
Topics to discuss
Which generative UI approach works best for each agent and frontend?
How should shared agent state be modeled across web and messaging surfaces?
What safeguards should teams adopt when agents pause for human approval?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/CopilotKit/CopilotKit#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…