能力标签
CrewAI 多代理协作平台
🛠
AI工具

CrewAI 多代理协作平台

基于 Python · 开源 AI 工具,GitHub 社区精选
英文名:crewAI
⭐ 51.4k Stars 🍴 7.1k Forks 💻 Python 📄 MIT 🏷 AI 8.5分
8.5AI 综合评分
多智能体AI编排工作流自动化角色扮演开源框架
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,CrewAI 多代理协作平台 获评「强烈推荐」。在 GitHub 上收获超过 51.4k 颗 Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.5 分,适合有一定技术背景的用户使用。

📚 深度解析
CrewAI 多代理协作平台 是一款基于 Python 的开源工具,在 GitHub 上收获 51k+ Star,是多智能体、AI编排、工作流自动化、角色扮演领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
CrewAI 多代理协作平台 依赖 Python 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Python 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 CrewAI 多代理协作平台 的版本更新,及时通知重要功能变化。
📋 工具概览

CrewAI 多代理协作平台 是一款基于 Python 开发的开源工具,专注于 多智能体、AI编排、工作流自动化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 51.4k
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
活跃维护,更新频繁
开源协议
MIT
AI 综合评分
8.5 分
工具类型
AI工具
Forks
7.1k
📖 中文文档
以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

CrewAI 多代理协作平台 是一款基于 Python 开发的开源工具,专注于 多智能体、AI编排、工作流自动化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install crewai

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install crewai

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/crewAIInc/crewAI
cd crewAI
pip install -e .

# 验证安装
python -c "import crewai; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
crewai --help

# 基本用法
crewai input_file -o output_file

# Python 代码中调用
import crewai

# 示例
result = crewai.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# crewai 配置文件示例(config.yml)
app:
  name: "crewai"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
crewai --config config.yml

# 或通过环境变量配置
export CREWAI_API_KEY="your-key"
export CREWAI_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 95/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <a href="https://github.com/crewAIInc/crewAI"> <img src="docs/images/crewai_logo.png" width="600px" alt="Open source Multi-AI Agent orchestration framework"> </a> </p> <p align="center" style="display: flex; justify-content: center; gap: 20px; align-items: center;"> <a href="https://trendshift.io/repositories/11239" target="_blank"> <img src="https://trendshift.io/api/badge/repositories/11239" alt="crewAIInc%2FcrewAI | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/> </a> </p>

<p align="center"> <a href="https://crewai.com">Homepage</a> · <a href="https://docs.crewai.com">Docs</a> · <a href="https://app.crewai.com">Start Cloud Trial</a> · <a href="https://blog.crewai.com">Blog</a> · <a href="https://community.crewai.com">Forum</a> </p>

<p align="center"> <a href="https://github.com/crewAIInc/crewAI"> <img src="https://img.shields.io/github/stars/crewAIInc/crewAI" alt="GitHub Repo stars"> </a> <a href="https://github.com/crewAIInc/crewAI/network/members"> <img src="https://img.shields.io/github/forks/crewAIInc/crewAI" alt="GitHub forks"> </a> <a href="https://github.com/crewAIInc/crewAI/issues"> <img src="https://img.shields.io/github/issues/crewAIInc/crewAI" alt="GitHub issues"> </a> <a href="https://github.com/crewAIInc/crewAI/pulls"> <img src="https://img.shields.io/github/issues-pr/crewAIInc/crewAI" alt="GitHub pull requests"> </a> <a href="https://opensource.org/licenses/MIT"> <img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License: MIT"> </a> </p>

<p align="center"> <a href="https://pypi.org/project/crewai/"> <img src="https://img.shields.io/pypi/v/crewai" alt="PyPI version"> </a> <a href="https://pypi.org/project/crewai/"> <img src="https://img.shields.io/pypi/dm/crewai" alt="PyPI downloads"> </a> <a href="https://twitter.com/crewAIInc"> <img src="https://img.shields.io/twitter/follow/crewAIInc?style=social" alt="Twitter Follow"> </a> </p>

Write Job Descriptions

Check out code for this example or watch a video below:

Jobs postings

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.

Key Features

CrewAI stands apart as a lean, standalone, high-performance multi-AI Agent framework delivering simplicity, flexibility, and precise control—free from the complexity and limitations found in other agent frameworks.

  • Standalone & Lean: Completely independent from other frameworks like LangChain, offering faster execution and lighter resource demands.
  • Flexible & Precise: Easily orchestrate autonomous agents through intuitive Crews or precise Flows, achieving perfect balance for your needs.
  • Seamless Integration: Effortlessly combine Crews (autonomy) and Flows (precision) to create complex, real-world automations.
  • Deep Customization: Tailor every aspect—from high-level workflows down to low-level internal prompts and agent behaviors.
  • Reliable Performance: Consistent results across simple tasks and complex, enterprise-level automations.
  • Thriving Community: Backed by robust documentation and over 100,000 certified developers, providing exceptional support and guidance.

Choose CrewAI to easily build powerful, adaptable, and production-ready AI automations.

Features and Capabilities

Enterprise Features

Q: What additional features does CrewAI AMP offer?

A: CrewAI AMP provides advanced features such as a unified control plane, real-time observability, secure integrations, advanced security, actionable insights, and dedicated 24/7 enterprise support.

Installing Dependencies

uv lock
uv sync

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:

