anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

CopilotKit’s open source frontend stack for AI agents, from the makers of the AG-UI protocol. Bring your own agent or use the built-in one, and give your users a chat inside your app. The notes cover each frontend, models and coding agents.
CopilotKit is an open-source project on GitHub in the Developer category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.
npx create-next-app@latest my-copilot-app cd my-copilot-app npm install @copilotkit/react-core @copilotkit/runtime
And 2 more in Where to use it
CopilotKit is an open source stack for putting an AI agent in front of the people who use your app. You bring the agent, built on LangGraph, CrewAI, Mastra or another framework, or you use CopilotKit’s built-in one. CopilotKit gives it a chat, generative UI, shared state and human-in-the-loop. Copilot Runtime sits on your server and talks to the agent. A frontend package shows the chat in React, Angular, Vue or React Native. Events between them stream over AG-UI, an open protocol from the same team. The code is under the MIT license.
Developers who have an agent, or want one, and need a place inside a real app where users talk to it. React and Next.js developers get the most complete route, since the README marks that surface GA. Angular, Vue and React Native are marked supported. Teams whose graph already runs on LangGraph can keep it where it runs. The LangGraph page says nothing inside the graph changes. They add a runtime route that registers it, and the frontend.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| SaaS and web apps | Front-end and full-stack developers | Add a sidebar or popup chat backed by the built-in agent | A developer adds CopilotSidebar to a Next.js page and asks it for a joke, as the Quickstart does. |
| AI agent teams | Developers with a LangGraph graph | Keep the graph where it runs and register it in the runtime | A team points LangGraphAgent at its LangGraph Platform deployment and leaves its nodes alone. |
| Mobile apps | React Native developers | Build their own chat screen from headless hooks | A developer runs the chat on an Android emulator that reaches the runtime at 10.0.2.2, as the React Native page shows. |
| Scheduling and workflow apps | Product teams | Let the agent stop for a person’s choice before it acts | An agent asks the user to pick a call time from a time picker, as the human-in-the-loop demo does. |
Skip it if you want a chatbot without writing code. Every route here has you edit an app and host the runtime yourself.
CopilotKit runs inside your own app, on the frontends and agent backends the README lists.
Get it saves a zip of Mindket’s setup notes in your downloads folder. It holds a file for each frontend, the LangGraph route, models and keys, and each coding agent. Below is Next.js by hand, from the README and the Quickstart.
| Need | Detail |
|---|---|
| A model key | An OpenAI key for the Quickstart. Anthropic, Google and MiniMax keys work too, and OPENAI_BASE_URL reaches other OpenAI-compatible endpoints |
| Node.js | 20 or newer for Next.js, Vue and React Native, 20.6 or newer for a React single-page app, 22 for Angular, and 20.9.0 or newer for the npx copilotkit@latest CLI (its npm engines field) |
| A frontend | React 18 or newer for a single-page app, Vue 3.3 or newer, Angular 22, or React Native 0.70 or newer (0.72 or newer for the /headless route, with the Metro flag below 0.79) |
| A package manager | The docs show npm, pnpm, yarn and bun |
npx create-next-app@latest my-copilot-app cd my-copilot-app npm install @copilotkit/react-core @copilotkit/runtime
The README’s runtime route:
// 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-5.4-mini" }) },
});
const handler = createCopilotRuntimeHandler({
runtime,
basePath: "/api/copilotkit",
});
export { handler as GET, handler as POST, handler as PATCH, handler as DELETE };And its page:
// 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>
);
}If you would rather not wire it by hand, paste the README’s prompt into your coding agent. It has the agent run npx --yes copilotkit@latest onboard start and walk you through the setup. The create command below scaffolds a new app in its own folder and leaves an existing app alone.
npx copilotkit@latest create
You talk to the agent in the chat, and your own code decides what else it can reach in the app. These React pieces come from the README and the docs pages Mindket read.
| Piece | What it does |
|---|---|
| CopilotChat, CopilotSidebar, CopilotPopup | Three layouts of the same chat: placed anywhere, a collapsible side panel, or a floating bubble |
| useAgent | Reads and writes the agent’s state and gives you direct control of the agent connection |
| useFrontendTool | Lets the agent call functions in your app, with your code doing the work |
| useHumanInTheLoop | Shows your own component when the model asks the user something, then returns the answer to the agent |
| useInterrupt | Renders the pause when a LangGraph node calls interrupt(), then resumes the run |
In a development build, an Inspector button sits in the corner of the app. It lists your agent, the AG-UI events of each run and the tools registered in the browser. Each web quickstart ends by checking that the agent shows up there and that events move when you send a message. React Native has no Inspector, since it is a browser overlay.
Your app shows a todo list that reads agent.state.todos, with CopilotChat beside it, as on the Shared State page. You type this into the chat.
Add a task to buy groceries
The agent updates the shared state, and the todo list shows the new item at once. You write no backend code for this, because the Built-in Agent has the state tools AGUISendStateSnapshot and AGUISendStateDelta by default. The runtime sends each update to the browser over SSE, and useAgent re-renders the list.
If you are new. An agent is a language model that can call tools and work through steps. CopilotKit is the part your users see. The runtime is a small server piece that holds your model key and talks to the agent, so the key stays out of the browser. AG-UI is the stream of events between the agent and your page: text, tool calls and state changes. Human-in-the-loop means the agent stops and waits for a person’s answer. Start with the Next.js steps above and the built-in agent. It needs only an OpenAI key.
For experts. The Built-in Agent runs on AI SDK 6 from Vercel. A model string is provider:model, and the id goes to the provider unchanged. With OPENAI_BASE_URL set to a host that is not OpenAI or Azure, it switches to the Chat Completions API, and COPILOTKIT_OPENAI_API lets you pick the API yourself. A custom model is any AI SDK model from a provider package on its ai-v6 line. For OpenAI-compatible services, call provider.chat(model), since the bare call goes to the Responses API.
Generative UI comes three ways. Controlled UI picks from components you registered, declarative UI renders an A2UI spec, and open-ended UI runs a full interface in a sandbox through MCP Apps. For pauses, useHumanInTheLoop is a tool the model chooses to call, while useInterrupt follows an interrupt() inside a LangGraph node. The docs say the Built-in Agent does not support interrupts.
In the React SPA, Vue, Angular and React Native quickstarts, the runtime is its own Node server built with createCopilotNodeListener. Its CORS is off by default, so a browser app on another port needs cors: true and an absolute runtimeUrl. The docs note that the Express and Hono adapters default to permissive CORS. The /v2 subpaths need moduleResolution set to bundler in tsconfig.json, or type checking fails while the app still runs.
The open-source packages run in your app and on your server. A few parts reach out, and one is commercial.
This kit holds setup notes only. Mindket wrote them. CopilotKit's packages, runtime and docs come from its maker's repository and site: https://github.com/CopilotKit/CopilotKit and https://docs.copilotkit.ai
These notes are not made or endorsed by CopilotKit. The README opens with "CopilotKit is the open-source stack for putting AI agents in front of real users." It adds "Bring the agent you already built, on any framework, and give it chat, generative UI, shared state, and human-in-the-loop in React, Angular, Vue, React Native, Slack, and Microsoft Teams." The documentation is at https://docs.copilotkit.ai
License: MIT. The README says "The source code in this repository is available under the MIT License". The LICENSE file (https://github.com/CopilotKit/CopilotKit/blob/main/LICENSE) is the standard MIT text and reads "Copyright (c) Atai Barkai".
Two things sit next to the open-source packages. CopilotKit Intelligence is the production layer the README describes (threads, memory, learning, analytics, channels), cloud-hosted or self-hosted, and the README says its Developer plan is free. CopilotKit Soar is a commercial product in early access. These notes cover the open-source packages and the way coding agents learn them. They do not cover Intelligence or Soar beyond the places the quickstarts mention them.
CopilotKit has a frontend that shows the chat and a runtime that sits on a server and talks to the agent. The docs give a separate quickstart for each frontend and each agent backend:
npx copilotkit@latest CLI needs 20.9.0 or newer, by its npm engines field./headless route, with the Metro flag below 0.79).The README gives three starting routes.
A coding agent walks you through it. Paste this prompt into Claude Code, Cursor, Codex or another coding agent running in your project:
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
A new project, scaffolded in its own directory. The README says it won't touch an app you already have:
npx copilotkit@latest create
Skills that teach your coding agent CopilotKit:
npx copilotkit@latest skills install
Or install the packages by hand into an existing app:
npm install @copilotkit/react-core @copilotkit/runtime
Source for all four: https://github.com/CopilotKit/CopilotKit/blob/main/README.md
@copilotkit/react-core is the React package: the provider, the chat components, the hooks and the stylesheet.@copilotkit/runtime is the server-side package: CopilotRuntime, the built-in agent and the HTTP handlers.@copilotkit/vue, @copilotkit/angular and @copilotkit/react-native are the packages for those frontends.copilotkit npm package is the command-line tool that npx copilotkit@latest runs. Its npm page lists its repository as https://github.com/CopilotKit/Intelligence and its license as "SEE LICENSE IN LICENSE", so it is not the MIT text of the repository these notes come from. Mindket did not read that license.The pages Mindket read give no update or uninstall steps for the packages. Use your package manager's own commands. For the MCP docs server in Claude Code, the docs give claude mcp remove copilotkit-mcp -s project (setup/claude-code.md). Skills installed with npx skills add come from Vercel Labs' skills tool, whose README lists npx skills list, npx skills update and npx skills remove.
The open-source packages send metadata-only telemetry. The docs say it holds no prompts, messages, agent state or tool data, and that setting COPILOTKIT_TELEMETRY_DISABLED=true turns it off. Details and the page: setup/inspector-and-telemetry.md.
Your server sends the conversation to the model provider you choose. The CLI talks to a CopilotKit workspace, and the MCP docs server runs at https://mcp.copilotkit.ai. CopilotKit Intelligence is a separate hosted or self-hosted service you opt into.
README.md 6 KB setup/angular.md 3 KB setup/chat-layouts-and-features.md 3 KB setup/claude-code.md 2 KB setup/codex.md 1 KB setup/cursor.md 1 KB setup/inspector-and-telemetry.md 2 KB setup/langgraph-python.md 4 KB setup/models-and-keys.md 3 KB setup/next-js.md 5 KB setup/other-agents.md 2 KB setup/react-native.md 5 KB setup/react-spa-vite.md 4 KB setup/vue.md 3 KB
Updated by Mindket to the current version of this kit.
Listed GitHub projects in the same category that share the most topics with this one.
| Product | Stars | Activity | Language | License | Last change |
|---|---|---|---|---|---|
| CopilotKit This page | 38,557 | Active | TypeScript | MIT | |
| RufloShares ai-assistant · agentic-ai · agents | 81,187 | — | — | MIT | — |
| DifyShares agent · agentic-ai · ai | 160,579 | — | — | — | — |
| 闲鱼智能监控系统Shares ai-assistant · ai | 18,425 | Quiet | Python | MIT | |
| Hermes AgentShares ai-agent · ai | 261,224 | — | — | MIT | — |
| Spec KitShares copilot · ai | 148,439 | Active | Python | MIT |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
langgenius · Kit
LangGenius’s open-source platform for building LLM apps: visual workflows, RAG, model management and agents with a sandbox. Its difyctl tool and skill let Clau…
ruvnet · Kit
ruvnet’s free, MIT-licensed layer that adds agent swarms, shared memory, a console and an MCP server to Claude Code and Codex. It was called Claude Flow. The s…
khoj-ai · Kit
Khoj’s AGPL-3.0 personal AI app that answers from the web and from your own notes and documents. The setup notes cover running it with Docker or pip, picking a…