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, or Angular from project files before generating any code. - Runtime Wiring: Generates runtime endpoints using createCopilotEndpoint or single-route variants for Hono and Express backends with BuiltInAgent. - Provider & Chat UI Setup: Configures CopilotKitProvider with the correct runtimeUrl and adds CopilotChat, CopilotSidebar, or CopilotPopup components. - Use Case: Add a working AI chat sidebar to an existing Vite + React app with a standalone Express backend running a BuiltInAgent on OpenAI, including stylesheet imports and environment variables. ## Quick Start Set up CopilotKit in my Next.js App Router project with a chat interface connected to a BuiltInAgent runtime.