Registry / llm-agents / camel-ai

camel-ai

JSON →
library0.2.90pypypiunverified

CAMEL is a multi-agent communication framework for building autonomous AI agents that can role-play, collaborate, and solve complex tasks. It provides model backends (OpenAI, Anthropic, DeepSeek, etc.), toolkits, memory, and planning. Current stable version is 0.2.90 (Python 3.10–3.14). Development is active with frequent pre-releases (e.g., 0.2.91a4).

pip install camel-ai
INSTALL
IMPORT
SIG · CAMEL-AI
C
camel-ai
llm-agentspythonv0.2.90
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.90 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
1/2 runs
py 3.11
✕ build_error
1/2 runs
py 3.12
✕ build_error
1/2 runs
py 3.13
✕ build_error
1/2 runs
py 3.9
✕ build_error
1/2 runs
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ChatAgent
from camel.agent import ChatAgent
from camel.agent import ChatAgent

Basic ChatAgent example. Requires OPENAI_API_KEY environment variable.

import os from camel.agent import ChatAgent from camel.message import SystemMessage, UserMessage # Set your API key os.environ['OPENAI_API_KEY'] = os.environ.get('OPENAI_API_KEY', 'your-key-here') agent = ChatAgent( system_message=SystemMessage(content="You are a helpful assistant."), model_type="gpt-4o-mini" ) response = agent.step(UserMessage(content="What is the capital of France?")) print(response.msgs[0].content)
Debug
Known issues
breakingAs of v0.2.0, the top-level API was restructured. Many classes moved from `camel.agent` to `camel.agents` (note the 's') and then back. Always check import paths.
fix
Use `from camel.agent import ChatAgent` (singular) for v0.2.90.
affects: >=0.2.0
breakingIn v0.2.50+, `ModelFactory.create()` changed signature; `model_name` parameter was renamed to `model_type`.
fix
Use `ModelFactory.create(model_type='gpt-4o-mini', api_key=...)`.
affects: >=0.2.50
gotchaThe library installs with minimal dependencies by default. Many features (e.g., Anthropic, DeepSeek, web search) require extra installs like `camel-ai[anthropic]`.
fix
Install extras: `pip install 'camel-ai[all]'` or targeted extras like `camel-ai[anthropic]`.
affects: all
gotchaCAMEL uses pydantic v2 for configuration. Mixing pydantic v1 models may cause silent validation failures.
fix
Ensure all pydantic models use v2 syntax (`BaseModel` from `pydantic` not `pydantic.v1`).
affects: >=0.2.0
Upgrade
Version history
0.2.90latest on PyPI · released Mar 22, 2026
Audit
Dependencies
openairequiredCore model backend for GPT/DeepSeek/etc.
anthropicoptionalAnthropic Claude support
Agent activity
49 hits · last 30 days
node
46
Bingbot
1
OpenAI (training)
1
Resources
camel-ai — pip install camel-ai · libregistry