AI Agent Hub
AI エージェント / プラグイン情報メディア
← 一覧へ
CrewAI
OTHER

CrewAI

CrewAI

役割を持った AI エージェント群を「クルー」として協調動作させるフレームワーク。タスクの委譲と検証、構造化出力に長ける本番運用向け OSS。

原文: Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
#マルチエージェント#Python#ロール駆動#agents#ai#ai-agents#aiagentframework#llms
REPO STATS

リポジトリ統計

⭐ Stars
50.8k
🍴 Forks
7k
⚠️ Open Issues
294
🌿 Language
Python
📄 License
MIT
🕒 最終更新
2026.05.07 (今日)
📅 公開日
2023.10.27
🌿 Branch
main
README

ドキュメント

— AI による自動翻訳 (2026.05.07 更新)

Open source Multi-AI Agent orchestration framework

crewAIInc%2FcrewAI | Trendshift

ホームページ · ドキュメント · クラウドトライアルを開始 · ブログ · フォーラム

GitHub Repo stars GitHub forks GitHub issues GitHub pull requests License: MIT

PyPI version PyPI downloads Twitter Follow

高速で柔軟なマルチエージェント自動化フレームワーク

CrewAI は、ゼロから完全に構築された軽量で超高速な Python フレームワークで、LangChain や他のエージェントフレームワークに完全に独立しています。高度な単純性と正確なレベルの制御の両方を開発者に提供し、あらゆるシナリオに適応したオートノーマスな AI エージェントの作成に最適です。

  • CrewAI Crews:自律性と協調的な知能のために最適化されています。
  • CrewAI Flows:マルチエージェントシステムの構築と展開のためのエンタープライズおよび本番向けアーキテクチャです。きめ細かいイベント駆動制御を可能にし、正確なタスク調整のための単一の LLM 呼び出しをサポートし、Crews をネイティブにサポートします。

learn.crewai.com でのコミュニティコースを通じて認定された 100,000 人以上の開発者により、CrewAI はエンタープライズ対応の AI 自動化の標準となりつつあります。

CrewAI AMP Suite

CrewAI AMP Suite は、セキュアでスケーラブルで管理しやすいエージェント駆動自動化を必要とする組織のために調整された包括的なバンドルです。

スイートの一部である Crew Control Plane を無料で試すことができます。

Crew Control Plane の主な機能:

  • トレーシングと可観測性:メトリクス、ログ、トレースを含む、AI エージェントとワークフローをリアルタイムで監視および追跡します。
  • 統一制御プレーン:AI エージェントとワークフローを管理、監視、スケーリングするための集中型プラットフォームです。
  • シームレスな統合:既存のエンタープライズシステム、データソース、クラウドインフラストラクチャと簡単に接続できます。
  • 高度なセキュリティ:安全な展開と管理を保証する組み込みの堅牢なセキュリティとコンプライアンス対策です。
  • 実用的なインサイト:パフォーマンスと意思決定を最適化するためのリアルタイム分析とレポーティングです。
  • 24/7 サポート:継続的な運用と迅速な問題解決を保証する専任エンタープライズサポートです。
  • オンプレミスおよびクラウド展開オプション:セキュリティとコンプライアンスの要件に応じて、CrewAI AMP をオンプレミスまたはクラウドに展開できます。

CrewAI AMP は、複雑なビジネスプロセスを効率的でインテリジェントな自動化に変換する強力で信頼性の高いソリューションを求めるエンタープライズのために設計されています。

目次

AIで構築する

AIコーディングエージェントを使用していますか?一つのコマンドでCrewAIのベストプラクティスを教えてください。

Claude Code:

/plugin marketplace add crewAIInc/skills
/plugin install crewai-skills@crewai-plugins
/reload-plugins

関連するCrewAIに関する質問をすると自動的に起動する4つのスキル。

スキル 実行されるタイミング
getting-started 新しいプロジェクトのスキャフォルディング、LLM.call() / Agent / Crew / Flowの選択、crew.py / main.pyの配線
design-agent エージェントの設定—ロール、目的、背景ストーリー、ツール、LLM、メモリ、ガードレール
design-task タスク説明、依存関係、構造化された出力(output_pydanticoutput_json)、人間によるレビューの記述
ask-docs ライブなCrewAI docs MCPサーバーへの照会で最新のAPIの詳細を取得

Cursor、Codex、Windsurf、その他(skills.sh):