SkillWhen it runs
getting-startedScaffolding new projects, choosing between LLM.call() / Agent / Crew / Flow, wiring crew.py / main.py
design-agentConfiguring agents — role, goal, backstory, tools, LLMs, memory, guardrails
design-taskWriting task descriptions, dependencies, structured output (output_pydantic, output_json), human review
ask-docsQuerying the live [CrewAI docs MCP server](https://docs.crewai.com/mcp) 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.

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:

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.

Installing Locally

uv pip install dist/*.tar.gz

Q: How do I install CrewAI?

A: Install CrewAI using pip:

uv pip install crewai

For additional tools, use:

uv pip install 'crewai[tools]'

Q: Is CrewAI AMP available for cloud and on-premise deployments?

A: Yes, CrewAI AMP supports both cloud-based and on-premise deployment options, allowing enterprises to meet their specific security and compliance requirements.

Examples

You can test different real life examples of AI crews in the CrewAI-examples repo:

Quick Tutorial

CrewAI Tutorial

Q: Can CrewAI handle complex use cases?

A: Yes. CrewAI excels at both simple and highly complex real-world scenarios, offering deep customization options at both high and low levels, from internal prompts to sophisticated workflow orchestration.

Q: Where can I find real-world CrewAI examples?

A: Check out practical examples in the CrewAI-examples repository, covering use cases like trip planners, stock analysis, and job postings.

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

```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**
`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

```python

Virtual Env

uv venv

Q: Is CrewAI suitable for production environments?

A: Yes, CrewAI is explicitly designed with production-grade standards, ensuring reliability, stability, and scalability for enterprise deployments.

Q: Can CrewAI agents interact with external tools and APIs?

A: Absolutely! CrewAI agents can easily integrate with external tools, APIs, and databases, empowering them to leverage real-world data and resources.

Q: Can CrewAI automate human-in-the-loop workflows?

A: Yes, CrewAI fully supports human-in-the-loop workflows, allowing seamless collaboration between human experts and AI agents for enhanced decision-making.

How CrewAI Compares

CrewAI's Advantage: CrewAI combines autonomous agent intelligence with precise workflow control through its unique Crews and Flows architecture. The framework excels at both high-level orchestration and low-level customization, enabling complex, production-grade systems with granular control.

  • LangGraph: While LangGraph provides a foundation for building agent workflows, its approach requires significant boilerplate code and complex state management patterns. The framework's tight coupling with LangChain can limit flexibility when implementing custom agent behaviors or integrating with external systems.

_P.S. CrewAI demonstrates significant performance advantages over LangGraph, executing 5.76x faster in certain cases like this QA task example (see comparison) while achieving higher evaluation scores with faster completion times in certain coding tasks, like in this example (detailed analysis).

  • Autogen: While Autogen excels at creating conversational agents capable of working together, it lacks an inherent concept of process. In Autogen, orchestrating agents' interactions requires additional programming, which can become complex and cumbersome as the scale of tasks grows.
  • ChatDev: ChatDev introduced the idea of processes into the realm of AI agents, but its implementation is quite rigid. Customizations in ChatDev are limited and not geared towards production environments, which can hinder scalability and flexibility in real-world applications.

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]'
  1. 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

Frequently Asked Questions (FAQ)

🇨🇳 中文文档镜像 AI 翻译 2026-05-23
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

项目简介:crewAI是一款开源的多AI代理框架,提供了一个统一的控制平面来管理、监控和扩展AI代理和工作流。

⚡ 功能介绍

功能特点:crewAI提供了多项功能,包括追踪和可观察性、统一控制平面、平滑的集成和高级安全性等。

📋 环境依赖

环境依赖与系统要求:crewAI需要安装依赖项,包括uv和pip等。

🛠 安装步骤(Docker/pip/源码)

安装步骤说明:crewAI可以通过多种方式安装,包括使用Docker、pip和源码等。

🚀 使用教程

使用教程:crewAI提供了多个示例和教程来帮助用户快速上手。

⚙️ 配置说明(含 MCP / env)

配置说明:crewAI使用MCP和环境变量来配置项目,用户可以通过配置文件来定制项目的行为。

🔌 API 说明

API/接口说明:crewAI提供了多个API接口来支持用户的需求,包括与外部工具和API的集成等。

🔄 工作流/模块

工作流/模块说明:crewAI支持多种工作流和模块,包括人机交互和自动化等。

❓ FAQ 摘要

FAQ:crewAI提供了多个常见问题和解决方案来帮助用户解决问题。

🎯 aiskill88 AI 点评 A 级 2026-05-20

CrewAI是多智能体编排领域的优秀开源方案,架构成熟、社区活跃、应用前景广阔,51k星证明其价值认可度高。

📚 实用指南(长尾问题)
适合谁
  • 需要 crewAI 解决具体问题的开发者与运营人员
最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
crewAI 中文教程crewAI 安装报错怎么办crewAI 与同类工具对比crewAI 最佳实践crewAI 适合谁用
⚡ 核心功能
👥 适合谁
  • 需要 crewAI 解决具体问题的开发者与运营人员
⭐ 最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • Python 依赖冲突:建议用 venv / uv 隔离环境
👥 适合人群
AI 技术爱好者研究人员和学生开发者和工程师技术创业者
🎯 使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
⚖️ 优点与不足
✅ 优点
  • +GitHub 51.4k Star,社区高度认可
  • +MIT 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合
❓ 常见问题 FAQ
CrewAI专注于多智能体角色协作,提供开箱即用的编排能力,降低复杂工作流开发门槛。
💡 AI Skill Hub 点评

AI Skill Hub 点评:CrewAI 多代理协作平台 的核心功能完整,质量优秀。对于AI爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

📚 深入学习 CrewAI 多代理协作平台
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 crewAI
原始描述 开源AI工作流:Framework for orchestrating role-playing, autonomous AI agents. By fostering col。⭐51.4k · Python
Topics 多智能体AI编排工作流自动化角色扮演开源框架
GitHub https://github.com/crewAIInc/crewAI
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/crewAIInc/crewAI 🌐 官方网站  https://crewai.com

收录时间:2026-05-14 · 更新时间:2026-05-26 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。