OSS Agents JP
オープンソース AI エージェント 日本語ガイド
← 一覧へ
CopilotKit
OTHER

CopilotKit

CopilotKit

React/Angularベースのエージェント向けフロントエンドスタック。生成UIと人間ループをネイティブに統合し、AI対話インターフェースやエージェント機能を迅速に構築できます。

原文: The Frontend Stack for Agents & Generative UI. React + Angular. Makers of the AG-UI Protocol
#Agent#Generative UI#React#agent#agent-native#agentic-ai#agents#ai#ai-agent#ai-assistant#assistant#assistant-chat-bots
EDITOR'S TAKE

編集部メモ

AI エージェント UI の高速構築フレームワーク

React / Angular ベースのエージェント向けスタックで、Generative UI と Human-in-the-Loop をネイティブに統合します。AI が実行時に UI コンポーネントを生成・更新し、エージェントとユーザーの対話フローを設計しやすくしています。AG-UI Protocol により Google・AWS・Microsoft など主要ベンダーが採用しており、業界標準としての信頼性があります。エージェント型アシスタントやチャットボット、承認フローを含むワークフロー型アプリケーションの迅速な開発に向きます。

USE CASES

こんな場面で使う

  • 営業提案・稟議申請など多段階の判断を要する業務フローに、AI エージェントの判断とユーザー確認を統合したワークフローを構築する
  • チャットボットに確認ダイアログや編集画面をネイティブに埋め込み、ユーザー入力の確認・検証を含む対話フローを迅速に実装する
  • エージェント処理の進行状況や出力結果に応じて UI コンポーネントを動的に生成し、リアルタイムで更新されるダッシュボードを開発する
DIFFERENTIATOR

類似ツールとの違い

Generative UI(AI が UI を生成)という概念を核としており、LangChain・Vercel AI SDK のような既存ツールと差別化します。AG-UI Protocol という業界標準を提供し、Google・AWS・Microsoft が採用している点で長期的な互換性と信頼性が高いです。フロントエンド統合に徹した設計が特徴です。
CAVEAT

注意点・向かない用途

⚠️ React / Angular に依存するため他フレームワークへの拡張が困難です。Generative UI という新しい概念の理解とアーキテクチャ設計に学習コストがかかります。シンプルなチャットボットには過剰機能のため、複雑さが増すアプリケーション向けです。
BEST FOR

向いている読者

フロントエンド開発者エージェント開発者スタートアップ / Indie HackerHuman-in-the-Loop なワークフロー構築者

— OSS Agents JP 編集部による独自評価(CopilotKit に関する観察)

REPO STATS

リポジトリ統計

⭐ Stars
31.4k
🍴 Forks
4k
⚠️ Open Issues
483
🌿 Language
TypeScript
📄 License
MIT
🕒 最終更新
2026.05.14 (今日)
📅 公開日
2023.06.19
🌿 Branch
main
REFERENCE

公式ドキュメント(README)

本ハブの独自評価は上記「編集部メモ」が一次情報です。以下は GitHub README の参考転載(折りたたみ)。

📖 GitHub README の日本語訳を読む(AI 自動翻訳 / 参考情報)

— AI による自動翻訳 (2026.05.14 更新)。正確な情報は GitHub の原文 をご確認ください。

FavIcon

CopilotKit

生成的UI、共有状態、人間参画ワークフローを使用して、エージェントネイティブアプリケーションを構築します。

CopilotKit



CopilotKit とは

CopilotKit は、フルスタック agentic アプリケーション、Generative UI、チャットアプリケーションを構築するための最高クラスの SDK です。

Google、LangChain、AWS、Microsoft、Mastra、PydanticAI など、多くの企業に採用されている AG-UI Protocol の開発企業です。

Whole.Generative.UI.v5.mp4
1 分で AI をアプリに追加できます

機能:

  • Chat UI – メッセージストリーミング、ツール呼び出し、エージェント応答をサポートする React ベースのチャットインターフェースです。
  • Backend Tool Rendering – エージェントがバックエンドツールを呼び出し、UI コンポーネントをクライアントで直接レンダリングできます。
  • Generative UI – エージェントがユーザー意図とエージェント状態に基づいて、UI コンポーネントを動的に生成・更新できます。
  • Shared State – エージェントと UI コンポーネントがリアルタイムで読み書きできる同期状態レイヤーです。
  • Human-in-the-Loop – エージェントが実行を一時停止して、ユーザー入力、確認、または編集をリクエストしてから処理を続行できます。
full-headless-chat.mp4

クイックスタート

新規プロジェクト:

npx copilotkit@latest create -f <framework>