npx skills add crewaiinc/skills

これは公式なCrewAI Skillsをインストールします。コーディングエージェントにFlowのスキャフォルディング、Crewsの設定、エージェントとタスクの設計、CrewAIパターンの遵守を行う方法を教える構造化された指示です。

なぜCrewAIか?

CrewAI Logo

CrewAIはマルチエージェントオートメーションの真の可能性を解き放ち、AIエージェントのCrewsまたはEventsのFlowsで、速度、柔軟性、制御の業界最高の組み合わせを実現します。

  • スタンドアロンフレームワーク:ゼロから構築され、LangChainや他のエージェントフレームワークから独立しています。
  • 高パフォーマンス:速度と最小限のリソース使用のために最適化されており、より高速な実行を可能にします。
  • 柔軟な低レベルカスタマイズ:全体的なワークフローとシステムアーキテクチャから、細かいエージェント動作、内部プロンプト、実行ロジックまで、高レベルと低レベルの両方でカスタマイズする完全な自由があります。
  • すべてのユースケースに最適:シンプルなタスクと非常に複雑で実世界のエンタープライズグレードのシナリオの両方に効果的であることが証明されています。
  • 堅牢なコミュニティ:10万人以上の認定開発者からなる急速に成長するコミュニティに支援され、包括的なサポートとリソースを提供しています。

CrewAIは開発者とエンタープライズが確信を持ってインテリジェントなオートメーションを構築できるようにし、シンプルさ、柔軟性、パフォーマンスのギャップを埋めています。

はじめに

このチュートリアルに従うことで、初めてのCrewAIエージェントをセットアップして実行してください。

CrewAI Getting Started Tutorial

学習リソース

包括的なコースを通じてCrewAIを学んでください。

FlowsとCrewsの理解

CrewAIは、洗練されたAIアプリケーションを構築するためにシームレスに連携する2つの強力な補完的なアプローチを提供しています。

  1. Crews:真の自律性と行為性を持つAIエージェントのチーム。ロールベースのコラボレーションを通じて複雑なタスクを達成するために協力します。Crewsは以下を可能にします。

    • エージェント間の自然で自律的な意思決定
    • 動的なタスク委譲とコラボレーション
    • 定義された目標と専門知識を持つ特化したロール
    • 柔軟な問題解決アプローチ
  2. Flows:本番環境対応で、イベント駆動のワークフロー。複雑なオートメーション上の正確な制御を提供します。Flowsは以下を提供します。

    • 実世界のシナリオのための実行パス上の細かい制御
    • タスク間の安全で一貫した状態管理
    • AIエージェントと本番Pythonコードのクリーンな統合
    • 複雑なビジネスロジックのための条件付き分岐

CrewAIの真の力はCrewsとFlowsを組み合わせた時に現れます。このシナジーは以下を可能にします。

  • 複雑で本番グレードのアプリケーションの構築
  • 自律性と正確な制御のバランス
  • 洗練された実世界のシナリオの処理
  • クリーンで保守可能なコード構造の維持

インストール - はじめに

CrewAIを始めるには、以下の簡単なステップに従ってください。

1. インストール

システムにPython >=3.10 <3.14 がインストールされていることを確認してください。CrewAIは依存関係管理とパッケージ処理にUVを使用し、シームレスなセットアップと実行体験を提供します。

まず、CrewAIをインストールしてください。

uv pip install crewai

エージェント向けの追加ツールを含むオプション機能とともに「crewai」パッケージをインストールしたい場合は、以下のコマンドを使用して実行できます。

uv pip install 'crewai[tools]'

上記のコマンドは基本パッケージをインストールし、機能するためにより多くの依存関係が必要な追加コンポーネントも追加します。

依存関係のトラブルシューティング

インストール中または使用中に問題が発生した場合は、以下は一般的なソリューションです。

一般的な問題

  1. ModuleNotFoundError: No module named 'tiktoken'

    • tiktokenを明示的にインストールしてください:uv pip install 'crewai[embeddings]'
    • embedchainやその他のツールを使用している場合:uv pip install 'crewai[tools]'
  2. Failed building wheel for tiktoken

    • Rustコンパイラがインストールされていることを確認してください(上記のインストール手順を参照)
    • Windowsの場合:Visual C++ビルドツールがインストールされていることを確認してください
    • pipのアップグレードを試してください:uv pip install --upgrade pip
    • 問題が続く場合は、プリビルドホイールを使用してください:uv pip install tiktoken --prefer-binary

