# CrewAI

**CrewAI** 是一个用于构建多智能体系统的开源 Python 框架。在这一框架中，具有既定角色、目标和工具的大语言模型智能体被组织成团队（“Crew”），并嵌入事件驱动的工作流（“Flow”）之中。它由巴西开发者若昂（乔）·莫拉（João (Joe) Moura）创建，他在 2023 年创立 CrewAI Inc. 之前便启动了该项目。该框架以 [MIT 许可证](https://www.edgepedia.org/zh/mit-license)发布。<sup>[1](https://github.com/crewAIInc/crewAI/blob/main/README.md)</sup><sup> • </sup><sup>[2](https://wing-assets.com/Wing-ET30-2025_Report.pdf)</sup><sup> • </sup><sup>[3](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/README.md)</sup>

| 关键事实 | 详情 |
|---|---|
| 定位 | 用于编排角色扮演型自主 AI 智能体的开源 Python 框架，独立于 LangChain 或其他智能体框架构建<sup>[1](https://github.com/crewAIInc/crewAI/blob/main/README.md)</sup> |
| 核心抽象 | Crew（自主的、基于角色的智能体团队）与 Flow（带状态、分支与持久化的事件驱动工作流）<sup>[4](https://docs.crewai.com/core-concepts/Agents)</sup> |
| 过程 | 顺序执行（默认）与层级式任务执行模式<sup>[5](https://github.com/crewAIInc/crewAI/blob/main/docs/v1.13.0/en/index.mdx)</sup> |
| 环境要求 | Python 3.10 或更新版本，且低于 3.14；MIT 许可证<sup>[6](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/pyproject.toml)</sup> |
| 公司 | CrewAI Inc.，成立于 2023 年；2024 年 10 月 22 日宣布融资总额 1800 万美元（创立轮由 boldstart ventures 领投，A 轮由 Insight Partners 领投）<sup>[2](https://wing-assets.com/Wing-ET30-2025_Report.pdf)</sup><sup> • </sup><sup>[7](https://www.insightpartners.com/ideas/crewai-launches-multi-agentic-platform-to-deliver-on-the-promise-of-generative-ai-for-enterprise/)</sup> |
| 企业产品 | CrewAI AMP（Agent Management Platform，智能体管理平台），用于部署、监控、REST API 访问，以及无代码的 Crew Studio<sup>[8](https://docs.crewai.com/enterprise/introduction)</sup> |
| 社区 | 逾 10 万名开发者通过社区课程获得认证；截至 2025 年 10 月 GitHub 星标 4 万（公司自报数据）<sup>[1](https://github.com/crewAIInc/crewAI/blob/main/README.md)</sup><sup> • </sup><sup>[9](https://github.com/crewAIInc/crewAI)</sup> |

## 架构：Crew 与 Flow

CrewAI 的设计把两种编排风格区分开来。**Crew** 建模的是一支由专业化智能体组成的团队，每个智能体由角色、目标和背景故事定义，另可选择性配置 LLM、工具、记忆、任务委派，以及用于遏制失控循环的最大迭代次数（默认 20）。<sup>[4](https://docs.crewai.com/core-concepts/Agents)</sup><sup> • </sup><sup>[10](https://www.beri.net/learning/crewai-docs)</sup> 一个 Crew 拥有自己的智能体列表、任务列表和过程类型。任务是可复用的工作单元，带有 `expected_output` 契约、可选的 `context`（引用上游任务的输出），以及通过 Pydantic 模型强制实施的可选结构化输出。<sup>[11](https://learn.createsomething.space/reference/14-agent-engineering/15-crewai-role-based-crews)</sup>

**Flow** 是与之互补的事件驱动层。Flow 用 `@start`、`@listen` 和 `@router` 装饰器构建，状态既可以表现为普通属性，也可以表现为带类型的 Pydantic 模型，并能借助基于 SQLite 的检查点机制持久化并恢复长时间运行的工作流。<sup>[10](https://www.beri.net/learning/crewai-docs)</sup> 文档直接说明了二者的分工：Crew 追求自主性与协作智能，Flow 则对执行路径提供细粒度、确定性的控制，并原生支持从 Flow 的步骤中调用 Crew。<sup>[4](https://docs.crewai.com/core-concepts/Agents)</sup> 典型的混合式应用会用 Flow 编排整体流程，用 Crew 处理复杂的子任务。<sup>[4](https://docs.crewai.com/core-concepts/Agents)</sup>

**过程与协作。** 在 Crew 内部，任务按照既定的过程运行：顺序执行按定义好的次序逐个运行任务，也是默认方式；层级式执行则引入一名管理者来分派工作。<sup>[12](https://deepwiki.com/crewAIInc/crewAI/1.3-core-concepts-overview)</sup><sup> • </sup><sup>[5](https://github.com/crewAIInc/crewAI/blob/main/docs/v1.13.0/en/index.mdx)</sup> 智能体可以根据各自的能力相互委派任务，框架内置了任务委派机制，以及面向顺序执行与并行执行的过程管理。<sup>[13](https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-frameworks/crewai.html)</sup>

## 能力与集成

CrewAI 是一个独立框架，拥有自己的智能体、任务、Crew、Flow、工具与编排原语，不依赖 [LangChain](https://www.edgepedia.org/zh/langchain)。<sup>[3](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/README.md)</sup> 智能体可通过多家提供商连接模型：默认是 [OpenAI API](https://www.edgepedia.org/zh/openai-api)，也可配置 [Amazon Bedrock](https://www.edgepedia.org/zh/amazon-bedrock)、Anthropic、经由 Ollama 的本地模型等。<sup>[3](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/README.md)</sup><sup> • </sup><sup>[13](https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-frameworks/crewai.html)</sup> 该包为 Qdrant、AWS、IBM watsonx、Voyage AI、LiteLLM、Google GenAI、Azure AI Inference、Anthropic 以及 A2A 智能体间协议提供了可选依赖组。<sup>[6](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/pyproject.toml)</sup>

框架支持用于工具访问的[模型上下文协议](https://www.edgepedia.org/zh/model-context-protocol)（MCP）和用于智能体协作与发现的智能体间协议（A2A），并原生支持 async/await 执行、记忆、知识源，以及让用户从特定步骤重放或以不同输入分叉工作流的检查点机制。<sup>[14](https://crewai.com/open-source)</sup> 项目通过 CrewAI CLI 搭建脚手架（`crewai create crew` 或 `crewai create flow`），该 CLI 通过 `uv tool install crewai` 安装。<sup>[3](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/README.md)</sup>

## 公司与融资

CrewAI Inc. 成立于 2023 年。<sup>[2](https://wing-assets.com/Wing-ET30-2025_Report.pdf)</sup> 2024 年 10 月 22 日，公司宣布融资总额 1800 万美元：由 boldstart ventures 领投的创立轮，以及由 [Insight Partners](https://www.edgepedia.org/zh/insight-partners) 领投的 A 轮，Blitzscaling Ventures、Craft Ventures 和 Earl Grey Capital 参投，天使投资人包括 DeepLearning.AI 创始人[吴恩达](https://www.edgepedia.org/zh/andrew-ng)（Andrew Ng）和 HubSpot 联合创始人兼 CTO [达尔梅什·沙阿](https://www.edgepedia.org/zh/dharmesh-shah)（Dharmesh Shah）。<sup>[7](https://www.insightpartners.com/ideas/crewai-launches-multi-agentic-platform-to-deliver-on-the-promise-of-generative-ai-for-enterprise/)</sup> 在宣布这一消息时，公司称其开源产品每月执行超过 1000 万个智能体，近半数《财富》500 强企业在使用，并在不到六个月内签下了首批 150 家企业测试客户。<sup>[7](https://www.insightpartners.com/ideas/crewai-launches-multi-agentic-platform-to-deliver-on-the-promise-of-generative-ai-for-enterprise/)</sup>

2025 年 10 月，项目发布 CrewAI OSS 1.0，这是首个正式可用版本，包含稳定的 Crew 与 Flow API、为每次执行内置的免费追踪、统一的 CLI，以及改进的 MCP 支持。公告称开源核心已完成 14 亿次智能体执行、每月 4.5 亿次、覆盖 60% 的《财富》500 强企业、GitHub 星标 4 万；这些均为公司自报数据。<sup>[15](https://crewai.com/blog/crewai-oss-1-0---we-are-going-ga)</sup>

## 企业平台

**CrewAI AMP**（Agent Management Platform，智能体管理平台）在开源框架之上扩展了托管部署、带执行轨迹与日志的实时可观测性、对已部署 Crew 的 REST API 访问、工具仓库、webhook 流式传输，以及无代码/低代码的 Crew Studio。<sup>[8](https://docs.crewai.com/enterprise/introduction)</sup> 公司的营销材料描述了一个控制平面（Control Plane），它位于每个工作流的执行路径上，可实时追踪 LLM 调用、工具调用与记忆读取；提供带审计轨迹的基于角色的访问控制；人在回路中的审批关卡；以及用于 PII 脱敏与策略检查的运行时钩子。<sup>[16](https://crewai.com/)</sup> 部署可由 GitHub 集成、Crew Studio 或 CLI 触发。<sup>[8](https://docs.crewai.com/enterprise/introduction)</sup>

## 采用情况与报告的结果

有据可查的企业部署中，若干案例见于第三方或客户出版物。AWS 与 CrewAI 发布了参考设计，将 CrewAI 智能体映射到 Amazon Bedrock 模型，包括一支多智能体的 AWS 安全审计 Crew、代码现代化 Flow，以及包装消费品行业的后台自动化；AWS 报告称，早期试点在一个大型代码现代化项目中执行速度提升 70%，某包装消费品后台 Flow 的处理时间缩短约 90%。<sup>[13](https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-frameworks/crewai.html)</sup> 按需印刷公司 Gelato 在 GelatoConnect 平台中嵌入了数千个 CrewAI 智能体，用于自动化产品目录映射与文件校验，据凯捷研究院（Capgemini Research Institute）的一份报告，其承运商集成的接入周期从五天缩短到 10 分钟。<sup>[17](https://www.capgemini.com/wp-content/uploads/2025/07/30062025-Digital-AI-in-Business-Operation-CRI_V6.pdf)</sup> [凯捷](https://www.edgepedia.org/zh/capgemini)还在一个为某联邦就业机构开展的项目中，用 CrewAI 编排包括 [Aleph Alpha](https://www.edgepedia.org/zh/aleph-alpha)、LLaMA 和 Mistral 在内的符合隐私要求的模型。<sup>[18](https://www.capgemini.com/wp-content/uploads/2025/12/Federal-Employment-Agency-client-story-case-study.pdf)</sup>

## 研究中的评估

独立的学术工作已将 CrewAI 与竞争框架放在一起考察。2026 年一篇关于开放智能体规范（Open Agent Specification）的 ACM 论文在 [AutoGen](https://www.edgepedia.org/zh/autogen)、CrewAI、[LangGraph](https://www.edgepedia.org/zh/langgraph) 和 WayFlow 运行时上执行相同的智能体规范，观察到 CrewAI 的多智能体协调虽带来有限的准确率提升，但查询时间更长，而 LangGraph 与 WayFlow 在各数据集上的准确率和查询时间都更稳定。<sup>[19](https://doi.org/10.1145/3786335.3813130)</sup> 一篇关于基于 LLM 的多智能体编排的综述将 CrewAI 归入领先框架之列，并从状态管理粒度、token 成本结构、故障恢复和设计理念等方面比较各框架。<sup>[20](https://www.mdpi.com/1999-5903/18/6/326)</sup> 一篇博士论文的综述还指出，CrewAI 在单一进程内运行，目前不支持分布式智能体。<sup>[21](https://www.foi.unizg.hr/sites/default/files/peharda_doctoral_thesis.pdf)</sup>

## References

1. [crewAI README, crewAIInc/crewAI, GitHub](https://github.com/crewAIInc/crewAI/blob/main/README.md)
2. [CrewAI company profile, Wing Venture Capital ET30 2025 Report](https://wing-assets.com/Wing-ET30-2025_Report.pdf)
3. [crewAI/lib/crewai/README.md, crewAIInc/crewAI, GitHub](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/README.md)
4. [Introduction, CrewAI Documentation](https://docs.crewai.com/core-concepts/Agents)
5. [crewAI/docs/v1.13.0/en/index.mdx, crewAIInc/crewAI, GitHub](https://github.com/crewAIInc/crewAI/blob/main/docs/v1.13.0/en/index.mdx)
6. [crewAI/lib/crewai/pyproject.toml, crewAIInc/crewAI, GitHub](https://github.com/crewAIInc/crewAI/blob/main/lib/crewai/pyproject.toml)
7. [CrewAI Launches Multi-Agentic Platform to Deliver on the Promise of Generative AI for Enterprise, Insight Partners (October 2024)](https://www.insightpartners.com/ideas/crewai-launches-multi-agentic-platform-to-deliver-on-the-promise-of-generative-ai-for-enterprise/)
8. [CrewAI AMP, CrewAI Documentation](https://docs.crewai.com/enterprise/introduction)
9. [crewAIInc/crewAI repository, GitHub](https://github.com/crewAIInc/crewAI)
10. [CrewAI Documentation — Intermediate Documentation, The Daily Brief](https://www.beri.net/learning/crewai-docs)
11. [Role-Based Agent Teams — Roles, Tasks, Processes, Create Something Learn](https://learn.createsomething.space/reference/14-agent-engineering/15-crewai-role-based-crews)
12. [Core Concepts Overview, DeepWiki](https://deepwiki.com/crewAIInc/crewAI/1.3-core-concepts-overview)
13. [CrewAI, AWS Prescriptive Guidance](https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-frameworks/crewai.html)
14. [CrewAI Open Source](https://crewai.com/open-source)
15. [CrewAI OSS 1.0 - We are going GA, CrewAI Blog (October 2025)](https://crewai.com/blog/crewai-oss-1-0---we-are-going-ga)
16. [CrewAI](https://crewai.com/)
17. [AI in Business Operations, Capgemini Research Institute (2025)](https://www.capgemini.com/wp-content/uploads/2025/07/30062025-Digital-AI-in-Business-Operation-CRI_V6.pdf)
18. [Federal Employment Agency client story, Capgemini (2025)](https://www.capgemini.com/wp-content/uploads/2025/12/Federal-Employment-Agency-client-story-case-study.pdf)
19. [Open Agent Specification: Enabling Cross-Framework Comparison of AI Agents, ACM Conference on AI and Agentic Systems (2026)](https://doi.org/10.1145/3786335.3813130)
20. [LLM-Based Multi-Agent Orchestration: A Survey of Frameworks, Communication Protocols, and Emerging Patterns, Future Internet (MDPI, 2026)](https://www.mdpi.com/1999-5903/18/6/326)
21. [Frameworks and libraries for MAS architecture, doctoral thesis, Faculty of Economics, University of Zagreb](https://www.foi.unizg.hr/sites/default/files/peharda_doctoral_thesis.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 11, 2026; Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › AI companies, people, and products › AI startups and application companies › Enterprise and vertical AI applications

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/crewai

English original: https://www.edgepedia.org/crewai
