{
 "schema_version": 1,
 "generated": "2026-10-30",
 "id": "copilotkit-copilotkit--add-an-agent-to-your-existing-react-app",
 "repo": "CopilotKit/CopilotKit",
 "repo_url": "https://github.com/CopilotKit/CopilotKit",
 "repo_slug": "copilotkit-copilotkit",
 "title": "Add an agent with chat and generative UI to your existing app",
 "page_title": "How to add an agent with chat and generative UI to your existing app with Copilot Kit",
 "summary": "Let your coding agent run Copilot Kit's onboarding command, which inspects your project and guides the integration.",
 "who": "A developer with a working React or Next.js app who wants an in-app agent.",
 "problem": "Wiring chat, tool calls and UI updates between an agent and a frontend by hand takes days.",
 "outcome": "Copilot Kit integrated in your app with a chat UI that streams messages and renders tool calls.",
 "steps": [
  "Open your coding agent at the root of your project",
  "Give it the README prompt that runs `npx --yes copilotkit@latest onboard start`",
  "Follow the onboarding instructions it prints",
  "Test the chat UI and one backend tool that renders UI in the client"
 ],
 "agent_prompt": "Help me get started with CopilotKit/CopilotKit. From the root of my project run npx --yes copilotkit@latest onboard start, follow its instructions for my <framework> app, and add one tool that renders UI.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js and npx",
  "An existing React, Angular, Vue or React Native app, or a new one scaffolded by the CLI",
  "An agent backend or LLM provider for the agent"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/copilotkit-copilotkit/add-an-agent-to-your-existing-react-app/",
 "md": "https://dedupedai.com/use-cases/copilotkit-copilotkit/add-an-agent-to-your-existing-react-app/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/copilotkit-copilotkit--add-an-agent-to-your-existing-react-app.json",
 "api_version": "v1"
}