2. YAML設定でクルーをセットアップする

新しいCrewAIプロジェクトを作成するには、以下のCLI(コマンドラインインターフェース)コマンドを実行してください。

crewai create crew <project_name>

このコマンドは以下の構造を持つ新しいプロジェクトフォルダを作成します。

my_project/
├── .gitignore
├── pyproject.toml
├── README.md
├── .env
└── src/
    └── my_project/
        ├── __init__.py
        ├── main.py
        ├── crew.py
        ├── tools/
        │   ├── custom_tool.py
        │   └── __init__.py
        └── config/
            ├── agents.yaml
            └── tasks.yaml

src/my_projectフォルダ内のファイルを編集してクルーの開発を始めることができます。main.pyファイルはプロジェクトのエントリーポイント、crew.pyファイルはクルーを定義する場所、agents.yamlファイルはエージェントを定義する場所、tasks.yamlファイルはタスクを定義する場所です。

プロジェクトをカスタマイズするには、以下のことができます。

  • src/my_project/config/agents.yamlを変更してエージェントを定義してください。
  • src/my_project/config/tasks.yamlを変更してタスクを定義してください。
  • src/my_project/crew.pyを変更して、独自のロジック、ツール、特定の引数を追加してください。
  • src/my_project/main.pyを変更してエージェントとタスクのカスタム入力を追加してください。
  • 環境変数を.envファイルに追加してください。

順序付きプロセスを持つシンプルなクルーの例:

クルーをインスタンス化します:

crewai create crew latest-ai-development

ユースケースに合わせてファイルを必要に応じて変更してください:

agents.yaml

# src/my_project/config/agents.yaml
researcher:
  role: >
    {topic} Senior Data Researcher
  goal: >
    Uncover cutting-edge developments in {topic}
  backstory: >
    You're a seasoned researcher with a knack for uncovering the latest
    developments in {topic}. Known for your ability to find the most relevant
    information and present it in a clear and concise manner.

reporting_analyst:
  role: >
    {topic} Reporting Analyst
  goal: >
    Create detailed reports based on {topic} data analysis and research findings
  backstory: >
    You're a meticulous analyst with a keen eye for detail. You're known for
    your ability to turn complex data into clear and concise reports, making
    it easy for others to understand and act on the information you provide.

tasks.yaml

# src/my_project/config/tasks.yaml
research_task:
  description: >
    Conduct a thorough research about {topic}
    Make sure you find any interesting and relevant information given
    the current year is 2025.
  expected_output: >
    A list with 10 bullet points of the most relevant information about {topic}
  agent: researcher

reporting_task:
  description: >
    Review the context you got and expand each topic into a full section for a report.
    Make sure the report is detailed and contains any and all relevant information.
  expected_output: >
    A fully fledge reports with the mains topics, each with a full section of information.
    Formatted as markdown without '```'
  agent: reporting_analyst
  output_file: report.md

crew.py

# src/my_project/crew.py
from crewai import Agent, Crew, Process, Task
from crewai.project import CrewBase, agent, crew, task
from crewai_tools import SerperDevTool
from crewai.agents.agent_builder.base_agent import BaseAgent
from typing import List

@CrewBase
class LatestAiDevelopmentCrew():
	"""LatestAiDevelopment crew"""
	agents: List[BaseAgent]
	tasks: List[Task]

	@agent
	def researcher(self) -> Agent:
		return Agent(
			config=self.agents_config['researcher'],
			verbose=True,
			tools=[SerperDevTool()]
		)

	@agent
	def reporting_analyst(self) -> Agent:
		return Agent(
			config=self.agents_config['reporting_analyst'],
			verbose=True
		)

	@task
	def research_task(self) -> Task:
		return Task(
			config=self.tasks_config['research_task'],
		)

	@task
	def reporting_task(self) -> Task:
		return Task(
			config=self.tasks_config['reporting_task'],
			output_file='report.md'
		)

	@crew
	def crew(self) -> Crew:
		"""Creates the LatestAiDevelopment crew"""
		return Crew(
			agents=self.agents, # Automatically created by the @agent decorator
			tasks=self.tasks, # Automatically created by the @task decorator
			process=Process.sequential,
			verbose=True,
		)

— GitHub から取得した原文(一部省略の場合あり)

Open source Multi-AI Agent orchestration framework

crewAIInc%2FcrewAI | Trendshift

