BigHugger
sk Skill · CopilotKit

react-core

@copilotkit/react-core — mount the CopilotKit provider (from @copilotkit/react-core/v2) in a Next.js App Router / React Router v7 / TanStack Start / SPA app, drop in CopilotChat/CopilotPopup/CopilotSidebar (v2 chat components ship from react-core/v2 — NOT react-ui, which is CSS-only in v2), access and subscribe to agents with useAgent / useAgentContext / useCapabilities, switch between multiple agents, manage…

installs 8w
1,418
30-day movement
starts with the next reading
Related entries
1
Connections
0
TypeScript

An agent skill documenting @copilotkit/react-core, the React frontend half of CopilotKit. It covers mounting the v2 CopilotKit provider, wiring chat surfaces (CopilotChat/Popup/Sidebar), and the hooks for agents, threads, frontend tools, tool rendering, human-in-the-loop gating, attachments, and message renderers.

Use it when building or debugging a React app that talks to CopilotKit agents, since it encodes the v2 import paths, invariants, and hook usage that are easy to get wrong.

Use it to

  • Mount the CopilotKit provider in Next.js, React Router, TanStack Start, or SPA apps
  • Add a chat surface with CopilotChat, CopilotPopup, or CopilotSidebar
  • Register browser-side tools and custom tool-call renderers
  • Manage and switch between agents and durable Intelligence threads
  • Gate agent execution with human-in-the-loop and wire file attachments

For Developers adding CopilotKit agent frontends to React apps

Host repository
CopilotKit/CopilotKit
Installs, lifetime
2,800
Installs, 8 weeks
1,418
Host stars
37k
Host language
TypeScript
topicsreactcopilotkitai-agentschat-uihooksskill