AI Card Bao KNZNMKDOKFMPPVPDEVELOPER.AICARDBAO.COM
Home / open source / CAMEL
AI TOOL / #13016

CAMEL

The first and leading multi-agent framework, designed for research in multi-agent systems, explores the scaling laws of agents.

Introduction

[![Documentation][docs-image]][docs-url] [![Discord][discord-image]][discord-url] [![X][x-image]][x-url] [![Reddit][reddit-image]][reddit-url] [![Wechat][wechat-image]][wechat-url] [![Hugging Face][huggingface-image]][huggingface-url] [![Star][star-image]][star-url] [![Package License][package-license-image]][package-license-url] [![PyPI Download][package-download-image]][package-download-url] [![][join-us-image]][join-us]

English | 简体中文 | 日本語

Community |

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

🐫 CAMEL is an open-source community dedicated to finding the scaling laws of agents. We believe that studying these agents on a large scale offers valuable insights into their behaviors, capabilities, and potential risks. To facilitate research in this field, we implement and support various types of agents, tasks, prompts, models, and simulated environments.

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.

[![][image-join-us]][join-us]

Table of contents

  • CAMEL Framework Design Principles
  • Why Use CAMEL for Your Research?
  • What Can You Build With CAMEL?
  • Data Generation
  • Task Automation
  • World Simulation
  • Quick Start
  • Starting with ChatAgent
  • Seeking Help
  • Tech Stack
  • Research
  • Synthetic Datasets
  • Cookbooks (Usecases)
  • Basic Concepts
  • Advanced Features
  • Model Training & Data Generation
  • Multi-Agent Systems & Applications
  • Data Processing
  • Real-World Usecases
  • 🧱 Built with CAMEL (Real-world Producs & Research)
  • Research Projects
  • Product Projects
  • 🗓️ Events
  • Contributing to CAMEL
  • Community & Contact
  • Citation
  • Acknowledgment
  • License

CAMEL Framework Design Principles

🧬 Evolvability

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.

📈 Scalability

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

💾 Statefulness

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

📖 Code-as-Prompt

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.

✅ Large-Scale Agent System Simulate up to 1M agents to study emergent behaviors and scaling laws in complex, multi-agent environments.

✅ Dynamic Communication Enable real-time interactions among agents, fostering seamless collaboration for tackling intricate tasks.

✅ Stateful Memory Equip agents with the ability to retain and leverage historical context, improving decision-making over extended interactions.

✅ Support for Multiple Benchmarks Utilize standardized benchmarks to rigorously evaluate agent performance, ensuring reproducibility and reliable comparisons.

✅ Support for Different Agent Types Work with a variety of agent roles, tasks, models, and environments, supporting interdisciplinary experiments and diverse research applications.

✅ Data Generation and Tool Integration Automate the creation of large-scale, structured datasets while seamlessly integrating with multiple tools, streamlining synthetic data generation and research workflows.

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

Visits:61 Updated:2026-12-04 AI tools

Related

Dogod.io The Cultural and Historical Database is a website that represents the results of a special project funded by the National Social Science Fund. It was jointly established by the Institute of Modern History of the Chinese Academy of Social Sciences, the National Library of China, and the State Archives Administration of China. Foldnfly 05 · Listen carefully: Listen to a segment of drum beats and try to identify where each beat falls. When you usually listen to music, you naturally keep time by tapping your feet. But if we represent the beats with a series of grids, will you still be able to tell where each beat lands? Cloud disk search At present, it seems that all the resources available for searching on this resource site are relatively old. However, precisely because of this, it is occasionally possible to come across some lesser-known and hard-to-find resources. Everyone can give it a try based on their own needs. Painting Riddles An online version of the "You Draw, I Guess" game hall – a place where people who enjoy drawing, guessing games, and social interactions can come together to play and chat at the same time. AI Tools Pavilion The official website of the AI Toolset Navigation platform lists a wide range of AI tools from both domestic and international sources. These include AI-powered question-answering systems, AI writing assistants, AI image generation tools, AI video production software, AI-assisted programming platforms, AI music creation services, AI-based painting and design tools, as well as various chatbots and dialogue systems. In addition, the website also provides information on commonly used websites, frameworks, and models for AI learning and development. An anime haven exclusive for lazy people Lanerc is an anime sanctuary designed specifically for those who prefer to relax and enjoy their favorite shows without any hassle. No need for tedious searches—just open it and start watching. With rapid updates and a wide range of resources, it perfectly suits your laid-back lifestyle. Here, with just a few taps of your finger, you can immerse yourself in the world of anime and find all the best shows and movies at your fingertips. Even the laziest among us can enjoy watching their favorite anime series with Lanerc.
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.