What problem does it solve? Setting up CopilotKit requires coordinating frontend packages, a server-side runtime, endpoint factories, and provider configuration across different frameworks, which is error-prone when done manually. ## Core Features & Use Cases - Framework Detection: Identifies Next.js App Router, Pages Router, Vite + React, Angular, or standalone backends from project files before generating code. - Runtime Wiring: Generates runtime endpoints using createCopilotEndpoint variants for Hono or Express, in multi-route or single-route styles. - Provider & Chat UI Setup: Configures CopilotKitProvider with CopilotChat, CopilotSidebar, or CopilotPopup, including stylesheet imports and environment variables. - Use Case: Add a working AI chat sidebar to an existing Vite + React app with a standalone Express backend running a BuiltInAgent connected to OpenAI. ## Quick Start Set up CopilotKit in my Next.js App Router project with a BuiltInAgent backend and a chat interface.