既存プロジェクト:

npx copilotkit@latest init
cpk-cli.mp4

得られるもの:

  • CopilotKit がインストールされています – コアパッケージはアプリに完全にセットアップされています
  • プロバイダが設定されています – Context、state、hooks を使用できる状態です
  • Agent <> UI が接続されています – Agent はアクションをストリーミングして UI を即座にレンダリングできます
  • デプロイ準備完了 – アプリはデプロイ可能な状態です

完全なはじめ方ガイド →

仕組み:

CopilotKit は UI、エージェント、ツールを 1 つのインタラクションループに接続します。

CopilotKit ダイアグラム — 2 倍速 6 秒版

これにより以下が実現されます:

  • ユーザーに入力を求める Agent
  • UI をレンダリングするツール
  • ステップとセッション全体にわたるステートフルなワークフロー

⭐️ useAgent Hook

useAgent フックは useCoAgent の適切なスーパーセットであり、AG-UI 上に直接配置され、エージェント接続に対するより高度な制御を提供します。

// Programmatically access and control your agents
const { agent } = useAgent({ agentId: "my_agent" });

// Render and update your agent's state
return <div>
  <h1>{agent.state.city}</h1>
  <button onClick={() => agent.setState({ city: "NYC" })}>
    Set City
  </button>
</div>

詳しくは useAgent ドキュメントをご確認ください。

CopilotKit.UseAgent.Graphic.Motion_2.mp4

Generative UI

Generative UI は、エージェントがワークフローの一部として UI を動的にレンダリングすることを可能にする CopilotKit のコアパターンです。

demo-generative-ui.mp4

3 つのタイプを比較

image

探索:

Generative UI 教育用リポジトリ →

🖥️ AG-UI: エージェント・ユーザー相互作用プロトコル

エージェント ワークフローをユーザー向けアプリに接続し、LangGraph、CrewAI など、エージェンティック スタック全体にわたる深いパートナーシップとファーストパーティ統合を実現します。

📖 GitHub README の原文を読む(English / 参考情報)

— GitHub から取得した原文。完全版は GitHub へ。

FavIcon

CopilotKit

Build agent-native applications with generative UI, shared state, and human-in-the-loop workflows.

CopilotKit



What is CopilotKit

CopilotKit is a best-in-class SDK for building full-stack agentic applications, Generative UI, and chat applications.

We are the company behind the AG-UI Protocol - adopted by Google, LangChain, AWS, Microsoft, Mastra, PydanticAI, and more!

Whole.Generative.UI.v5.mp4
Add AI to your app in 1 minute

Features:

  • Chat UI – A React-based chat interface that supports message streaming, tool calls, and agent responses.
  • Backend Tool Rendering – Enables agents to call backend tools that return UI components rendered directly in the client.
  • Generative UI – Allows agents to generate and update UI components dynamically 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 – Lets agents pause execution to request user input, confirmation, or edits before continuing.
full-headless-chat.mp4

Quick Start

New projects:

npx copilotkit@latest create -f <framework>

Existing projects:

npx copilotkit@latest init
cpk-cli.mp4

What this gives you:

  • CopilotKit installed – Core packages are fully set up in your app
  • Provider configured – Context, state, and hooks ready to use
  • Agent <> UI connected – Agents can stream actions and render UI immediately
  • Deployment-ready – Your app is ready to deploy

Complete getting started guide →

How it works:

CopilotKit connects your UI, agents, and tools into a single interaction loop.

CopilotKit Diagram — Motion x2 6 sec version

This enables:

  • Agents that ask users for input
  • Tools that render UI
  • Stateful workflows across steps and sessions

⭐️ useAgent Hook

The useAgent hook is a proper superset of useCoAgent and sits directly on AG-UI, giving more control over the agent connection.

// Programmatically access and control your agents
const { agent } = useAgent({ agentId: "my_agent" });

// Render and update your agent's state
return <div>
  <h1>{agent.state.city}</h1>
  <button onClick={() => agent.setState({ city: "NYC" })}>
    Set City
  </button>
</div>

Check out the useAgent docs to learn more.

CopilotKit.UseAgent.Graphic.Motion_2.mp4

Generative UI

Generative UI is a core CopilotKit pattern that allows agents to dynamically render UI as part of their workflow.

demo-generative-ui.mp4

Compare the Three Types

image

Explore:

Generative UI educational repo →

🖥️ AG-UI: The Agent–User Interaction Protocol

Connect agent workflow to user-facing apps, with deep partnerships and 1st-party integrations across the agentic stack—including LangGraph, CrewAI, and more.

RELATED

同じカテゴリの他のツール