Homepage · Docs · Start Cloud Trial · Blog · Forum

GitHub Repo stars GitHub forks GitHub issues GitHub pull requests License: MIT

PyPI version PyPI downloads Twitter Follow

Fast and Flexible Multi-Agent Automation Framework

CrewAI is a lean, lightning-fast Python framework built entirely from scratch—completely independent of LangChain or other agent frameworks. It empowers developers with both high-level simplicity and precise low-level control, ideal for creating autonomous AI agents tailored to any scenario.

  • CrewAI Crews: Optimize for autonomy and collaborative intelligence.
  • CrewAI Flows: The enterprise and production architecture for building and deploying multi-agent systems. Enable granular, event-driven control, single LLM calls for precise task orchestration and supports Crews natively

With over 100,000 developers certified through our community courses at learn.crewai.com, CrewAI is rapidly becoming the standard for enterprise-ready AI automation.

CrewAI AMP Suite

CrewAI AMP Suite is a comprehensive bundle tailored for organizations that require secure, scalable, and easy-to-manage agent-driven automation.

You can try one part of the suite the Crew Control Plane for free

Crew Control Plane Key Features:

  • Tracing & Observability: Monitor and track your AI agents and workflows in real-time, including metrics, logs, and traces.
  • Unified Control Plane: A centralized platform for managing, monitoring, and scaling your AI agents and workflows.
  • Seamless Integrations: Easily connect with existing enterprise systems, data sources, and cloud infrastructure.
  • Advanced Security: Built-in robust security and compliance measures ensuring safe deployment and management.
  • Actionable Insights: Real-time analytics and reporting to optimize performance and decision-making.
  • 24/7 Support: Dedicated enterprise support to ensure uninterrupted operation and quick resolution of issues.
  • On-premise and Cloud Deployment Options: Deploy CrewAI AMP on-premise or in the cloud, depending on your security and compliance requirements.

CrewAI AMP is designed for enterprises seeking a powerful, reliable solution to transform complex business processes into efficient, intelligent automations.

Table of contents

Build with AI

Using an AI coding agent? Teach it CrewAI best practices in one command:

Claude Code:

/plugin marketplace add crewAIInc/skills
/plugin install crewai-skills@crewai-plugins
/reload-plugins

Four skills that activate automatically when you ask relevant CrewAI questions:

Skill When it runs
getting-started Scaffolding new projects, choosing between LLM.call() / Agent / Crew / Flow, wiring crew.py / main.py
design-agent Configuring agents — role, goal, backstory, tools, LLMs, memory, guardrails
design-task Writing task descriptions, dependencies, structured output (output_pydantic, output_json), human review
ask-docs Querying the live CrewAI docs MCP server for up-to-date API details

Cursor, Codex, Windsurf, and others (skills.sh):

npx skills add crewaiinc/skills

This installs the official CrewAI Skills — structured instructions that teach coding agents how to scaffold Flows, configure Crews, design agents and tasks, and follow CrewAI patterns.

Why CrewAI?

CrewAI Logo

CrewAI unlocks the true potential of multi-agent automation, delivering the best-in-class combination of speed, flexibility, and control with either Crews of AI Agents or Flows of Events:

  • Standalone Framework: Built from scratch, independent of LangChain or any other agent framework.
  • High Performance: Optimized for speed and minimal resource usage, enabling faster execution.
  • Flexible Low Level Customization: Complete freedom to customize at both high and low levels - from overall workflows and system architecture to granular agent behaviors, internal prompts, and execution logic.
  • Ideal for Every Use Case: Proven effective for both simple tasks and highly complex, real-world, enterprise-grade scenarios.
  • Robust Community: Backed by a rapidly growing community of over 100,000 certified developers offering comprehensive support and resources.

CrewAI empowers developers and enterprises to confidently build intelligent automations, bridging the gap between simplicity, flexibility, and performance.

Getting Started

Setup and run your first CrewAI agents by following this tutorial.

CrewAI Getting Started Tutorial

Learning Resources

Learn CrewAI through our comprehensive courses:

Understanding Flows and Crews

