mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
de9d46d1df
Bring the agent skills in line with the shipped v2 API so their examples install, compile, and connect. Extends #5345 (which migrated the copilotkit-setup SKILL.md body) to the rest of the skills. - Imports: drop the nonexistent @copilotkit/react and @copilotkit/agent packages and the bare @copilotkit/runtime/express subpath; use @copilotkit/react-core/v2 and @copilotkit/runtime/v2 (+ /v2/express), and createCopilotHonoHandler / createCopilotExpressHandler rather than the deprecated createCopilotEndpoint aliases. - Provider: CopilotKit from @copilotkit/react-core/v2 with useSingleEndpoint={false} on multi-route setups (the v1-compat bridge defaults to single transport and would 404 a multi-route backend). - Routes: v2 catch-all Hono handler exporting GET/POST/PATCH/DELETE via handle() from hono/vercel, replacing the v1 copilotRuntimeNextJSAppRouterEndpoint + ExperimentalEmptyAdapter. - Integrations: per-framework agent classes matched to the shipped examples (LangGraphAgent/LangGraphHttpAgent from @copilotkit/runtime/ langgraph, CrewAIAgent, MastraAgent, LlamaIndexAgent, HttpAgent from @ag-ui/client; Agno via HttpAgent, not @ag-ui/agno). - Hooks/props: correct useAgent, useThreads, useRenderTool, identifyUser, and the chat-component props (defaultOpen, onSubmitMessage, the headless CopilotChatView render prop). Validated across review rounds and a build test against the published @copilotkit/*@1.60.0 packages (tsc passes, every /v2 subpath resolves). Regenerated the skills/runtime and skills/react-core mirrors.
CopilotKit - Runtime
✨ Why CopilotKit?
- Minutes to integrate - Get started quickly with our CLI
- Framework agnostic - Works with React, Next.js, AGUI and more
- Production-ready UI - Use customizable components or build with headless UI
- Built-in security - Prompt injection protection
- Open source - Full transparency and community-driven
🧑💻 Real life use cases
Deploy deeply-integrated AI assistants & agents that work alongside your users inside your applications.
🏆 Featured Examples
Documentation
To get started with CopilotKit, please check out the documentation.
Analytics & Privacy
CopilotKit uses Scarf for anonymous usage analytics to help improve the product. Scarf handles all privacy compliance and does not store raw IP addresses. This helps us understand how CopilotKit is being used and prioritize improvements.
Opting Out
To disable analytics, set the environment variable:
export COPILOTKIT_TELEMETRY_DISABLED=true
Or use the DO_NOT_TRACK standard:
export DO_NOT_TRACK=1