Who it is forA developer with a working React or Next.js app who wants an in-app agent.
The problemWiring chat, tool calls and UI updates between an agent and a frontend by hand takes days.
The outcomeCopilot Kit integrated in your app with a chat UI that streams messages and renders tool calls.
What you need first
- 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
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
Prompt for your agent
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.
Caveat.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for CopilotKit/CopilotKit and "Add an agent with chat and generative UI to your existing app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer