copilotkit-integrations

Connects external agent frameworks to CopilotKit applications via the AG-UI protocol.

Updated May 9, 2026
One-click install
npx skills add https://github.com/diegoc1005/hackAI --skill copilotkit-integrations-diegoc1005
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: copilotkit-integrations
Source: https://github.com/diegoc1005/hackAI/tree/main/.cursor/skills/copilotkit-integrations
Command: npx skills add https://github.com/diegoc1005/hackAI --skill copilotkit-integrations-diegoc1005

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Wiring an external agent framework like LangGraph, CrewAI, or PydanticAI into a CopilotKit frontend requires knowing the correct AG-UI adapter, client class, server pattern, and port configuration for each framework, which is error-prone without a reference. ## Core Features & Use Cases - Framework Decision Tree: Routes you to the correct integration guide based on language (Python, TypeScript, .NET) and framework (LangGraph, CrewAI, PydanticAI, Mastra, ADK, LlamaIndex, Agno, Strands, Microsoft Agent Framework, A2A). - Per-Framework Reference Guides: Detailed integration docs covering agent definition, FastAPI server setup, Next.js route configuration, and shared state management for each supported framework. - Common AG-UI Patterns: Ready-to-use frontend snippets for CopilotKitProvider, useAgent shared state, useFrontendTool, useRenderToolCall generative UI, and useHumanInTheLoop approval flows. - Use Case: You have a CrewAI Flow agent and a Next.js app. Use this Skill to learn that you need add_crewai_flow_fastapi_endpoint on the server, HttpAgent from @ag-ui/client in the route, and CopilotKitState for shared state. ## Quick Start Ask the agent to show you how to connect your LangGraph Python agent to a CopilotKit Next.js frontend using the AG-UI protocol.

Frequently Asked Questions about copilotkit-integrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a LangGraph agent to CopilotKit?▼

Wrap your compiled graph with LangGraphAGUIAgent and serve it via add_langgraph_fastapi_endpoint on FastAPI. In the Next.js route, use LangGraphHttpAgent from @copilotkit/runtime/langgraph pointing at the agent URL, typically port 8123.

How do I choose the right CopilotKit integration for my agent framework?▼

First check the language: TypeScript agents use Mastra or LangGraph JS integrations, while Python and .NET agents use framework-specific adapters. The decision tree in the skill maps each framework to its reference guide, AG-UI client class, and default port.

What is the difference between LangGraphAgent and LangGraphHttpAgent?▼

LangGraphHttpAgent connects to a self-hosted FastAPI server via a plain URL. LangGraphAgent connects to a LangGraph Platform deployment using deploymentUrl, graphId, and an optional langsmithApiKey.

Does CopilotKit support multi-agent orchestration across frameworks?▼

Yes, via A2A Middleware. A2AMiddlewareAgent from @ag-ui/a2a-middleware wraps an orchestrator agent, registers specialized agent URLs, and injects a send_message_to_a2a_agent tool so agents built with different frameworks can be coordinated.

How does shared state sync between the agent and the CopilotKit frontend?▼

Agents emit STATE_SNAPSHOT events over the AG-UI protocol, and the frontend reads state with the useAgent hook. Each framework handles this differently, for example PydanticAI returns StateSnapshotEvent from tools while ADK uses ToolContext.state.

Can I use Microsoft Agent Framework with CopilotKit in .NET?▼

Yes, the .NET integration uses Microsoft.Agents.AI.Hosting.AGUI.AspNetCore. Register services with builder.Services.AddAGUI(), map the endpoint with app.MapAGUI, and wrap your ChatClientAgent in a SharedStateAgent for state management.