camel

camel-aiApache-2.0活跃维护

多智能体框架,让多个大模型智能体通过角色扮演和对话自主协作,用于研究智能体规模化规律并构建协作式 AI 系统。

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

v0.2.91a7发布于 2026-09-03 05:28 UTC18,025star +7 / 7 天2,145fork同步于 2026-11-10 17:25 UTC

怎么上手

由 README 提炼,执行前请确认
pip install camel-ai
pip install 'camel-ai[web_tools]'
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

CAMEL 是开源多智能体框架,帮你搭建可扩展的智能体社会并研究智能体规模化规律

多智能体框架,让多个大模型智能体通过角色扮演和对话自主协作,用于研究智能体规模化规律并构建协作式 AI 系统。

核心能力

  • 用 ChatAgent 配合工具完成多步任务
  • 支持模拟最多 100 万智能体研究涌现行为
  • 智能体带状态记忆,可跨多轮交互保留上下文
  • 内置 CoT、Self-Instruct 等合成数据生成模块
  • 集成 SearchToolkit 等工具包扩展智能体能力

容易踩的坑

使用搜索工具需额外安装 web_tools 扩展包;运行前需设置 OPENAI_API_KEY 环境变量;示例默认调用 OpenAI 的 GPT-4O 模型

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.2.91a7
  1. v0.2.91a7pre-release最新正式版2026-09-03 · 2026-09-03 05:28 UTC

    What's Changed

    Full Changelog: https://github.com/camel-ai/camel/compare/v0.2.91a6...v0.2.91a7

  2. v0.2.91a6pre-release2026-09-03 · 2026-09-03 05:12 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/camel-ai/camel/compare/v0.2.91a5...v0.2.91a6

  3. v0.2.91a5pre-release2026-07-13 · 2026-07-13 11:24 UTC
    查看更新说明

    What's Changed

  4. v0.2.91a4pre-release2026-04-30 · 2026-04-30 13:18 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/camel-ai/camel/compare/v0.2.91a3...v0.2.91a4

  5. v0.2.91a3pre-release2026-04-25 · 2026-04-25 14:01 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/camel-ai/camel/compare/v0.2.91a2...v0.2.91a3

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Documentation Discord X Reddit Wechat Hugging Face Star Package License PyPI Download

    English | 简体中文 | 日本語

    Community | Installation | Examples | Paper | Citation | Contributing | CAMEL-AI

    Join us (Discord or WeChat) in pushing the boundaries of finding the scaling laws of agents.

    🌟 Star CAMEL on GitHub and be instantly notified of new releases.

    CAMEL Framework Design Principles

    The framework enables multi-agent systems to continuously evolve by generating data and interacting with environments. This evolution can be driven by reinforcement learning with verifiable rewards or supervised learning.

    The framework is designed to support systems with millions of agents, ensuring efficient coordination, communication, and resource management at scale.

    Agents maintain stateful memory, enabling them to perform multi-step interactions with environments and efficiently tackle sophisticated tasks.

    Every line of code and comment serves as a prompt for agents. Code should be written clearly and readably, ensuring both humans and agents can interpret it effectively.

    Why Use CAMEL for Your Research?

    We are a community-driven research collective comprising over 100 researchers dedicated to advancing frontier research in Multi-Agent Systems. Researchers worldwide choose CAMEL for their studies based on the following reasons.

    What Can You Build With CAMEL?

    1. Data Generation

    2. Task Automation

    3. World Simulation

    Quick Start

    Installing CAMEL is a breeze thanks to its availability on PyPI. Simply open your terminal and run:

    pip install camel-ai
    

    Starting with ChatAgent

    This example demonstrates how to create a ChatAgent using the CAMEL framework and perform a search query using DuckDuckGo.

    1. Install the tools package:
    pip install 'camel-ai[web_tools]'
    
    1. Set up your OpenAI API key:
    export OPENAI_API_KEY='your_openai_api_key'
    

    Alternatively, use a .env file:

    cp .env.example .env
    # then edit .env and add your keys
    
    1. Run the following Python code:
    from camel.models import ModelFactory
    from camel.types import ModelPlatformType, ModelType
    from camel.agents import ChatAgent
    from camel.toolkits import SearchToolkit
    
    model = ModelFactory.create(
      model_platform=ModelPlatformType.OPENAI,
      model_type=ModelType.GPT_4O,
      model_config_dict={"temperature": 0.0},
    )
    
    search_tool = SearchToolkit().search_duckduckgo
    
    agent = ChatAgent(model=model, tools=[search_tool])
    
    response_1 = agent.step("What is CAMEL-AI?")
    print(response_1.msgs[0].content)
    # CAMEL-AI is the first LLM (Large Language Model) multi-agent framework
    # and an open-source community focused on finding the scaling laws of agents.
    # ...
    
    response_2 = agent.step("What is the Github link to CAMEL framework?")
    print(response_2.msgs[0].content)
    # The GitHub link to the CAMEL framework is
    # [https://github.com/camel-ai/camel](https://github.com/camel-ai/camel).
    
    1. (Optional) Enable model request/response logs:
    export CAMEL_MODEL_LOG_ENABLED=true
    export CAMEL_MODEL_LOG_MODEL_CONFIG_ENABLED=true
    export CAMEL_LOG_DIR=camel_logs
    
    • CAMEL_MODEL_LOG_ENABLED: Enables request/response JSON logs.
    • CAMEL_MODEL_LOG_MODEL_CONFIG_ENABLED: Controls whether model_config_dict is logged under request.model_config_dict. When unset, it defaults to the same value as CAMEL_MODEL_LOG_ENABLED.
    • CAMEL_LOG_DIR: Directory for generated log files (default: camel_logs).
    • Logs are written as UTF-8 JSON with multilingual text preserved (for example Chinese, Japanese, Arabic) without Unicode escape noise.

    For more detailed instructions and additional configuration options, check out the installation section.

    After running, you can explore our CAMEL Tech Stack and Cookbooks at docs.camel-ai.org to build powerful multi-agent systems.

    We provide a Google Colab demo showcasing a conversation between two ChatGPT agents playing roles as a python programmer and a stock trader collaborating on developing a trading bot for stock market.

    Explore different types of agents, their roles, and their applications.

    Seeking Help

    Please reach out to us on CAMEL discord if you encounter any issue set up CAMEL.

    Tech Stack

    Key Modules

    Core components and utilities to build, operate, and enhance CAMEL-AI agents and societies.

    ModuleDescription
    AgentsCore agent architectures and behaviors for autonomous operation.
    Agent SocietiesComponents for building and managing multi-agent systems and collaboration.
    Data GenerationTools and methods for synthetic data creation and augmentation.
    ModelsModel architectures and customization options for agent intelligence.
    ToolsTools integration for specialized agent tasks.
    MemoryMemory storage and retrieval mechanisms for agent state management.
    StoragePersistent storage solutions for agent data and states.
    BenchmarksPerformance evaluation and testing frameworks.
    InterpretersCode and command interpretation capabilities.
    Data LoadersData ingestion and preprocessing tools.
    RetrieversKnowledge retrieval and RAG components.
    RuntimeExecution environment and process management.
    Human-in-the-LoopInteractive components for human oversight and intervention.

    Research

    We believe that studying these agents on a large scale offers valuable insights into their behaviors, capabilities, and potential risks.

    Explore our research projects:

    Research with US

    We warmly invite you to use CAMEL for your impactful research.

    Rigorous research takes time and resources. We are a community-driven research collective with 100+ researchers exploring the frontier research of Multi-agent Systems. Join our ongoing projects or test new ideas with us, reach out via email for more information.

    Synthetic Datasets

    1. Utilize Various LLMs as Backends

    For more details, please see our Models Documentation.

    Data (Hosted on Hugging Face)

    DatasetChat formatInstruction formatChat format (translated)
    AI SocietyChat formatInstruction formatChat format (translated)
    CodeChat formatInstruction formatx
    MathChat formatxx
    PhysicsChat formatxx
    ChemistryChat formatxx
    BiologyChat formatxx

    2. Visualizations of Instructions and Tasks

    DatasetInstructionsTasks
    AI SocietyInstructionsTasks
    CodeInstructionsTasks
    MisalignmentInstructionsTasks

    Cookbooks (Usecases)

    Practical guides and tutorials for implementing specific functionalities in CAMEL-AI agents and societies.

    1. Basic Concepts

    CookbookDescription
    Creating Your First AgentA step-by-step guide to building your first agent.
    Creating Your First Agent SocietyLearn to build a collaborative society of agents.
    Message CookbookBest practices for message handling in agents.

    2. Advanced Features

    CookbookDescription
    Tools CookbookIntegrating tools for enhanced functionality.
    Memory CookbookImplementing memory systems in agents.
    RAG CookbookRecipes for Retrieval-Augmented Generation.
    Graph RAG CookbookLeveraging knowledge graphs with RAG.
    Track CAMEL Agents with AgentOpsTools for tracking and managing agents in operations.

    3. Model Training & Data Generation

    CookbookDescription
    Data Generation with CAMEL and Finetuning with UnslothLearn how to generate data with CAMEL and fine-tune models effectively with Unsloth.
    Data Gen with Real Function Calls and Hermes FormatExplore how to generate data with real function calls and the Hermes format.
    CoT Data Generation and Upload Data to HuggingfaceUncover how to generate CoT data with CAMEL and seamlessly upload it to Huggingface.
    CoT Data Generation and SFT Qwen with UnsolthDiscover how to generate CoT data using CAMEL and SFT Qwen with Unsolth, and seamlessly upload your data and model to Huggingface.

    4. Multi-Agent Systems & Applications

    CookbookDescription
    Role-Playing Scraper for Report & Knowledge Graph GenerationCreate role-playing agents for data scraping and reporting.
    Create A Hackathon Judge Committee with WorkforceBuilding a team of agents for collaborative judging.
    Dynamic Knowledge Graph Role-Playing: Multi-Agent System with dynamic, temporally-aware knowledge graphsBuilds dynamic, temporally-aware knowledge graphs for financial applications using a multi-agent system. It processes financial reports, news articles, and research papers to help traders analyze data, identify relationships, and uncover market insights. The system also utilizes diverse and optional element node deduplication techniques to ensure data integrity and optimize graph structure for financial decision-making.
    Customer Service Discord Bot with Agentic RAGLearn how to build a robust customer service bot for Discord using Agentic RAG.
    Customer Service Discord Bot with Local ModelLearn how to build a robust customer service bot for Discord using Agentic RAG which supports local deployment.

    5. Data Processing

    CookbookDescription
    Video AnalysisTechniques for agents in video data analysis.
    3 Ways to Ingest Data from Websites with FirecrawlExplore three methods for extracting and processing data from websites using Firecrawl.
    Create AI Agents that work with your PDFsLearn how to create AI agents that work with your PDFs using Chunkr and Mistral AI.

    Real-World Usecases

    Real-world usecases demonstrating how CAMEL’s multi-agent framework enables real business value across infrastructure automation, productivity workflows, retrieval-augmented conversations, intelligent document/video analysis, and collaborative research.

    1 Infrastructure Automation

    UsecaseDescription
    ACI MCPReal-world usecases demonstrating how CAMEL’s multi-agent framework enables real business value across infrastructure automation, productivity workflows, retrieval-augmented conversations, intelligent document/video analysis, and collaborative research.
    Cloudflare MCP CAMELIntelligent agents manage Cloudflare resources dynamically, enabling scalable and efficient cloud security and performance tuning.

    2 Productivity & Business Workflows

    UsecaseDescription
    Airbnb MCPCoordinate agents to optimize and manage Airbnb listings and host operations.
    PPTX Toolkit UsecaseAnalyze PowerPoint documents and extract structured insights through multi-agent collaboration.

    3 Retrieval-Augmented Multi-Agent Chat

    UsecaseDescription
    Chat with GitHubQuery and understand GitHub codebases through CAMEL agents leveraging RAG-style workflows, accelerating developer onboarding and codebase navigation.
    Chat with YouTubeConversational agents extract and summarize video transcripts, enabling faster content understanding and repurposing.

    4 Video & Document Intelligence

    UsecaseDescription
    YouTube OCRAgents perform OCR on video screenshots to summarize visual content, supporting media monitoring and compliance.
    Mistral OCRCAMEL agents use OCR with Mistral to analyze documents, reducing manual effort in document understanding workflows.

    5 Research & Collaboration

    UsecaseDescription
    Multi-Agent Research AssistantSimulates a team of research agents collaborating on literature review, improving efficiency in exploratory analysis and reporting.

    🧱 Built with CAMEL (Real-world Producs & Research)

    Research Projects

    NameDescription
    ChatDevCommunicative Agents for software Development
    Paper2PosterMultimodal poster automation from scientific papers
    Paper2VideoAutomatic video generation from scientific papers

    Product Projects

    NameDescription
    EigentThe World First Multi-agent Workforce

    🗓️ Events

    We are actively involved in community events including:

    • 🎙️ Community Meetings — Weekly virtual syncs with the CAMEL team
    • 🏆 Competitions — Hackathons, Bounty Tasks and coding challenges hosted by CAMEL
    • 🤝 Volunteer Activities — Contributions, documentation drives, and mentorship
    • 🌍 Ambassador Programs — Represent CAMEL in your university or local tech groups

    Want to host or participate in a CAMEL event? Join our Discord or want to be part of Ambassador Program.

    Contributing to CAMEL

    For those who'd like to contribute code, we appreciate your interest in contributing to our open-source initiative. Please take a moment to review our contributing guidelines to get started on a smooth collaboration journey.🚀

    We also welcome you to help CAMEL grow by sharing it on social media, at events, or during conferences. Your support makes a big difference!

    Contributors

    Made with contrib.rocks.

    Acknowledgment

    Special thanks to Nomic AI for giving us extended access to their data set exploration tool (Atlas).

    We would also like to thank Haya Hammoud for designing the initial logo of our project.

    We implemented amazing research ideas from other works for you to build, compare and customize your agents. If you use any of these modules, please kindly cite the original works:

    License

    The source code is licensed under Apache 2.0.

    Citation

    @inproceedings{li2023camel,
      title={CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society},
      author={Li, Guohao and Hammoud, Hasan Abed Al Kader and Itani, Hani and Khizbullin, Dmitrii and Ghanem, Bernard},
      booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
      year={2023}
    }
    

    Here is an example of how to cite our work:

    We use the CAMEL framework \cite{li2023camel} to develop the agents used in our experiments.
    

    Community & Contact

    For more information please contact [email protected]

    • GitHub Issues: Report bugs, request features, and track development. Submit an issue

    • Discord: Get real-time support, chat with the community, and stay updated. Join us

    • X (Twitter): Follow for updates, AI insights, and key announcements. Follow us

    • Ambassador Project: Advocate for CAMEL-AI, host events, and contribute content. Learn more

    • WeChat Community: Scan the QR code below to join our WeChat community.