# CAMEL-AI

**CAMEL-AI** 是一个开源社区，也是一个用于构建基于大语言模型的多智能体系统的 Python 框架，最广为人知的是它在 2023 年提出的名为 CAMEL 的角色扮演框架——在该框架中，两个相互通信的智能体在极少人工监督下完成一项任务。项目将其使命描述为寻找智能体在数据生成、世界模拟和任务自动化方面的扩展定律（scaling laws），并以 Apache 2.0 许可证在 github.com/camel-ai/camel 上发布其库。<sup>[1](https://arxiv.org/abs/2303.17760)</sup><sup> • </sup><sup>[2](https://github.com/camel-ai/camel)</sup><sup> • </sup><sup>[3](https://www.camel-ai.org/blogs/scaling-environments-for-agents)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 论文《CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society》，arXiv:2303.17760，由 Guohao Li、Hasan Abed Al Kader Hammoud、Hani Itani、Dmitrii Khizbullin 和 Bernard Ghanem 于 2023 年 3 月 31 日提交；被 NeurIPS 2023 接收<sup>[1](https://arxiv.org/abs/2303.17760)</sup> |
| 核心方法 | 借助初始提示（inception prompting）的角色扮演：两个聊天智能体——一个 AI 用户和一个 AI 助手——自主协作完成任务，同时保持与人类意图一致<sup>[1](https://arxiv.org/abs/2303.17760)</sup> |
| 代码仓库 | GitHub 上的 camel-ai/camel，17.9k 星标、2.1k 复刻，Apache-2.0 许可证，通过 `pip install camel-ai[all]` 安装<sup>[2](https://github.com/camel-ai/camel)</sup><sup> • </sup><sup>[4](https://docs.camel-ai.org/camel.messages.conversion.html)</sup> |
| 数据集 | 角色扮演生成了面向任务的 AI Society 和 Code 数据集、单轮数学与科学问答数据集，以及一个模拟恶意智能体行为的 Misalignment 数据集<sup>[5](https://papers.neurips.cc/paper_files/paper/2023/file/a3621ee907def47c1b952ade25c67698-Paper-Conference.pdf)</sup> |
| 生态 | OWL 通用智能体、OASIS 社交模拟器（最多可模拟一百万个智能体）、CRAB 跨环境基准、带验证器的 Project Loong 合成数据，以及 SETA 终端智能体环境<sup>[6](https://arxiv.org/abs/2411.11581)</sup><sup> • </sup><sup>[7](https://arxiv.org/abs/2407.01511)</sup><sup> • </sup><sup>[8](https://www.camel-ai.org/blogs/seta-scaling-environments-for-terminal-agents)</sup> |
| 已记录的弱点 | 一份智能体框架对比评估在工具使用、治理控制和基准真实性三项上给 CAMEL 打 2 分（满分 5 分），并将角色扮演中的对话漂移列为主要风险<sup>[9](https://assets-eu.researchsquare.com/files/rs-9839978/v1_covered_109fdb15-13cd-4f10-91cd-7557421ac4d2.pdf?c=1780292536)</sup> |

## 角色扮演框架

最初的 CAMEL 论文提出一个问题：一个具备通信能力的智能体能否在极少人工监督下把对话引向任务完成？其答案是角色扮演：人类只提供一个初步想法，两个大语言模型智能体分别扮演负责明确任务的 AI 用户和负责解决任务的 AI 助手等角色，交换消息直至任务完成。初始提示负责分配角色、防止角色翻转、禁止有害或虚假内容，并使对话与人类意图保持一致。<sup>[1](https://arxiv.org/abs/2303.17760)</sup><sup> • </sup><sup>[5](https://papers.neurips.cc/paper_files/paper/2023/file/a3621ee907def47c1b952ade25c67698-Paper-Conference.pdf)</sup>

论文还记录了无结构智能体对话的失败模式，包括角色翻转、助手重复指令、敷衍回复以及消息的无限循环。由角色扮演框架衍生出的方案在 GPT-4 与人工评估中均优于 gpt-3.5-turbo 的单次生成，作者还通过在逐步增大的、由该框架生成的数据集上微调 LLaMA 来研究知识涌现。<sup>[5](https://papers.neurips.cc/paper_files/paper/2023/file/a3621ee907def47c1b952ade25c67698-Paper-Conference.pdf)</sup>

## 库与架构

当前的库是一个模块化 Python 框架，其组件包括智能体、智能体社会、用于代码执行的解释器、记忆与存储层、检索增强生成流水线、合成数据引擎，以及用于搜索、浏览器、文档和代码的工具包。<sup>[4](https://docs.camel-ai.org/camel.messages.conversion.html)</sup> `ChatAgent` 类是最基本的单元：它接收一条定义角色的系统消息，持有上下文内记忆与外部记忆，调用工具，并通过 `.step()` 方法一次推进一个回合。<sup>[10](https://www.camel-ai.org/blogs/set-up-your-first-agent-in-120-seconds)</sup> 安装需要 Python 3.10 或更高版本，`camel-ai[all]` 附加项会引入所有工具包和解释器。<sup>[4](https://docs.camel-ai.org/camel.messages.conversion.html)</sup><sup> • </sup><sup>[11](https://www.hivebook.wiki/wiki/camel-ai-multi-agent-framework-for-studying-agent-societies)</sup>

工具包目录十分广泛，涵盖搜索、浏览器自动化、代码执行、数学与 SQL 工具、Slack、Discord、Gmail、WhatsApp 等消息集成，以及[模型上下文协议](https://www.edgepedia.org/zh/model-context-protocol)（MCP）支持。<sup>[12](https://www.camel-ai.org/techstacks)</sup> 模型后端包括 OpenAI、Claude、Mistral、DeepSeek 等云端提供商，以及 Ollama、vLLM、SGLang 等本地运行时。<sup>[13](https://www.camel-ai.org/blogs/whats-inside-the-best-open-source-general-ai-agent)</sup>

## 智能体的扩展定律

项目将其研究议程围绕智能体智能可能扩展的三个维度来构建：智能体的数量、其环境的复杂度，以及它们通过学习实现的演化。<sup>[3](https://www.camel-ai.org/blogs/scaling-environments-for-agents)</sup> 团队的一篇立场论文主张，缺失的智能体数据是环境，而非更多抓取的文本：带有可靠奖励信号的交互式环境才能让智能体学会长期决策，团队呼吁共建环境、验证器和强化学习流水线。<sup>[3](https://www.camel-ai.org/blogs/scaling-environments-for-agents)</sup>

## 生态项目

**OWL。** OWL（Optimized Workforce Learning，优化劳动力学习）是一个基于 CAMEL 框架构建的开源通用 AI 智能体。它于 2025 年 3 月发布，作为闭源 Manus 智能体的开源替代方案，五天内获得 11.2K GitHub 星标；按项目自己的说法，它在开源通用智能体中位列 [GAIA](https://www.edgepedia.org/zh/gaia-general-ai-assistants-benchmark) 基准第一。<sup>[13](https://www.camel-ai.org/blogs/whats-inside-the-best-open-source-general-ai-agent)</sup>

**OASIS。** OASIS（Open Agent Social Interaction Simulations，开放智能体社交互动模拟）是一个围绕 X 和 Reddit 等真实平台设计的社交媒体模拟器，具备动态社交网络、关注与评论等动作空间以及推荐系统。它可扩展到一百万个模拟用户，已被用于复现信息传播、群体极化和从众效应；作者报告称，更大的智能体群体规模会产生更强的群体动力学和更多样的观点。<sup>[6](https://arxiv.org/abs/2411.11581)</sup>

**CRAB。** CRAB 是一个面向跨环境智能体任务的基准框架，使用基于图的细粒度评估，覆盖 Ubuntu 桌面和 Android 手机等设备。其 Crab Benchmark-v0 包含 120 项任务，单个 GPT-4o 智能体在其中取得了 38.01% 的最佳完成率。<sup>[7](https://arxiv.org/abs/2407.01511)</sup>

**SETA。** SETA（Scaling Environments for Terminal Agents，终端智能体扩展环境）在该框架之上构建终端智能体工具包和合成强化学习环境。一个基于 [Claude Sonnet 4](https://www.edgepedia.org/zh/claude-sonnet-4).5 的智能体在 [Terminal-Bench](https://www.edgepedia.org/zh/terminal-bench) 2.0 上达到 46.5% 的准确率，在使用同一模型的智能体中排名第一；成功任务平均调用 79.8 次工具，而失败任务为 128.8 次。团队发布了 400 项合成终端任务，并用其中 260 项对 Qwen3-8B 模型进行带可验证奖励的强化学习（RLVR）微调。<sup>[8](https://www.camel-ai.org/blogs/seta-scaling-environments-for-terminal-agents)</sup>

**Project Loong。** Loong 通过由验证器驱动的流水线，为特定领域问答大规模生成长链式思维推理数据。<sup>[4](https://docs.camel-ai.org/camel.messages.conversion.html)</sup>

## 反响与局限

CAMEL 常与 AutoGen、LangGraph、CrewAI 和 MetaGPT 一同被列为主要的开源多智能体框架，并出现在 MASEval 系统级评估库的框架集合中。<sup>[14](https://arxiv.org/abs/2603.08835)</sup> 独立评估也指出了权衡之处。一份智能体框架对比评估给 CAMEL 的自主目标追求打了其最高分 4 分，但在工具使用、治理控制强度和基准评估真实性三项上仅打 2 分（满分 5 分），并将角色扮演交互中的对话漂移认定为主要局限。<sup>[9](https://assets-eu.researchsquare.com/files/rs-9839978/v1_covered_109fdb15-13cd-4f10-91cd-7557421ac4d2.pdf?c=1780292536)</sup> 一项社区框架调研将 CAMEL 归入以协作为中心的类别，该类框架专注于基于角色的智能体交互与协同的多步问题求解。<sup>[15](https://doi.org/10.1145/3789261)</sup>

项目仍在积极开发中，已发布 v0.2.9x 系列版本，社区每周举行开发者会议。<sup>[16](https://github.com/camel-ai/camel/releases)</sup> 其数据也被用于项目之外：[Databricks](https://www.edgepedia.org/zh/databricks) 报告称，其 MPT-30B-Chat 模型训练数据中有 19.54% 来自 CAMEL-AI。<sup>[17](https://www.camel-ai.org/)</sup>

## References

1. [Li, Guohao; Hammoud, Hasan Abed Al Kader; Itani, Hani; Khizbullin, Dmitrii; Ghanem, Bernard (2023). CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society. arXiv:2303.17760.](https://arxiv.org/abs/2303.17760)
2. [camel-ai/camel GitHub repository](https://github.com/camel-ai/camel)
3. [Scaling Environments for Agents, CAMEL-AI blog (March 31, 2025)](https://www.camel-ai.org/blogs/scaling-environments-for-agents)
4. [CAMEL-AI Documentation: Introduction](https://docs.camel-ai.org/camel.messages.conversion.html)
5. [CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society, NeurIPS 2023 paper](https://papers.neurips.cc/paper_files/paper/2023/file/a3621ee907def47c1b952ade25c67698-Paper-Conference.pdf)
6. [OASIS: Open Agent Social Interaction Simulations with One Million Agents. arXiv:2411.11581.](https://arxiv.org/abs/2411.11581)
7. [CRAB: Cross-environment Agent Benchmark for Multimodal Language Model Agents. arXiv:2407.01511.](https://arxiv.org/abs/2407.01511)
8. [SETA: Scaling Environments for Terminal Agents, CAMEL-AI blog (January 9, 2026)](https://www.camel-ai.org/blogs/seta-scaling-environments-for-terminal-agents)
9. [Agentic and Multi-agent Systems: A Systematic Review (Research Square preprint)](https://assets-eu.researchsquare.com/files/rs-9839978/v1_covered_109fdb15-13cd-4f10-91cd-7557421ac4d2.pdf?c=1780292536)
10. [Set up your first Agent in 120 seconds, CAMEL-AI blog (June 10, 2024)](https://www.camel-ai.org/blogs/set-up-your-first-agent-in-120-seconds)
11. [Hivebook: CAMEL-AI multi-agent framework](https://www.hivebook.wiki/wiki/camel-ai-multi-agent-framework-for-studying-agent-societies)
12. [CAMEL-AI Tech Stack](https://www.camel-ai.org/techstacks)
13. [What's Inside the Best Open-Source General AI Agent?, CAMEL-AI blog (March 21, 2025)](https://www.camel-ai.org/blogs/whats-inside-the-best-open-source-general-ai-agent)
14. [MASEval: Extending Multi-Agent Evaluation from Models to Systems. arXiv:2603.08835.](https://arxiv.org/abs/2603.08835)
15. [A Survey on the Optimization of Large Language Model-based Agents, ACM Computing Surveys](https://doi.org/10.1145/3789261)
16. [Releases · camel-ai/camel, GitHub](https://github.com/camel-ai/camel/releases)
17. [CAMEL-AI.org homepage](https://www.camel-ai.org/)

---
*Initially written Oct 15, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/camel-ai

English original: https://www.edgepedia.org/camel-ai
