back to home

camel-ai / camel

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

16,385 stars
1,826 forks
444 issues
PythonTypeScriptJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing camel-ai/camel in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/camel-ai/camel)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

[![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? • Data Generation • Task Automation • World Simulation Quick Start Installing CAMEL is a breeze thanks to its availability on PyPI. Simply open your terminal and run: Starting with ChatAgent This example demonstrates how to create a using the CAMEL framework and perform a search query using DuckDuckGo. • **Install the tools package:** • **Set up your OpenAI API key:** Alternatively, use a file: • **Run the following Python code:** • **(Optional) Enable model request/response logs:** • : Enables request/response JSON logs. • : Controls whether is logged under . When unset, it defaults to the same value as . • : Directory for generated log files (default: ). • 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. • **Creating Your First Agent** • **Creating Your First Agent Society** • **Embodied Agents** • **Critic Agents** 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. | Module | Description | |:---|:---| | **Agents** | Core agent architectures and behaviors for autonomous operation. | | **Agent Societies** | Components for building and managing multi-agent systems and collaboration. | | **Data Generation** | Tools and methods for synthetic data creation and augmentation. | | **Models** | Model architectures and customization options for agent intelligence. | | **Tools** | Tools integration for specialized agent tasks. | | **Memory** | Memory storage and retrieval mechanisms for agent state management. | | **Sto…