CrewAI offers two powerful, complementary approaches that work seamlessly together to build sophisticated AI applications:

  1. Crews: Teams of AI agents with true autonomy and agency, working together to accomplish complex tasks through role-based collaboration. Crews enable:

    • Natural, autonomous decision-making between agents
    • Dynamic task delegation and collaboration
    • Specialized roles with defined goals and expertise
    • Flexible problem-solving approaches
  2. Flows: Production-ready, event-driven workflows that deliver precise control over complex automations. Flows provide:

    • Fine-grained control over execution paths for real-world scenarios
    • Secure, consistent state management between tasks
    • Clean integration of AI agents with production Python code
    • Conditional branching for complex business logic

The true power of CrewAI emerges when combining Crews and Flows. This synergy allows you to:

  • Build complex, production-grade applications
  • Balance autonomy with precise control
  • Handle sophisticated real-world scenarios
  • Maintain clean, maintainable code structure

Getting Started with Installation

To get started with CrewAI, follow these simple steps:

1. Installation

Ensure you have Python >=3.10 <3.14 installed on your system. CrewAI uses UV for dependency management and package handling, offering a seamless setup and execution experience.

First, install CrewAI:

uv pip install crewai

If you want to install the 'crewai' package along with its optional features that include additional tools for agents, you can do so by using the following command:

uv pip install 'crewai[tools]'

The command above installs the basic package and also adds extra components which require more dependencies to function.

Troubleshooting Dependencies

If you encounter issues during installation or usage, here are some common solutions:

Common Issues

  1. ModuleNotFoundError: No module named 'tiktoken'

    • Install tiktoken explicitly: uv pip install 'crewai[embeddings]'
    • If using embedchain or other tools: uv pip install 'crewai[tools]'
  2. Failed building wheel for tiktoken

    • Ensure Rust compiler is installed (see installation steps above)
    • For Windows: Verify Visual C++ Build Tools are installed
    • Try upgrading pip: uv pip install --upgrade pip
    • If issues persist, use a pre-built wheel: uv pip install tiktoken --prefer-binary

2. Setting Up Your Crew with the YAML Configuration

To create a new CrewAI project, run the following CLI (Command Line Interface) command:

crewai create crew <project_name>

This command creates a new project folder with the following structure:

my_project/
├── .gitignore
├── pyproject.toml
├── README.md
├── .env
└── src/
    └── my_project/
        ├── __init__.py
        ├── main.py
        ├── crew.py
        ├── tools/
        │   ├── custom_tool.py
        │   └── __init__.py
        └── config/
            ├── agents.yaml
            └── tasks.yaml

You can now start developing your crew by editing the files in the src/my_project folder. The main.py file is the entry point of the project, the crew.py file is where you define your crew, the agents.yaml file is where you define your agents, and the tasks.yaml file is where you define your tasks.

To customize your project, you can:

  • Modify src/my_project/config/agents.yaml to define your agents.
  • Modify src/my_project/config/tasks.yaml to define your tasks.
  • Modify src/my_project/crew.py to add your own logic, tools, and specific arguments.
  • Modify src/my_project/main.py to add custom inputs for your agents and tasks.
  • Add your environment variables into the .env file.

Example of a simple crew with a sequential process:

Instantiate your crew:

crewai create crew latest-ai-development

Modify the files as needed to fit your use case:

agents.yaml

# src/my_project/config/agents.yaml
researcher:
  role: >
    {topic} Senior Data Researcher
  goal: >
    Uncover cutting-edge developments in {topic}
  backstory: >
    You're a seasoned researcher with a knack for uncovering the latest
    developments in {topic}. Known for your ability to find the most relevant
    information and present it in a clear and concise manner.

reporting_analyst:
  role: >
    {topic} Reporting Analyst
  goal: >
    Create detailed reports based on {topic} data analysis and research findings
  backstory: >
    You're a meticulous analyst with a keen eye for detail. You're known for
    your ability to turn complex data into clear and concise reports, making
    it easy for others to understand and act on the information you provide.

tasks.yaml

# src/my_project/config/tasks.yaml
research_task:
  description: >
    Conduct a thorough research about {topic}
    Make sure you find any interesting and relevant information given
    the current year is 2025.
  expected_output: >
    A list with 10 bullet points of the most relevant information about {topic}
  agent: researcher

reporting_task:
  description: >
    Review the context you got and expand each topic into a full section for a report.
    Make sure the report is detailed and contains any and all relevant information.
  expected_output: >
    A fully fledge reports with the mains topics, each with a full section of information.
    Formatted as markdown without '```'
  agent: reporting_analyst
  output_file: report.md

crew.py

# src/my_project/crew.py
from crewai import Agent<
RELATED

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