CopilotKit is an open-source SDK positioned as the "frontend stack for agents and generative UI," used to build full-stack agent applications, generative UI, and chat applications. It started as a React library and has since evolved into a horizontal layer between agents and users: the same agent can drive web apps, mobile apps, and a team's Slack or Microsoft Teams workspace. CopilotKit is the company behind the AG-UI protocol, which has been adopted by Google, LangChain, AWS, Microsoft, Mastra, PydanticAI, and others.
Main capabilities
- Chat UI: A fully customizable chat interface that supports message streaming, tool calls, and agent responses.
- Backend tool rendering: Allows agents to call backend tools, and the returned UI components are rendered directly on the client.
- Generative UI: Agents can dynamically generate and update UI components at runtime based on user intent and agent state.
- Shared state: A synchronized state layer that both agents and UI components can read from and write to in real time.
- Human-in-the-loop: Agents can pause execution and request user input, confirmation, or edits before continuing.
- Rich threads: Conversations can persist across reloads, devices, and sessions, with generative UI remaining intact.
- Auto-learning: Agents improve from real usage, and completed threads become reviewed skills, without a fine-tuning process.
How to use
- Can be integrated via coding agents: Use a coding agent to inspect the project and guide integration, with official prompts provided.
- Can add agent skills: If you are already using CopilotKit or have just finished setup, you can add official agent skills to help coding agents build features and debug issues.
- Can start a new project: Set up a project in a standalone directory without modifying an existing application.
- Provides the useAgent Hook: Built directly on AG-UI, it provides full programmatic control over the agent connection.
- Provides an AG-UI agent app startup method, which can connect agent workflows to user-facing applications.
Use cases
- Developers who need to embed agent or chat functionality in frameworks such as React, Angular, Vue, and React Native.
- Teams that need to deploy the same agent to the web, mobile, and chat platforms such as Slack and Microsoft Teams.
- Applications that need advanced interaction patterns such as generative UI, shared state, and human-in-the-loop workflows.- Projects that need production-grade capabilities such as rich thread persistence, user memory, product analytics, and auto-learning can choose CopilotKit Intelligence.
Limitations and notes
- Official materials do not provide specific pricing, prices, or detailed contents of each plan; they only mention that Intelligence has both a hosted platform and self-hosting options, and recommend checking the Intelligence overview to learn what each plan includes.
- The repository source code uses the MIT license.
- Official materials do not provide specific installation commands or code examples; they only explain that integration can be done through coding agents or by starting a new project.
- For more details on the AG-UI protocol, Channels SDK, and more, the official recommendation is to consult the corresponding documentation.