---
title: "CrewAI：功能、版本和快速入门 · DotsAgent"
description: "CrewAI Inc. 维护的 CrewAI：许可证、最新版本、MCP 支持、持久化运行、人工审批、追踪和评测，并附有可复制的快速入门。"
url: https://dotsagent.io/zh/frameworks/crewai
---

框架 · CrewAI Inc.

# 快速了解 CrewAI

一个 Python 框架，用于构建能够相互委派任务的角色扮演智能体团队，并通过事件驱动的 Flows 编排。Flows 支持持久化和人工反馈；CLI 可直接部署到托管式 CrewAI AMP 服务。

**适用于：**  基于角色的多智能体设置，并希望快速部署到托管服务。

## 关键信息

- **维护者**: CrewAI Inc.
- **语言**: Python
- **许可证**: MIT
- **最新版本**: `1.15.23` · 2026年9月28日
- **代码仓库**: [crewAIInc/crewAI](https://github.com/crewAIInc/crewAI) · 59,255 个 stars
- **托管选项**: [CrewAI AMP](https://docs.crewai.com/en/quickstart)使用 CLI 运行 crewai deploy create 和 crewai deploy push 进行部署。

## 快速入门

安装软件包、设置凭据，然后运行官方文档中的最简 agent。这里使用的模型 ID 与文档一致，但你的账户可能尚未启用这些模型。

`安装`

```
pip install crewai crewai-tools  (not copied verbatim; docs recommend CrewAI CLI per installation guide; SerperDevTool needs SERPER_API_KEY)
```

需要 Provider API key + SERPER_API_KEY

`Python`

```
from crewai import Agent
from crewai_tools import SerperDevTool

# Create an agent
researcher = Agent(
    role="AI Technology Researcher",
    goal="Research the latest AI developments",
    tools=[SerperDevTool()],
    verbose=True
)

# Use kickoff() to interact directly with the agent
result = researcher.kickoff("What are the latest developments in language models?")

# Access the raw response
print(result.raw)
```

[快速入门来源](https://docs.crewai.com/en/concepts/agents)

## 功能

| 支持任意模型 | — | — |
| --- | --- | --- |
| MCP 客户端 | — | 在智能体上使用 mcps=[...]，或使用 crewai-tools 中的 MCPServerAdapter |
| MCP 服务器 | — | — |
| 多 agent | — | 基于角色的智能体团队，由 Flows 编排 |
| 持久化运行 | — | 在 Flows 上使用 @persist，并通过 from_checkpoint 创建检查点 |
| 人工审批 | — | 从 v1.8.0 起支持 @human_feedback 装饰器 |
| 追踪 | — | 运行 crewai login 后启用 CrewAI 跟踪 |
| 评测 | — | — |

## 近期更新

- 快速入门现在以 Flow 为核心，通过 load_crew 加载 JSONC 格式的智能体和团队配置。
- 从 v1.14.5 起，restore_from_state_id 可恢复或分叉 Flow；inputs.id 填充状态的方式已弃用。

## 同一语言的替代方案

- [OpenAI Agents SDK](https://dotsagent.io/zh/frameworks/openai-agents-python)

- [Claude Agent SDK](https://dotsagent.io/zh/frameworks/claude-agent-sdk)

- [Google ADK](https://dotsagent.io/zh/frameworks/google-adk)

- [Microsoft Agent Framework](https://dotsagent.io/zh/frameworks/microsoft-agent-framework)

- [LangGraph](https://dotsagent.io/zh/frameworks/langgraph)

- [LlamaIndex](https://dotsagent.io/zh/frameworks/llamaindex)

## 来源

1. [docs.crewai.com](https://docs.crewai.com/en/introduction)/en/introduction
2. [docs.crewai.com](https://docs.crewai.com/en/quickstart)/en/quickstart
3. [docs.crewai.com](https://docs.crewai.com/en/concepts/agents)/en/concepts/agents
4. [docs.crewai.com](https://docs.crewai.com/edge/en/mcp/dsl-integration)/edge/en/mcp/dsl-integration
5. [docs.crewai.com](https://docs.crewai.com/edge/en/guides/flows/mastering-flow-state)/edge/en/guides/flows/mastering-flow-state
6. [docs.crewai.com](https://docs.crewai.com/edge/en/learn/human-feedback-in-flows)/edge/en/learn/human-feedback-in-flows
7. [pypi.org](https://pypi.org/pypi/crewai/json)/pypi/crewai/json
8. [api.github.com](https://api.github.com/repos/crewAIInc/crewAI)/repos/crewAIInc/crewAI

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期：2026年10月1日
